Browse Source

优化完善

厅长信箱
wxc 2 months ago
parent
commit
7a4566a08c
  1. 5
      mailbox-lan/src/main/java/com/biutag/lan/service/MailService.java

5
mailbox-lan/src/main/java/com/biutag/lan/service/MailService.java

@ -419,13 +419,16 @@ public class MailService extends ServiceImpl<MailMapper, Mail> {
}
} else {
// 市局
workService.update(new LambdaUpdateWrapper<Work>().eq(Work::getSignDeptId, mail.getFirstDeptId())
workService.update(new LambdaUpdateWrapper<Work>()
.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<Work>()
.eq(Work::getMailId, mailId)
.eq(Work::getSignDeptId, mail.getThreeDeptId())
.eq(Work::getSignRoleId, RoleEnum.THREE_DEPT_CLASSES.getRoleId())
.eq(Work::getMainDeptFlag, true)

Loading…
Cancel
Save