|
|
|
|
@ -105,7 +105,7 @@ public class MailService extends ServiceImpl<MailMapper, Mail> {
|
|
|
|
|
.stream().sorted(Comparator.comparing(MailFlow::getCreateTime).reversed()).collect(Collectors.toList()); |
|
|
|
|
|
|
|
|
|
flowDetail.setMail(mailVo) |
|
|
|
|
.setIsFav(Objects.nonNull(favoriteService.get(mailId, AdminThreadLocal.getEmpNo()))) |
|
|
|
|
.setIsFav(Objects.nonNull(favoriteService.getByCurrentUser(mailId))) |
|
|
|
|
.setFlows(flows); |
|
|
|
|
// 部门会签
|
|
|
|
|
mailVo.setCountersigns(mailCountersignService.list(mailId)); |
|
|
|
|
@ -398,9 +398,14 @@ public class MailService extends ServiceImpl<MailMapper, Mail> {
|
|
|
|
|
.setMailState(MailState.processing.getValue()) |
|
|
|
|
.setFlowName(FlowNodeEnum.FIRST_SIGN.getFullName()) |
|
|
|
|
.setMailCategory(null).setMailFirstCategory(null); |
|
|
|
|
Work work = workMapper.selectOne(new LambdaQueryWrapper<Work>().eq(Work::getMailId, mailId)); |
|
|
|
|
LambdaQueryWrapper<Work> queryWrapper = new LambdaQueryWrapper<Work>().eq(Work::getMailId, mailId) |
|
|
|
|
.eq(Work::getSignRoleId, RoleEnum.MUNICIPAL_DEPT_CLASSES.getRoleId()); |
|
|
|
|
Work work = workMapper.selectOne(queryWrapper); |
|
|
|
|
work.setWorkState(Work.State.todo.name()); |
|
|
|
|
workMapper.updateById(work); |
|
|
|
|
MailSource mailSource = mailSourceService.getById(mailId); |
|
|
|
|
mailSource.setSignFlag(false); |
|
|
|
|
mailSourceService.updateById(mailSource); |
|
|
|
|
LocalDateTime now = LocalDateTime.now(); |
|
|
|
|
MailFlow mailFlow = new MailFlow() |
|
|
|
|
.setMailId(mailId) |
|
|
|
|
|