|
|
|
@ -72,6 +72,7 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
@Autowired
|
|
|
|
|
private BaseWarehouseMapper baseWarehouseMapper;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 查询包材采购单
|
|
|
|
|
*
|
|
|
|
@ -715,6 +716,36 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
return orderList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String PurchaseOrderdeliPdaConfirm(OdsProcureOrder odsProcureOrder) {
|
|
|
|
|
DynamicDataSourceContextHolder.push("ds_" + odsProcureOrder.getFactoryCode());
|
|
|
|
|
String result="操作成功";
|
|
|
|
|
List<WmsRawOrderInSn> wmsRawOrderInSn = wmsRawOrderInSnMapper.selecPurchaseOrderdeliPdaList(odsProcureOrder);
|
|
|
|
|
for (WmsRawOrderInSn order: wmsRawOrderInSn){
|
|
|
|
|
// //查询这次收货信息----生成质检任务------- //插入检验集计划
|
|
|
|
|
QcCheckTaskIncomeDTO qcCheckTaskIncomeDTO = new QcCheckTaskIncomeDTO();
|
|
|
|
|
qcCheckTaskIncomeDTO.setCheckLoc("mjtest");
|
|
|
|
|
qcCheckTaskIncomeDTO.setCheckType("checkTypeLL");
|
|
|
|
|
// qcCheckTaskIncomeDTO.setCheckManCode("mobile");
|
|
|
|
|
// qcCheckTaskIncomeDTO.setCheckManName("手持测试用户");
|
|
|
|
|
OdsProcureOrder order1 = odsProcureOrderMapper.selectOdsProcureOrderByID(order.getUserDefined3());
|
|
|
|
|
qcCheckTaskIncomeDTO.setSupplierCode(order1.getSupplierCode());
|
|
|
|
|
String name = odsProcureOrderMapper.selectBaseSupplier(order1);
|
|
|
|
|
qcCheckTaskIncomeDTO.setSupplierName(name);
|
|
|
|
|
qcCheckTaskIncomeDTO.setOrderType("bc");
|
|
|
|
|
qcCheckTaskIncomeDTO.setUnit(order1.getUnit());
|
|
|
|
|
qcCheckTaskIncomeDTO.setFactoryCode(order1.getFactoryCode());
|
|
|
|
|
qcCheckTaskIncomeDTO.setQuality(order.getAmount());
|
|
|
|
|
qcCheckTaskIncomeDTO.setMaterialCode(order.getMaterialCode());
|
|
|
|
|
qcCheckTaskIncomeDTO.setMaterialName(order.getMaterialDesc());
|
|
|
|
|
qcCheckTaskIncomeDTO.setIncomeBatchNo(order.getIncomeBatchNo());
|
|
|
|
|
qcCheckTaskIncomeDTO.setOrderNo(order.getPoNo());
|
|
|
|
|
qcCheckTaskIncomeDTO.setIncomeTime(new Date());
|
|
|
|
|
remoteQualityService.createIncomeTask(qcCheckTaskIncomeDTO);
|
|
|
|
|
}
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String DesignatedPalletOutboundWCS(WMSDesignatedPalle wmsDesignatedPalle) {
|
|
|
|
|
// 定义请求的URL地址
|
|
|
|
|
String url = "http://192.168.202.37:9001/api/v1/ReceiveMesMsg/packingMaterialsOutBoundByPallet";
|
|
|
|
|