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

This commit is contained in:
guoyuqi 2024-06-14 11:45:02 +08:00 committed by 刘瑞斌
parent bd9f49d485
commit 38975938aa
3 changed files with 5 additions and 3 deletions

View File

@ -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}")

View File

@ -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);

View File

@ -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");