|
|
|
@ -722,28 +722,39 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
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");
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public String ArrivalRegistration(OdsProcureOrder odsProcureOrder) {
|
|
|
|
|
String result="操作成功";
|
|
|
|
|
DynamicDataSourceContextHolder.push("ds_" + odsProcureOrder.getFactoryCode());
|
|
|
|
|
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");
|
|
|
|
|
// 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(odsProcureOrder.getFactoryCode());
|
|
|
|
|
qcCheckTaskIncomeDTO.setQuality(order.getAmount());
|
|
|
|
|
qcCheckTaskIncomeDTO.setMaterialCode(order.getMaterialCode());
|
|
|
|
|
qcCheckTaskIncomeDTO.setMaterialName(order.getMaterialDesc());
|
|
|
|
|
qcCheckTaskIncomeDTO.setIncomeBatchNo(order.getUserDefined2());
|
|
|
|
|
qcCheckTaskIncomeDTO.setOrderNo(order.getPoNo());
|
|
|
|
|
qcCheckTaskIncomeDTO.setIncomeTime(new Date());
|
|
|
|
|
remoteQualityService.createIncomeTask(qcCheckTaskIncomeDTO);
|
|
|
|
|
qcCheckTaskIncomeDTO.setSupplierCode(order1.getSupplierCode());
|
|
|
|
|
String name = odsProcureOrderMapper.selectBaseSupplier(order1);
|
|
|
|
|
qcCheckTaskIncomeDTO.setSupplierName(name);
|
|
|
|
|
qcCheckTaskIncomeDTO.setOrderType("bc");
|
|
|
|
|
qcCheckTaskIncomeDTO.setUnit(order1.getUnit());
|
|
|
|
|
qcCheckTaskIncomeDTO.setFactoryCode(odsProcureOrder.getFactoryCode());
|
|
|
|
|
qcCheckTaskIncomeDTO.setQuality(order.getPlanNumber());
|
|
|
|
|
qcCheckTaskIncomeDTO.setMaterialCode(order.getMaterialCode());
|
|
|
|
|
qcCheckTaskIncomeDTO.setMaterialName(order.getMaterialDesc());
|
|
|
|
|
// qcCheckTaskIncomeDTO.setIncomeBatchNo(order.getUserDefined2());
|
|
|
|
|
qcCheckTaskIncomeDTO.setOrderNo(order.getProcureCode());
|
|
|
|
|
qcCheckTaskIncomeDTO.setIncomeTime(new Date());
|
|
|
|
|
remoteQualityService.createIncomeTask(qcCheckTaskIncomeDTO);
|
|
|
|
|
}
|
|
|
|
|
//
|
|
|
|
|
return result;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|