|
|
|
|
@ -457,6 +457,11 @@ public class MailService extends ServiceImpl<MailMapper, Mail> {
|
|
|
|
|
|
|
|
|
|
public boolean delete(MailIdValidate mailId) { |
|
|
|
|
Mail mail = baseMapper.selectById(mailId.getId()); |
|
|
|
|
if (mail == null){ |
|
|
|
|
mailSourceService.removeById(mailId.getId()); |
|
|
|
|
workMapper.delete(new LambdaQueryWrapper<Work>().eq(Work::getMailId, mailId.getId())); |
|
|
|
|
return true; |
|
|
|
|
} |
|
|
|
|
if (mailId.getId()!=null||!mailId.getId().equals("")){ |
|
|
|
|
if (mail.getFlowKey().equals(FlowNodeEnum.FIRST_SIGN.getKey())||mail.getFlowKey().equals(FlowNodeEnum.FIRST_DISTRIBUTE.getKey())){ |
|
|
|
|
baseMapper.deleteById(mailId.getId()); |
|
|
|
|
|