fix(测试跟踪): 修复测试计划历史报告数据因查询sql变更导致的无法查看的问题
--bug=1013026 --user=宋天阳 【中金】【缺陷跟踪查看报告异常】test_plan_report_content表中planScenarioReportStruct字段值的格式修改导致的历史数据转换异常 https://www.tapd.cn/55049933/s/1154104
This commit is contained in:
parent
2829754bdf
commit
4c57eab181
|
@ -102,6 +102,9 @@ public class UserService {
|
|||
}
|
||||
|
||||
public Map<String, User> queryNameByIds(List<String> userIds) {
|
||||
if(userIds.isEmpty()){
|
||||
return new HashMap<>(0);
|
||||
}
|
||||
return extUserMapper.queryNameByIds(userIds);
|
||||
}
|
||||
|
||||
|
|
|
@ -1034,14 +1034,12 @@ public class TestPlanReportService {
|
|||
if (StringUtils.isNotEmpty(testPlanReportContentWithBLOBs.getPlanApiCaseReportStruct())) {
|
||||
try {
|
||||
apiCaseInfoDTOList = JSONArray.parseArray(testPlanReportContentWithBLOBs.getPlanApiCaseReportStruct(), TestPlanFailureApiDTO.class);
|
||||
} catch (Exception e) {
|
||||
LogUtil.error(e);
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
if (apiCaseInfoDTOList == null) {
|
||||
try {
|
||||
testPlanApiCaseIdAndReportIdMap = JSONObject.parseObject(testPlanReportContentWithBLOBs.getPlanApiCaseReportStruct(), Map.class);
|
||||
} catch (Exception e) {
|
||||
LogUtil.error(e);
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
} else {
|
||||
for (TestPlanFailureApiDTO item : apiCaseInfoDTOList) {
|
||||
|
@ -1052,13 +1050,12 @@ public class TestPlanReportService {
|
|||
if (StringUtils.isNotEmpty(testPlanReportContentWithBLOBs.getPlanScenarioReportStruct())) {
|
||||
try {
|
||||
scenarioInfoDTOList = JSONArray.parseArray(testPlanReportContentWithBLOBs.getPlanScenarioReportStruct(), TestPlanFailureScenarioDTO.class);
|
||||
} catch (Exception e) {
|
||||
LogUtil.error(e);
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
if (scenarioInfoDTOList == null) {
|
||||
try {
|
||||
testPlanScenarioIdAndReportIdMap = JSONObject.parseObject(testPlanReportContentWithBLOBs.getPlanScenarioReportStruct(), Map.class);
|
||||
} catch (Exception ignore) {
|
||||
} catch (Exception ignored) {
|
||||
}
|
||||
} else {
|
||||
for (TestPlanFailureScenarioDTO item : scenarioInfoDTOList) {
|
||||
|
|
Loading…
Reference in New Issue