|
|
|
@ -1,6 +1,7 @@
|
|
|
|
|
package com.foreverwin.mesnac.anomaly.service.impl;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
|
|
|
|
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
|
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
|
|
|
import com.foreverwin.mesnac.anomaly.dto.AbnormalBillDisposeDto;
|
|
|
|
@ -422,7 +423,7 @@ public class AbnormalBillServiceImpl extends ServiceImpl<AbnormalBillMapper, Abn
|
|
|
|
|
abnormalBill.setStatus(Constants.SHUT_DOWN);
|
|
|
|
|
abnormalBillDispose.setClosedUser(user);
|
|
|
|
|
abnormalBillDispose.setClosedDateTime(now);
|
|
|
|
|
this.anomalyCreatedAndSendMessage(abnormalBill,abnormalBillDispose);
|
|
|
|
|
// this.anomalyCreatedAndSendMessage(abnormalBill,abnormalBillDispose);
|
|
|
|
|
this.saveOrUpdate(abnormalBill);
|
|
|
|
|
abnormalBillDisposeService.saveOrUpdate(abnormalBillDispose);
|
|
|
|
|
|
|
|
|
@ -847,6 +848,18 @@ public class AbnormalBillServiceImpl extends ServiceImpl<AbnormalBillMapper, Abn
|
|
|
|
|
case Constants.CANCEL://取消
|
|
|
|
|
abnormalMessage.setSendUserGroup(abnormalBill.getCancelSendUserGroup());
|
|
|
|
|
abnormalMessage.setAbnormalNode(Constants.ABNORMAL_MESSAGE_CANCEL);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//异常取消的时候要关闭当前异常单下所有的异常信息
|
|
|
|
|
UpdateWrapper<AbnormalMessage> messageTypeUpdateWrapper = new UpdateWrapper<>();
|
|
|
|
|
// messageTypeUpdateWrapper.eq("SITE",site);
|
|
|
|
|
// messageTypeUpdateWrapper.eq("ABNORMAL_BILL_BO",abnormalMessage.getAbnormalBillBo());
|
|
|
|
|
AbnormalMessage abnormalMessage2 = new AbnormalMessage();
|
|
|
|
|
// abnormalMessage2.setAbnormalBillBo(abnormalMessage.getAbnormalBillBo());
|
|
|
|
|
abnormalMessage2.setStatus("Y");
|
|
|
|
|
messageTypeUpdateWrapper.eq("STATUS","N");
|
|
|
|
|
messageTypeUpdateWrapper.eq("ABNORMAL_BILL_BO",abnormalMessage.getAbnormalBillBo());
|
|
|
|
|
abnormalMessageService.update(abnormalMessage2,messageTypeUpdateWrapper);
|
|
|
|
|
break;
|
|
|
|
|
case Constants.SHUT_DOWN:
|
|
|
|
|
break;
|
|
|
|
@ -899,7 +912,7 @@ public class AbnormalBillServiceImpl extends ServiceImpl<AbnormalBillMapper, Abn
|
|
|
|
|
abnormalMessage.setModifiedDateTime(now);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//判断,如果是方案确认,则发送用户,否则,除了节点是响应之外,则发送用户
|
|
|
|
|
//判断,如果是方案确认,则发送用户,否则,除了节点是响应之外,则发送用户组
|
|
|
|
|
if(Constants.ABNORMAL_MESSAGE_PROGRAM_CONFIRM.equals(abnormalMessage.getAbnormalNode())){
|
|
|
|
|
String sendUsers = abnormalMessage.getSendUser().replace(',', '|');
|
|
|
|
|
activeMQUtil.wechatSendMessage(sendUsers,abnormalMessage.getContent());
|
|
|
|
|