From cc1c8466c4f69cf844c5bcdb5493e677531f90b8 Mon Sep 17 00:00:00 2001 From: wxc <191104855@qq.com> Date: Mon, 1 Sep 2025 09:59:52 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/main/java/com/biutag/lan/service/WorkService.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mailbox-lan/src/main/java/com/biutag/lan/service/WorkService.java b/mailbox-lan/src/main/java/com/biutag/lan/service/WorkService.java index f939fea..e5a78a8 100644 --- a/mailbox-lan/src/main/java/com/biutag/lan/service/WorkService.java +++ b/mailbox-lan/src/main/java/com/biutag/lan/service/WorkService.java @@ -197,6 +197,9 @@ public class WorkService extends ServiceImpl { public boolean updateDone(String mailId, String empNo, String flowName) { Work work = getOne(mailId, empNo); + if (Objects.isNull(work)) { + return false; + } work.setUpdateTime(LocalDateTime.now()).setWorkState(Work.State.done.name()).setFlowName(flowName); return updateById(work); }