wmsaddReturnSC接口修改

master
mengjiao 3 weeks ago
parent d57df7563d
commit 92620519da

@ -2126,7 +2126,6 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
return orderList1; return orderList1;
}else { }else {
//二维码获取的信息查询对应的sap生产订单再用生产订单查询子单 //二维码获取的信息查询对应的sap生产订单再用生产订单查询子单
List<OdsProcureOutOrder> orderLists=new ArrayList<>(); List<OdsProcureOutOrder> orderLists=new ArrayList<>();
List<OdsProcureOutOrder> orderListone= odsProcureOutOrderMapper.selectWmsOdsProcureOutOrder(odsProcureOutOrder); List<OdsProcureOutOrder> orderListone= odsProcureOutOrderMapper.selectWmsOdsProcureOutOrder(odsProcureOutOrder);
if (orderListone.size()>0){ if (orderListone.size()>0){
@ -2866,7 +2865,7 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
order.setMaterialDesc(materialDesc); order.setMaterialDesc(materialDesc);
order.setUserDefined1(userDefined2);//批次 order.setUserDefined1(userDefined2);//批次
order.setUserDefined2(whCode); order.setUserDefined2(whCode);
order.setUserDefined3(wlCode); order.setUserDefined3(sn);
order.setSn(sn); order.setSn(sn);
order.setPlanNumber(amount); order.setPlanNumber(amount);
order.setLocCode(waCode);//库区 order.setLocCode(waCode);//库区
@ -2879,9 +2878,9 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
order.setSiteCode(factoryCode); order.setSiteCode(factoryCode);
odsProcureOutOrderMapper.insertWmsRawMissionOut(order); odsProcureOutOrderMapper.insertWmsRawMissionOut(order);
BigDecimal returnNumber= order1.getReturnNumber(); BigDecimal returnNumber= order1.getReturnNumber();
order1.setReturnNumber(returnNumber.add(amount)); order1.setReturnNumber(returnNumber.add(amount));//
if(order1.getPlanNumber().compareTo(order1.getReturnNumber())<=0){ if(order1.getPlanNumber().compareTo(order1.getReturnNumber())<=0){
order1.setOrderStatus("3"); order1.setOrderStatus("3");//
}else { }else {
order1.setOrderStatus("2"); order1.setOrderStatus("2");
} }

Loading…
Cancel
Save