fix(测试计划): 测试计划通过和未通过的查询缺陷修改

This commit is contained in:
Jianguo-Genius 2024-12-19 17:08:02 +08:00 committed by 建国
parent 8bb177448b
commit abc0f7b9e2
1 changed files with 2 additions and 1 deletions

View File

@ -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 {