Browse Source

未下发信件删除功能

master
laishajiang 2 years ago
parent
commit
d6466bcb6f
  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

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

Loading…
Cancel
Save