diff --git a/mailbox-lan/src/main/java/com/biutag/lan/service/MailService.java b/mailbox-lan/src/main/java/com/biutag/lan/service/MailService.java index dd2e549..cc75657 100644 --- a/mailbox-lan/src/main/java/com/biutag/lan/service/MailService.java +++ b/mailbox-lan/src/main/java/com/biutag/lan/service/MailService.java @@ -419,13 +419,16 @@ public class MailService extends ServiceImpl { } } else { // 市局 - workService.update(new LambdaUpdateWrapper().eq(Work::getSignDeptId, mail.getFirstDeptId()) + workService.update(new LambdaUpdateWrapper() + .eq(Work::getMailId, mailId) + .eq(Work::getSignDeptId, mail.getFirstDeptId()) .eq(Work::getSignRoleId, RoleEnum.MUNICIPAL_DEPT_CLASSES.getRoleId()) .set(Work::getWorkState, Work.State.done.name()) .set(Work::getWorkType, WorkType.processing.name())); if (!returnFlag) { // 市局 workService.update(new LambdaUpdateWrapper() + .eq(Work::getMailId, mailId) .eq(Work::getSignDeptId, mail.getThreeDeptId()) .eq(Work::getSignRoleId, RoleEnum.THREE_DEPT_CLASSES.getRoleId()) .eq(Work::getMainDeptFlag, true)