|
|
|
@ -2879,7 +2879,10 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
order.setCreateBy(createBy);
|
|
|
|
|
order.setCreateDate(new Date());
|
|
|
|
|
order.setSiteCode(factoryCode);
|
|
|
|
|
odsProcureOutOrderMapper.insertWmsRawMissionOut(order);
|
|
|
|
|
|
|
|
|
|
// odsProcureOutOrderMapper.insertWmsRawMissionOut(order);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
BigDecimal returnNumber= order1.getReturnNumber();
|
|
|
|
|
order1.setReturnNumber(returnNumber.add(amount));//
|
|
|
|
|
if(order1.getPlanNumber().compareTo(order1.getReturnNumber())<=0){
|
|
|
|
@ -2891,6 +2894,31 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
OdsProcureOrder order2 =new OdsProcureOrder();
|
|
|
|
|
order2.setUserDefined6(userDefined6);
|
|
|
|
|
odsProcureOrderMapper.updateodsProcureOrderCard(order2);
|
|
|
|
|
|
|
|
|
|
WmsRawOrderInSn wmsRawOrderInSn = new WmsRawOrderInSn();
|
|
|
|
|
wmsRawOrderInSn.setRawOrderInSnId(IdUtils.fastSimpleUUID());
|
|
|
|
|
wmsRawOrderInSn.setUserDefined1("2");//1是收货,2是入库
|
|
|
|
|
wmsRawOrderInSn.setUserDefined2(order.getUserDefined7());//批次
|
|
|
|
|
wmsRawOrderInSn.setWhCode(odsProcureOutOrder.getWhCode());//厂库编号
|
|
|
|
|
wmsRawOrderInSn.setWaCode(odsProcureOutOrder.getWaCode());
|
|
|
|
|
wmsRawOrderInSn.setWlCode(odsProcureOutOrder.getSn());//库位设置为托盘
|
|
|
|
|
wmsRawOrderInSn.setPoNo(produceCode);//采购单号
|
|
|
|
|
// wmsRawOrderInSn.setPoLine(odsProcureOrder.getPoLine());//行项目
|
|
|
|
|
wmsRawOrderInSn.setMaterialCode(odsProcureOutOrder.getMaterialCode());
|
|
|
|
|
wmsRawOrderInSn.setMaterialDesc(odsProcureOutOrder.getMaterialDesc());
|
|
|
|
|
wmsRawOrderInSn.setAmount(odsProcureOutOrder.getPlanNumber());//实际输入数量
|
|
|
|
|
wmsRawOrderInSn.setFactoryCode(factoryCode);
|
|
|
|
|
wmsRawOrderInSn.setCreateBy(odsProcureOutOrder.getCreateBy());
|
|
|
|
|
wmsRawOrderInSn.setGmtCreate(new Date());
|
|
|
|
|
wmsRawOrderInSn.setActiveFlag("1");
|
|
|
|
|
wmsRawOrderInSn.setUserDefined4(order.getUnit());//单位
|
|
|
|
|
wmsRawOrderInSn.setSn(odsProcureOutOrder.getSn());//托盘号
|
|
|
|
|
wmsRawOrderInSn.setFactoryCode(factoryCode);
|
|
|
|
|
// wmsRawOrderInSn.setUserDefined3(order.getID());
|
|
|
|
|
wmsRawOrderInSn.setUserDefined5(produceCode);
|
|
|
|
|
wmsRawOrderInSn.setUserDefined6(odsProcureOutOrder.getSn());//标识码绑定
|
|
|
|
|
wmsRawOrderInSnMapper.insertWmsRawOrderInSn(wmsRawOrderInSn);
|
|
|
|
|
|
|
|
|
|
//库存
|
|
|
|
|
//收货
|
|
|
|
|
WmsOdsMateStorageNewsSn wmsOdsMateStorageNewsSn = new WmsOdsMateStorageNewsSn();
|
|
|
|
|