wms修改12

master
mengjiao 1 year ago
parent 2fff9ae453
commit be29364888

@ -16,7 +16,9 @@ import com.op.common.core.domain.R;
import com.op.common.core.web.domain.AjaxResult; import com.op.common.core.web.domain.AjaxResult;
import com.op.common.security.utils.SecurityUtils; import com.op.common.security.utils.SecurityUtils;
import com.op.system.api.RemoteQualityService;
import com.op.system.api.RemoteSapService; import com.op.system.api.RemoteSapService;
import com.op.system.api.domain.quality.QcCheckTaskIncomeDTO;
import com.op.system.api.domain.sap.SapBackflushMPQuery; import com.op.system.api.domain.sap.SapBackflushMPQuery;
import com.op.system.api.domain.sap.SapMaterialPosting; import com.op.system.api.domain.sap.SapMaterialPosting;
import com.op.system.api.domain.sap.SapPurchaseOrderQuery; import com.op.system.api.domain.sap.SapPurchaseOrderQuery;
@ -58,6 +60,8 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
private OdsProcureOutOrderMapper odsProcureOutOrderMapper; private OdsProcureOutOrderMapper odsProcureOutOrderMapper;
@Autowired @Autowired
private RemoteSapService remoteSapService; private RemoteSapService remoteSapService;
@Autowired
private RemoteQualityService remoteQualityService;
@Autowired @Autowired
private BaseWarehouseMapper baseWarehouseMapper; private BaseWarehouseMapper baseWarehouseMapper;
@ -174,6 +178,16 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
odsProcureOrder.setOrderStatus("2"); odsProcureOrder.setOrderStatus("2");
} }
Integer tem= odsProcureOrderMapper.updateRealityNuById(odsProcureOrder); Integer tem= odsProcureOrderMapper.updateRealityNuById(odsProcureOrder);
// //插入检验集计划
// QcCheckTaskIncomeDTO qcCheckTaskIncomeDTO=new QcCheckTaskIncomeDTO();
// qcCheckTaskIncomeDTO.setCheckLoc("mjtest");
// qcCheckTaskIncomeDTO.setCheckType("checkTypeLL");
// qcCheckTaskIncomeDTO.setCheckManCode("mobile");
// qcCheckTaskIncomeDTO.setCheckManName("手持测试用户");
//// qcCheckTaskIncomeDTO.setSupplierCode();
//// qcCheckTaskIncomeDTO.setSupplierName();
//// qcCheckTaskIncomeDTO.setOrderType("bc");
// remoteQualityService.createIncomeTask(qcCheckTaskIncomeDTO);
return tem; return tem;
} }
@ -215,6 +229,7 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
wmsOdsMateStorageNewsSn.setUserDefined2(wmsRawOrderInSn.getUserDefined2());//批次 wmsOdsMateStorageNewsSn.setUserDefined2(wmsRawOrderInSn.getUserDefined2());//批次
wmsOdsMateStorageNewsSn.setFactoryCode(wmsRawOrderInSn.getFactoryCode()); wmsOdsMateStorageNewsSn.setFactoryCode(wmsRawOrderInSn.getFactoryCode());
wmsOdsMateStorageNewsSn.setSapFactoryCode(wmsRawOrderInSn.getFactoryCode()); wmsOdsMateStorageNewsSn.setSapFactoryCode(wmsRawOrderInSn.getFactoryCode());
wmsOdsMateStorageNewsSn.setActiveFlag("1");
wmsOdsMateStorageNewsSnMapper.insertWmsOdsMateStorageNewsSn(wmsOdsMateStorageNewsSn); wmsOdsMateStorageNewsSnMapper.insertWmsOdsMateStorageNewsSn(wmsOdsMateStorageNewsSn);
//修改库存 //修改库存
//2,修改库存---/加库存数量-/-冻结数量 //2,修改库存---/加库存数量-/-冻结数量
@ -231,7 +246,7 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
wmsOdsMateStorageNews1.setWhCode(wmsRawOrderInSn.getWhCode()); wmsOdsMateStorageNews1.setWhCode(wmsRawOrderInSn.getWhCode());
wmsOdsMateStorageNews1.setWlCode(wmsRawOrderInSn.getWlCode()); wmsOdsMateStorageNews1.setWlCode(wmsRawOrderInSn.getWlCode());
wmsOdsMateStorageNews1.setAmount(wmsRawOrderInSn.getAmount()); wmsOdsMateStorageNews1.setAmount(wmsRawOrderInSn.getAmount());
wmsOdsMateStorageNews1.setStorageAmount(wmsRawOrderInSn.getAmount()); wmsOdsMateStorageNews1.setStorageAmount(new BigDecimal("0"));
wmsOdsMateStorageNews1.setMaterialCode(wmsRawOrderInSn.getMaterialCode()); wmsOdsMateStorageNews1.setMaterialCode(wmsRawOrderInSn.getMaterialCode());
wmsOdsMateStorageNews1.setMaterialDesc(wmsRawOrderInSn.getMaterialDesc()); wmsOdsMateStorageNews1.setMaterialDesc(wmsRawOrderInSn.getMaterialDesc());
wmsOdsMateStorageNews1.setStorageType("BC"); wmsOdsMateStorageNews1.setStorageType("BC");
@ -246,7 +261,6 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
wmsOdsMateStorageNewsSnMapper.updateAdd(wmsOdsEmStorageNews); wmsOdsMateStorageNewsSnMapper.updateAdd(wmsOdsEmStorageNews);
} }
wmsRawOrderInSnMapper.updateU1Byid(wmsRawOrderInSn); wmsRawOrderInSnMapper.updateU1Byid(wmsRawOrderInSn);
} }
@Override @Override
@ -533,10 +547,11 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
@Override @Override
@DS("#header.poolName") @DS("#header.poolName")
public void OutboundPostingSAP(List<OdsProcureOutOrder> orderList) { public void OutboundPostingSAP(List<OdsProcureOutOrder> orderList) {
// * 退料的移动类型为 262 // * 退料的移动类型为 262
// * 领料的移动类型为 261 // * 领料的移动类型为 261
List<OdsProcureOutOrder> orderList1=odsProcureOutOrderMapper.selectOdsProcureOutOrderListByIds(orderList); // List<OdsProcureOutOrder> orderList1=odsProcureOutOrderMapper.selectOdsProcureOutOrderListByIds(orderList);
List<OdsProcureOutOrder> orderList1=odsProcureOutOrderMapper.selectOdsProcureOutOrderListByu1(orderList);
//查询这个地方先暂时去掉Order_Status = '3' 条件
for (OdsProcureOutOrder odsProcureOutOrder: for (OdsProcureOutOrder odsProcureOutOrder:
orderList1) { orderList1) {
//取sap仓库号 //取sap仓库号

Loading…
Cancel
Save