|
|
|
@ -459,7 +459,6 @@ public class AbnormalBillController {
|
|
|
|
|
|
|
|
|
|
try{
|
|
|
|
|
abnormalBill.setHandle(HandleEnum.ABNORMAL_BILL.getHandle(site,abnormalBill.getAbnormalNo()));
|
|
|
|
|
abnormalBill.setBpmSubmit("true");
|
|
|
|
|
abnormalBill.setItemBo(HandleEnum.ITEM.getHandle(site,abnormalBill.getItemBo(),"A"));
|
|
|
|
|
abnormalBillService.programConfirm(abnormalBill,abnormalBillDispose);
|
|
|
|
|
return new ResultVo(ResultCode.SUCCESS,"BPM方案确认回传成功");
|
|
|
|
@ -480,14 +479,16 @@ public class AbnormalBillController {
|
|
|
|
|
}else if (StringUtils.isBlank(abnormalBill.getAbnormalNo())){
|
|
|
|
|
return new ResultVo(ResultCode.FAILED,"响应处理失败:异常单号为空");
|
|
|
|
|
}
|
|
|
|
|
com.foreverwin.modular.core.util.CommonMethods.setSite("1000");
|
|
|
|
|
com.foreverwin.modular.core.util.CommonMethods.setValue("SITE","1000");
|
|
|
|
|
String site = com.foreverwin.modular.core.util.CommonMethods.getSite();
|
|
|
|
|
com.foreverwin.modular.core.util.CommonMethods.setUser(abnormalBill.getResponseUser());
|
|
|
|
|
AbnormalBill bill = new AbnormalBill();
|
|
|
|
|
bill.setAbnormalNo(abnormalBill.getAbnormalNo());
|
|
|
|
|
List<AbnormalBill> abnormalBills = abnormalBillService.selectList(bill);
|
|
|
|
|
abnormalBills.get(0).setBpmSubmit("true");
|
|
|
|
|
try{
|
|
|
|
|
abnormalBillService.resProcessing(abnormalBills.get(0));
|
|
|
|
|
AbnormalBill abnormalBillOld = abnormalBillService.getById(HandleEnum.ABNORMAL_BILL.getHandle(site,abnormalBill.getAbnormalNo()));
|
|
|
|
|
if ("N".equals(abnormalBillOld.getStatus())){
|
|
|
|
|
abnormalBillService.resProcessing(abnormalBillOld);
|
|
|
|
|
}else {
|
|
|
|
|
return new ResultVo(ResultCode.FAILED,"响应处理失败,该异常单号MES中已响应处理:" + abnormalBill.getAbnormalNo());
|
|
|
|
|
}
|
|
|
|
|
return new ResultVo(ResultCode.SUCCESS,"BPM响应处理成功");
|
|
|
|
|
}catch(Exception e){
|
|
|
|
|
return new ResultVo(ResultCode.FAILED,"响应处理失败:" + e.getMessage());
|
|
|
|
|