refactor(测试计划): 调整规划脑图name改Text
This commit is contained in:
parent
bd9f49d485
commit
38975938aa
|
@ -23,7 +23,7 @@ public class TestPlanCollectionMinderEditDTO implements Serializable {
|
|||
|
||||
@Schema(description = "节点名称")
|
||||
@NotBlank(message = "{test_plan_collection.name.not_blank}")
|
||||
private String name;
|
||||
private String text;
|
||||
|
||||
@Schema(description = "排序", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{test_plan_collection.num.not_blank}")
|
||||
|
|
|
@ -301,6 +301,7 @@ public class TestPlanCollectionMinderService {
|
|||
TestPlanCollection testPlanCollection = new TestPlanCollection();
|
||||
BeanUtils.copyBean(testPlanCollection, testPlanCollectionMinderEditDTO);
|
||||
testPlanCollection.setId(testPlanCollectionMinderEditDTO.getId());
|
||||
testPlanCollection.setName(testPlanCollectionMinderEditDTO.getText());
|
||||
testPlanCollection.setTestPlanId(request.getPlanId());
|
||||
testPlanCollection.setType(testPlanCollectionMinderEditDTO.getType());
|
||||
TestPlanCollection parent = parentMap.get(testPlanCollectionMinderEditDTO.getType()).get(0);
|
||||
|
@ -321,6 +322,7 @@ public class TestPlanCollectionMinderService {
|
|||
TestPlanCollection testPlanCollection = new TestPlanCollection();
|
||||
BeanUtils.copyBean(testPlanCollection, testPlanCollectionMinderEditDTO);
|
||||
testPlanCollection.setId(IDGenerator.nextStr());
|
||||
testPlanCollection.setName(testPlanCollectionMinderEditDTO.getText());
|
||||
testPlanCollection.setTestPlanId(request.getPlanId());
|
||||
testPlanCollection.setType(testPlanCollectionMinderEditDTO.getType());
|
||||
TestPlanCollection parent = parentMap.get(testPlanCollectionMinderEditDTO.getType()).get(0);
|
||||
|
|
|
@ -60,7 +60,7 @@ public class TestPlanCollectionMinderControllerTests extends BaseTest {
|
|||
List<TestPlanCollectionMinderEditDTO> editList = new ArrayList<>();
|
||||
TestPlanCollectionMinderEditDTO testPlanCollectionMinderEditDTO = new TestPlanCollectionMinderEditDTO();
|
||||
testPlanCollectionMinderEditDTO.setId("gyq_wxxx_4");
|
||||
testPlanCollectionMinderEditDTO.setName("更新名称");
|
||||
testPlanCollectionMinderEditDTO.setText("更新名称");
|
||||
testPlanCollectionMinderEditDTO.setNum(500L);
|
||||
testPlanCollectionMinderEditDTO.setExecuteMethod("PARALLEL");
|
||||
testPlanCollectionMinderEditDTO.setType("API");
|
||||
|
@ -88,7 +88,7 @@ public class TestPlanCollectionMinderControllerTests extends BaseTest {
|
|||
editList = new ArrayList<>();
|
||||
testPlanCollectionMinderEditDTO = new TestPlanCollectionMinderEditDTO();
|
||||
testPlanCollectionMinderEditDTO.setId(null);
|
||||
testPlanCollectionMinderEditDTO.setName("新建名称");
|
||||
testPlanCollectionMinderEditDTO.setText("新建名称");
|
||||
testPlanCollectionMinderEditDTO.setNum(500L);
|
||||
testPlanCollectionMinderEditDTO.setExecuteMethod("PARALLEL");
|
||||
testPlanCollectionMinderEditDTO.setType("API");
|
||||
|
|
Loading…
Reference in New Issue