fix(测试跟踪): 功能用例库页面报错
This commit is contained in:
parent
c0c5fb5f19
commit
fd62f7d39a
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue