refactor(功能用例): 功能用例脑图修改用例等级回显方式

This commit is contained in:
guoyuqi 2024-06-13 16:41:07 +08:00 committed by 刘瑞斌
parent 7f7819af89
commit 4f7b6aae67
2 changed files with 2 additions and 2 deletions

View File

@ -20,7 +20,7 @@ public class FunctionalMinderTreeNodeDTO {
private String text;
@Schema(description = "用例等级")
private String priority;
private Integer priority;
@Schema(description = "用例评审状态")
private String status;

View File

@ -183,7 +183,7 @@ public class FunctionalCaseMinderService {
rootData.setId(functionalCaseMindDTO.getId());
rootData.setPos(functionalCaseMindDTO.getPos());
rootData.setText(functionalCaseMindDTO.getName());
rootData.setPriority(functionalCaseMindDTO.getPriority());
rootData.setPriority(StringUtils.isNotBlank(functionalCaseMindDTO.getPriority()) ? Integer.parseInt(functionalCaseMindDTO.getPriority().substring(1)) : 0);
rootData.setStatus(functionalCaseMindDTO.getReviewStatus());
rootData.setResource(List.of(Translator.get("minder_extra_node.case")));
List<FunctionalMinderTreeDTO> children = buildChildren(functionalCaseMindDTO);