fix(测试计划): 测试计划通过和未通过的查询缺陷修改
This commit is contained in:
parent
8bb177448b
commit
abc0f7b9e2
|
@ -13,9 +13,10 @@ public class TestPlanUtils {
|
|||
public static Map<String, List<String>> parseGroupIdMap(List<TestPlan> testPlanList) {
|
||||
Map<String, List<String>> testPlanGroupIdMap = new HashMap<>();
|
||||
for (TestPlan testPlan : testPlanList) {
|
||||
|
||||
if (StringUtils.equalsIgnoreCase(testPlan.getType(), TestPlanConstants.TEST_PLAN_TYPE_GROUP) && !testPlanGroupIdMap.containsKey(testPlan.getId())) {
|
||||
testPlanGroupIdMap.put(testPlan.getId(), new ArrayList<>());
|
||||
} else {
|
||||
} else if (StringUtils.equalsIgnoreCase(testPlan.getType(), TestPlanConstants.TEST_PLAN_TYPE_PLAN)) {
|
||||
if (testPlanGroupIdMap.containsKey(testPlan.getGroupId())) {
|
||||
testPlanGroupIdMap.get(testPlan.getGroupId()).add(testPlan.getId());
|
||||
} else {
|
||||
|
|
Loading…
Reference in New Issue