fix: 创建测试计划报错
This commit is contained in:
parent
83ef71276a
commit
fd6bd5dd7c
|
@ -202,11 +202,13 @@ public class TestPlanService {
|
||||||
|
|
||||||
String planId = testPlan.getId();
|
String planId = testPlan.getId();
|
||||||
List<String> principals = testPlan.getPrincipals();
|
List<String> principals = testPlan.getPrincipals();
|
||||||
for (String principal : principals) {
|
if (!CollectionUtils.isEmpty(principals)) {
|
||||||
TestPlanPrincipal testPlanPrincipal = new TestPlanPrincipal();
|
for (String principal : principals) {
|
||||||
testPlanPrincipal.setTestPlanId(planId);
|
TestPlanPrincipal testPlanPrincipal = new TestPlanPrincipal();
|
||||||
testPlanPrincipal.setPrincipalId(principal);
|
testPlanPrincipal.setTestPlanId(planId);
|
||||||
testPlanPrincipalService.insert(testPlanPrincipal);
|
testPlanPrincipal.setPrincipalId(principal);
|
||||||
|
testPlanPrincipalService.insert(testPlanPrincipal);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (StringUtils.isBlank(testPlan.getProjectId())) {
|
if (StringUtils.isBlank(testPlan.getProjectId())) {
|
||||||
|
|
Loading…
Reference in New Issue