From 541e5d3634d4df7050e3e95fc4b4c45666369783 Mon Sep 17 00:00:00 2001 From: guoyuqi Date: Wed, 23 Oct 2024 14:45:42 +0800 Subject: [PATCH] =?UTF-8?q?fix(=E7=94=A8=E4=BE=8B=E7=AE=A1=E7=90=86):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E8=84=91=E5=9B=BE=E7=BC=96=E8=BE=91=E7=94=A8?= =?UTF-8?q?=E4=BE=8B=E6=9B=B4=E6=96=B0=E6=97=A5=E5=BF=97=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=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 | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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 1d6d08d0c9..aad1bb8d14 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 @@ -642,7 +642,7 @@ public class FunctionalCaseMinderService { caseCustomFieldMapper.insertSelective(customField); //日志 FunctionalCaseHistoryLogDTO historyLogDTO = new FunctionalCaseHistoryLogDTO(functionalCase, functionalCaseBlob, functionalCaseCustomFields, new ArrayList<>(), new ArrayList<>()); - LogDTO logDTO = addLog(request, userId, caseId, historyLogDTO, null); + LogDTO logDTO = addLog(request, userId, caseId, historyLogDTO, null, OperationLogType.ADD); functionalMinderUpdateDTO.getAddLogDTOS().add(logDTO); //消息通知 FunctionalCaseDTO functionalCaseDTO = getFunctionalCaseDTO(functionalCase, functionalCaseCustomFields, customFieldNameMap); @@ -678,7 +678,7 @@ public class FunctionalCaseMinderService { //日志 FunctionalCaseHistoryLogDTO historyLogDTO = new FunctionalCaseHistoryLogDTO(functionalCase, functionalCaseBlob, oldCaseCustomFieldMap.get(caseId), new ArrayList<>(), new ArrayList<>()); FunctionalCaseHistoryLogDTO old = new FunctionalCaseHistoryLogDTO(oldCaseMap.get(caseId), oldBlobMap.get(caseId), new ArrayList<>(), new ArrayList<>(), new ArrayList<>()); - LogDTO logDTO = addLog(request, userId, caseId, historyLogDTO, old); + LogDTO logDTO = addLog(request, userId, caseId, historyLogDTO, old, OperationLogType.UPDATE); functionalMinderUpdateDTO.getUpdateLogDTOS().add(logDTO); //通知 FunctionalCaseDTO functionalCaseDTO = getFunctionalCaseDTO(functionalCase, functionalCaseCustomFields, customFieldNameMap); @@ -969,13 +969,13 @@ public class FunctionalCaseMinderService { return functionalCaseDTO; } - private LogDTO addLog(FunctionalCaseMinderEditRequest request, String userId, String caseId, FunctionalCaseHistoryLogDTO historyLogDTO, FunctionalCaseHistoryLogDTO old) { + private LogDTO addLog(FunctionalCaseMinderEditRequest request, String userId, String caseId, FunctionalCaseHistoryLogDTO historyLogDTO, FunctionalCaseHistoryLogDTO old, OperationLogType operationLogType) { LogDTO dto = new LogDTO( request.getProjectId(), null, caseId, userId, - OperationLogType.ADD.name(), + operationLogType.name(), OperationLogModule.FUNCTIONAL_CASE, historyLogDTO.getFunctionalCase().getName()); dto.setHistory(true);