fix(功能用例): 修复用例脑图创建用例默认等级错误问题

This commit is contained in:
guoyuqi 2024-06-20 14:42:03 +08:00 committed by Craftsman
parent 932eb9ac72
commit 54057a2fb9
1 changed files with 1 additions and 1 deletions

View File

@ -635,7 +635,7 @@ public class FunctionalCaseMinderService {
FunctionalCaseCustomField customField = new FunctionalCaseCustomField(); FunctionalCaseCustomField customField = new FunctionalCaseCustomField();
customField.setCaseId(caseId); customField.setCaseId(caseId);
customField.setFieldId(defaultCustomFieldValueMap.get("priorityFieldId").toString()); customField.setFieldId(defaultCustomFieldValueMap.get("priorityFieldId").toString());
customField.setValue("P" + (functionalCaseChangeRequest.getPriority() - 1)); customField.setValue("P" + (functionalCaseChangeRequest.getPriority() == 0 ? 0 : functionalCaseChangeRequest.getPriority() - 1));
caseCustomFieldMapper.insertSelective(customField); caseCustomFieldMapper.insertSelective(customField);
//日志 //日志
FunctionalCaseHistoryLogDTO historyLogDTO = new FunctionalCaseHistoryLogDTO(functionalCase, functionalCaseBlob, functionalCaseCustomFields, new ArrayList<>(), new ArrayList<>()); FunctionalCaseHistoryLogDTO historyLogDTO = new FunctionalCaseHistoryLogDTO(functionalCase, functionalCaseBlob, functionalCaseCustomFields, new ArrayList<>(), new ArrayList<>());