feat(功能用例): 补充评审脑图调整用例等级修改
This commit is contained in:
parent
34ebcd8371
commit
6dee6010eb
|
@ -18,6 +18,11 @@ public class FunctionalCaseMindDTO {
|
|||
@Size(min = 1, max = 50, message = "{functional_case.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String id;
|
||||
|
||||
@Schema(description = "caseID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{functional_case.id.not_blank}", groups = {Updated.class})
|
||||
@Size(min = 1, max = 50, message = "{functional_case.id.length_range}", groups = {Created.class, Updated.class})
|
||||
private String caseId;
|
||||
|
||||
@Schema(description = "模块ID", requiredMode = Schema.RequiredMode.REQUIRED)
|
||||
@NotBlank(message = "{functional_case.module_id.not_blank}", groups = {Created.class})
|
||||
@Size(min = 1, max = 50, message = "{functional_case.module_id.length_range}", groups = {Created.class, Updated.class})
|
||||
|
|
|
@ -793,7 +793,7 @@
|
|||
|
||||
<select id="getMinderCaseList" resultType="io.metersphere.functional.dto.FunctionalCaseMindDTO">
|
||||
SELECT
|
||||
fc.id, fc.name, fc.project_id, fc.module_id, fc.template_id, fc.review_status, fc.pos, fc.case_edit_type,
|
||||
fc.id, fc.id as caseId, fc.name, fc.project_id, fc.module_id, fc.template_id, fc.review_status, fc.pos, fc.case_edit_type,
|
||||
fcb.steps, fcb.text_description, fcb.expected_result, fcb.prerequisite, fcb.description
|
||||
FROM
|
||||
functional_case fc
|
||||
|
@ -840,6 +840,7 @@
|
|||
history.`status` as status,
|
||||
fc.module_id as moduleId,
|
||||
fc.name as name,
|
||||
fc.id as caseId,
|
||||
fc.project_id, fc.template_id, fc.review_status, fc.pos, fc.case_edit_type,
|
||||
fcb.steps, fcb.text_description, fcb.expected_result, fcb.prerequisite, fcb.description
|
||||
FROM
|
||||
|
@ -869,6 +870,7 @@
|
|||
history.`status` as status,
|
||||
fc.module_id as moduleId,
|
||||
fc.name as name,
|
||||
fc.id as caseId,
|
||||
fc.project_id, fc.template_id, fc.review_status, fc.pos, fc.case_edit_type,
|
||||
fcb.steps, fcb.text_description, fcb.expected_result, fcb.prerequisite, fcb.description
|
||||
FROM
|
||||
|
|
|
@ -160,7 +160,7 @@ public class FunctionalCaseMinderService {
|
|||
rootData.setId(functionalCaseMindDTO.getId());
|
||||
rootData.setPos(functionalCaseMindDTO.getPos());
|
||||
rootData.setText(functionalCaseMindDTO.getName());
|
||||
rootData.setPriority(StringUtils.isNotBlank(priorityMap.get(functionalCaseMindDTO.getId())) ? Integer.parseInt(priorityMap.get(functionalCaseMindDTO.getId()).substring(1)) + 1 : 1);
|
||||
rootData.setPriority(StringUtils.isNotBlank(priorityMap.get(functionalCaseMindDTO.getCaseId())) ? Integer.parseInt(priorityMap.get(functionalCaseMindDTO.getCaseId()).substring(1)) + 1 : 1);
|
||||
rootData.setStatus(functionalCaseMindDTO.getReviewStatus());
|
||||
rootData.setResource(List.of(Translator.get("minder_extra_node.case")));
|
||||
List<FunctionalMinderTreeDTO> children = buildChildren(functionalCaseMindDTO);
|
||||
|
|
Loading…
Reference in New Issue