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); }