Commit 2e80391a by 章家宝

feat: 日志记录描述

1 parent d2fb52bf
...@@ -185,7 +185,7 @@ public class InspectionWorkOrderService { ...@@ -185,7 +185,7 @@ public class InspectionWorkOrderService {
Inspector inspector = inspectorRepository.findByIdAndDeleteFlag(updateVO.getInspectorId(), DeleteFlag.NOT_DELETED.getCode()).orElseThrow(() -> new BusinessCodeException(ErrorCodeEnum.PARAM_ERROR, "检测师不存在,检测师ID:" + updateVO.getInspectorId())); Inspector inspector = inspectorRepository.findByIdAndDeleteFlag(updateVO.getInspectorId(), DeleteFlag.NOT_DELETED.getCode()).orElseThrow(() -> new BusinessCodeException(ErrorCodeEnum.PARAM_ERROR, "检测师不存在,检测师ID:" + updateVO.getInspectorId()));
if (!updateVO.getInspectorId().equals(originalInspectorId)) { if (!updateVO.getInspectorId().equals(originalInspectorId)) {
workOrder.setInspector(inspector); workOrder.setInspector(inspector);
modifyContent.append(String.format("检测师从ID:%s改为ID:%s;", originalInspectorName, inspector.getName())); modifyContent.append(String.format("检测师:%s改为:%s;", originalInspectorName, inspector.getName()));
isModified = true; isModified = true;
Object[] args = {workOrder.getWoId()}; Object[] args = {workOrder.getWoId()};
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!