|
|
|
@ -733,32 +733,44 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
OdsProcureOrder order=new OdsProcureOrder();
|
|
|
|
|
order.setProcureCode(odsProcureOrder.getProcureCode());
|
|
|
|
|
order.setActive("1");
|
|
|
|
|
List<OdsProcureOrder> orderList= odsProcureOrderMapper.selectOdsProcureOrderList(order);
|
|
|
|
|
for (OdsProcureOrder order1:orderList){
|
|
|
|
|
//查询这次收货信息----生成质检任务------- //插入检验集计划
|
|
|
|
|
QcCheckTaskIncomeDTO qcCheckTaskIncomeDTO = new QcCheckTaskIncomeDTO();
|
|
|
|
|
qcCheckTaskIncomeDTO.setCheckLoc("mjtest");
|
|
|
|
|
qcCheckTaskIncomeDTO.setCheckType("checkTypeLL");
|
|
|
|
|
OdsProcureOrder order1= odsProcureOrderMapper.selectOdsProcureOrderByID(odsProcureOrder.getID());
|
|
|
|
|
|
|
|
|
|
//查询这次收货信息----生成质检任务------- //插入检验集计划
|
|
|
|
|
QcCheckTaskIncomeDTO qcCheckTaskIncomeDTO = new QcCheckTaskIncomeDTO();
|
|
|
|
|
qcCheckTaskIncomeDTO.setCheckLoc("mjtest");
|
|
|
|
|
qcCheckTaskIncomeDTO.setCheckType("checkTypeLL");
|
|
|
|
|
// qcCheckTaskIncomeDTO.setCheckManCode("mobile");
|
|
|
|
|
// qcCheckTaskIncomeDTO.setCheckManName("手持测试用户");
|
|
|
|
|
qcCheckTaskIncomeDTO.setSupplierCode(order1.getSupplierCode());
|
|
|
|
|
String name = odsProcureOrderMapper.selectBaseSupplier(order1);
|
|
|
|
|
qcCheckTaskIncomeDTO.setSupplierName(name);
|
|
|
|
|
qcCheckTaskIncomeDTO.setOrderType("8040");//包材固定码
|
|
|
|
|
qcCheckTaskIncomeDTO.setUnit(order1.getUnit());
|
|
|
|
|
qcCheckTaskIncomeDTO.setFactoryCode(odsProcureOrder.getFactoryCode());
|
|
|
|
|
qcCheckTaskIncomeDTO.setQuality(order1.getPlanNumber());
|
|
|
|
|
qcCheckTaskIncomeDTO.setMaterialCode(order1.getMaterialCode());
|
|
|
|
|
qcCheckTaskIncomeDTO.setMaterialName(order1.getMaterialDesc());
|
|
|
|
|
// qcCheckTaskIncomeDTO.setIncomeBatchNo(order.getUserDefined2());
|
|
|
|
|
qcCheckTaskIncomeDTO.setOrderNo(order1.getProcureCode());
|
|
|
|
|
qcCheckTaskIncomeDTO.setIncomeTime(new Date());
|
|
|
|
|
remoteQualityService.createIncomeTask(qcCheckTaskIncomeDTO);
|
|
|
|
|
qcCheckTaskIncomeDTO.setSupplierCode(order1.getSupplierCode());
|
|
|
|
|
String name = odsProcureOrderMapper.selectBaseSupplier(order1);
|
|
|
|
|
qcCheckTaskIncomeDTO.setSupplierName(name);
|
|
|
|
|
qcCheckTaskIncomeDTO.setOrderType("8040");//包材固定码
|
|
|
|
|
qcCheckTaskIncomeDTO.setUnit(order1.getUnit());
|
|
|
|
|
qcCheckTaskIncomeDTO.setFactoryCode(odsProcureOrder.getFactoryCode());
|
|
|
|
|
qcCheckTaskIncomeDTO.setQuality(odsProcureOrder.getCzNumber());//操作数量
|
|
|
|
|
qcCheckTaskIncomeDTO.setMaterialCode(order1.getMaterialCode());
|
|
|
|
|
qcCheckTaskIncomeDTO.setMaterialName(order1.getMaterialDesc());
|
|
|
|
|
// qcCheckTaskIncomeDTO.setIncomeBatchNo(order.getUserDefined2());
|
|
|
|
|
qcCheckTaskIncomeDTO.setOrderNo(order1.getProcureCode());
|
|
|
|
|
qcCheckTaskIncomeDTO.setIncomeTime(new Date());
|
|
|
|
|
R ruslt= remoteQualityService.createIncomeTask(qcCheckTaskIncomeDTO);
|
|
|
|
|
// 成功后修改--
|
|
|
|
|
if (ruslt.getCode()==200){//成功
|
|
|
|
|
odsProcureOrderMapper.updateOdsProcureOrderAddOperationNumber(odsProcureOrder);
|
|
|
|
|
}else {
|
|
|
|
|
result="操作失败";
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public OdsProcureOrder selectArrivalRegistration(OdsProcureOrder odsProcureOrder) {
|
|
|
|
|
//采购单,物料,行项目
|
|
|
|
|
DynamicDataSourceContextHolder.push("ds_" + odsProcureOrder.getFactoryCode());
|
|
|
|
|
OdsProcureOrder order= odsProcureOrderMapper.selectOdsProcureOrderByID(odsProcureOrder.getID());
|
|
|
|
|
return order;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String DesignatedPalletOutboundWCS(WMSDesignatedPalle wmsDesignatedPalle) {
|
|
|
|
|
// 定义请求的URL地址
|
|
|
|
|
String url = "http://192.168.202.37:9001/api/v1/ReceiveMesMsg/packingMaterialsOutBoundByPallet";
|
|
|
|
|