feat(功能用例): 补充评审脑图增加用例ID字段

This commit is contained in:
guoyuqi 2024-07-04 10:09:49 +08:00 committed by Craftsman
parent e8ffc7b3b3
commit 08e2748eae
2 changed files with 4 additions and 0 deletions

View File

@ -13,6 +13,9 @@ public class FunctionalMinderTreeNodeDTO {
@Schema(description = "节点ID") @Schema(description = "节点ID")
private String id; private String id;
@Schema(description = "用例ID")
private String caseId;
@Schema(description = "节点顺序") @Schema(description = "节点顺序")
private Long pos; private Long pos;

View File

@ -160,6 +160,7 @@ public class FunctionalCaseMinderService {
rootData.setId(functionalCaseMindDTO.getId()); rootData.setId(functionalCaseMindDTO.getId());
rootData.setPos(functionalCaseMindDTO.getPos()); rootData.setPos(functionalCaseMindDTO.getPos());
rootData.setText(functionalCaseMindDTO.getName()); rootData.setText(functionalCaseMindDTO.getName());
rootData.setCaseId(functionalCaseMindDTO.getCaseId());
rootData.setPriority(StringUtils.isNotBlank(priorityMap.get(functionalCaseMindDTO.getCaseId())) ? Integer.parseInt(priorityMap.get(functionalCaseMindDTO.getCaseId()).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.setStatus(functionalCaseMindDTO.getReviewStatus());
rootData.setResource(List.of(Translator.get("minder_extra_node.case"))); rootData.setResource(List.of(Translator.get("minder_extra_node.case")));