|
|
@ -758,7 +758,7 @@ public class AbnormalBillServiceImpl extends ServiceImpl<AbnormalBillMapper, Abn
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public void createAnomalyTask(String category, String resource, String shopOrder,
|
|
|
|
public void createAnomalyTask(String category, String resource, String shopOrder,
|
|
|
|
String sfc, String ncCodes,String position,String ncQty,
|
|
|
|
String sfc, String ncCodes,String position,String ncQty,
|
|
|
|
String ncDescription,String userGroup) {
|
|
|
|
String ncDescription,String userGroup,String remark) {
|
|
|
|
String site = CommonMethods.getSite();
|
|
|
|
String site = CommonMethods.getSite();
|
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
|
LocalDateTime now = LocalDateTime.now();
|
|
|
|
String user = CommonMethods.getUser();
|
|
|
|
String user = CommonMethods.getUser();
|
|
|
@ -767,7 +767,6 @@ public class AbnormalBillServiceImpl extends ServiceImpl<AbnormalBillMapper, Abn
|
|
|
|
AbnormalBill abnormalBill = new AbnormalBill();
|
|
|
|
AbnormalBill abnormalBill = new AbnormalBill();
|
|
|
|
if(Constants.ABNORMAL_RESRCE.equals(category)){
|
|
|
|
if(Constants.ABNORMAL_RESRCE.equals(category)){
|
|
|
|
abnormalNo = this.getNextNumber(category);
|
|
|
|
abnormalNo = this.getNextNumber(category);
|
|
|
|
|
|
|
|
|
|
|
|
abnormalBill.setNcCode(ncCodes);
|
|
|
|
abnormalBill.setNcCode(ncCodes);
|
|
|
|
abnormalBill.setRepairDateTime(now);
|
|
|
|
abnormalBill.setRepairDateTime(now);
|
|
|
|
abnormalBill.setType(category);
|
|
|
|
abnormalBill.setType(category);
|
|
|
@ -782,6 +781,7 @@ public class AbnormalBillServiceImpl extends ServiceImpl<AbnormalBillMapper, Abn
|
|
|
|
abnormalBill.setStatus(Constants.NEW);
|
|
|
|
abnormalBill.setStatus(Constants.NEW);
|
|
|
|
abnormalBill.setSfc(sfc);
|
|
|
|
abnormalBill.setSfc(sfc);
|
|
|
|
abnormalBill.setShopOrder(shopOrder);
|
|
|
|
abnormalBill.setShopOrder(shopOrder);
|
|
|
|
|
|
|
|
abnormalBill.setPbDescription(remark);
|
|
|
|
//根据工单找itemBo,并放到异常单里面
|
|
|
|
//根据工单找itemBo,并放到异常单里面
|
|
|
|
if(shopOrder != null ){
|
|
|
|
if(shopOrder != null ){
|
|
|
|
ShopOrder shopOrder1 = shopOrderMapper.selectById(HandleEnum.SHOP_ORDER.getHandle(site, shopOrder));
|
|
|
|
ShopOrder shopOrder1 = shopOrderMapper.selectById(HandleEnum.SHOP_ORDER.getHandle(site, shopOrder));
|
|
|
|