From 54057a2fb9ed33edc9f336c7117d956f8254766a Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Thu, 20 Jun 2024 14:42:03 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E5=8A=9F=E8=83=BD=E7=94=A8=E4=BE=8B):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=94=A8=E4=BE=8B=E8=84=91=E5=9B=BE=E5=88=9B?= =?UTF-8?q?=E5=BB=BA=E7=94=A8=E4=BE=8B=E9=BB=98=E8=AE=A4=E7=AD=89=E7=BA=A7?= =?UTF-8?q?=E9=94=99=E8=AF=AF=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../functional/service/FunctionalCaseMinderService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseMinderService.java b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseMinderService.java index 179cbeb488..50ba310125 100644 --- a/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseMinderService.java +++ b/backend/services/case-management/src/main/java/io/metersphere/functional/service/FunctionalCaseMinderService.java @@ -635,7 +635,7 @@ public class FunctionalCaseMinderService { FunctionalCaseCustomField customField = new FunctionalCaseCustomField(); customField.setCaseId(caseId); 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); //日志 FunctionalCaseHistoryLogDTO historyLogDTO = new FunctionalCaseHistoryLogDTO(functionalCase, functionalCaseBlob, functionalCaseCustomFields, new ArrayList<>(), new ArrayList<>());