|
|
|
@ -408,6 +408,7 @@ public class AbnormalBillServiceImpl extends ServiceImpl<AbnormalBillMapper, Abn
|
|
|
|
|
String site = CommonMethods.getSite();
|
|
|
|
|
String user = CommonMethods.getUser();
|
|
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
|
|
String locale = LocaleContextHolder.getLocale().getLanguage();
|
|
|
|
|
abnormalBillDispose.setHandle(HandleEnum.ABNORMAL_BILL_DISPOSE.getHandle(site,abnormalBill.getAbnormalNo()));
|
|
|
|
|
|
|
|
|
|
AbnormalBill abnormalBill1 = abnormalBillMapper.selectById(HandleEnum.ABNORMAL_BILL.getHandle(site, abnormalBill.getAbnormalNo()));
|
|
|
|
@ -453,8 +454,13 @@ public class AbnormalBillServiceImpl extends ServiceImpl<AbnormalBillMapper, Abn
|
|
|
|
|
abnormalBillDisposeService.saveOrUpdate(abnormalBillDispose);
|
|
|
|
|
this.saveOrUpdate(abnormalBill);
|
|
|
|
|
|
|
|
|
|
this.anomalyCreatedAndSendMessage(abnormalBillMapper.selectById(abnormalBill.getHandle()),abnormalBillDispose);
|
|
|
|
|
|
|
|
|
|
//保存到异常计划表
|
|
|
|
|
AbnormalBill abnormalBill2 = abnormalBillMapper.selectById(abnormalBill.getHandle());
|
|
|
|
|
if(Constants.ABNORMAL_QUALITY.equals(abnormalBill2.getType())){
|
|
|
|
|
AbnormalBillDispose abnormalBillDispose1 = abnormalBillDisposeMapper.selectById(abnormalBillDispose.getHandle());
|
|
|
|
|
abnormalPlanService.saveAbnormalPlan(abnormalBill2,abnormalBillDispose1,now);
|
|
|
|
|
}
|
|
|
|
|
this.anomalyCreatedAndSendMessage(abnormalBill2,abnormalBillDispose);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@ -504,8 +510,8 @@ public class AbnormalBillServiceImpl extends ServiceImpl<AbnormalBillMapper, Abn
|
|
|
|
|
abnormalBillDispose.setClosedDateTime(now);
|
|
|
|
|
// this.anomalyCreatedAndSendMessage(abnormalBill,abnormalBillDispose);
|
|
|
|
|
//保存到异常计划表
|
|
|
|
|
AbnormalBillDisposeDto abnormalBillDisposeDto = abnormalBillDisposeMapper.findAllByAbnormalNo(abnormalBill, local);
|
|
|
|
|
if(Constants.ABNORMAL_QUALITY.equals(abnormalBill.getType())){
|
|
|
|
|
AbnormalBillDisposeDto abnormalBillDisposeDto = abnormalBillDisposeMapper.findAllByAbnormalNo(abnormalBill, local);
|
|
|
|
|
abnormalPlanService.saveAbnormalPlan(abnormalBillDisposeDto,now);
|
|
|
|
|
}
|
|
|
|
|
this.saveOrUpdate(abnormalBill);
|
|
|
|
@ -917,7 +923,6 @@ public class AbnormalBillServiceImpl extends ServiceImpl<AbnormalBillMapper, Abn
|
|
|
|
|
//异常类型
|
|
|
|
|
abnormalMessage.setType(abnormalBill.getType());
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
abnormalMessage.setMessageType(abnormalBill.getMessageType());
|
|
|
|
|
// //根据异常的类型找到消息的类型
|
|
|
|
|
|
|
|
|
|