fix(测试跟踪): 功能用例库页面报错

This commit is contained in:
chenjianxing 2022-09-20 13:53:59 +08:00 committed by jianxing
parent c0c5fb5f19
commit fd62f7d39a
1 changed files with 4 additions and 2 deletions

View File

@ -832,8 +832,10 @@ public class TestCaseService {
});
returnList.forEach(testCase -> {
String status = projectStatusOptionMap.get(testCase.getProjectId()).get(testCase.getStatus());
String priority = projectPriorityOptionMap.get(testCase.getProjectId()).get(testCase.getStatus());
Map<String, String> statusMap = projectStatusOptionMap.get(testCase.getProjectId());
Map<String, String> priorityMap = projectPriorityOptionMap.get(testCase.getProjectId());
String status = statusMap == null ? testCase.getStatus() : statusMap.get(testCase.getStatus());
String priority = priorityMap == null ? testCase.getPriority() : priorityMap.get(testCase.getPriority());
if (StringUtils.isNotBlank(status)) {
testCase.setStatus(status);
}