refactor(测试计划): 调整规划脑图

This commit is contained in:
guoyuqi 2024-06-13 18:50:49 +08:00 committed by 刘瑞斌
parent 5f36c2343e
commit 7dc0598cc7
1 changed files with 3 additions and 0 deletions

View File

@ -334,6 +334,9 @@ public class TestPlanCollectionMinderService {
private static void setAssociateMap(TestPlanCollectionMinderEditDTO testPlanCollectionMinderEditDTO, Map<String, List<BaseCollectionAssociateRequest>> associateMap, TestPlanCollection testPlanCollection) { private static void setAssociateMap(TestPlanCollectionMinderEditDTO testPlanCollectionMinderEditDTO, Map<String, List<BaseCollectionAssociateRequest>> associateMap, TestPlanCollection testPlanCollection) {
List<TestPlanCollectionAssociateDTO> associateDTOS = testPlanCollectionMinderEditDTO.getAssociateDTOS(); List<TestPlanCollectionAssociateDTO> associateDTOS = testPlanCollectionMinderEditDTO.getAssociateDTOS();
if (CollectionUtils.isEmpty(associateDTOS)) {
return;
}
for (TestPlanCollectionAssociateDTO associateDTO : associateDTOS) { for (TestPlanCollectionAssociateDTO associateDTO : associateDTOS) {
String associateType = associateDTO.getAssociateType(); String associateType = associateDTO.getAssociateType();
List<BaseCollectionAssociateRequest> baseCollectionAssociateRequests = associateMap.get(associateType); List<BaseCollectionAssociateRequest> baseCollectionAssociateRequests = associateMap.get(associateType);