|
|
|
|
@ -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) |
|
|
|
|
|