|
|
|
@ -39,6 +39,10 @@ import com.op.wms.mapper.*;
|
|
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
import com.op.wms.service.IOdsProcureOrderService;
|
|
|
|
|
import org.springframework.web.context.request.RequestContextHolder;
|
|
|
|
|
import org.springframework.web.context.request.ServletRequestAttributes;
|
|
|
|
|
|
|
|
|
|
import javax.servlet.http.HttpServletRequest;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 包材采购单Service业务层处理
|
|
|
|
@ -178,16 +182,25 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
odsProcureOrder.setOrderStatus("2");
|
|
|
|
|
}
|
|
|
|
|
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);
|
|
|
|
|
//插入检验集计划
|
|
|
|
|
QcCheckTaskIncomeDTO qcCheckTaskIncomeDTO=new QcCheckTaskIncomeDTO();
|
|
|
|
|
qcCheckTaskIncomeDTO.setCheckLoc("mjtest");
|
|
|
|
|
qcCheckTaskIncomeDTO.setCheckType("checkTypeLL");
|
|
|
|
|
qcCheckTaskIncomeDTO.setCheckManCode("mobile");
|
|
|
|
|
qcCheckTaskIncomeDTO.setCheckManName("手持测试用户");
|
|
|
|
|
qcCheckTaskIncomeDTO.setSupplierCode(order.getSupplierCode());
|
|
|
|
|
String name= odsProcureOrderMapper.selectBaseSupplier(odsProcureOrder);
|
|
|
|
|
qcCheckTaskIncomeDTO.setSupplierName(name);
|
|
|
|
|
qcCheckTaskIncomeDTO.setOrderType("bc");
|
|
|
|
|
qcCheckTaskIncomeDTO.setUnit(order.getUnit());
|
|
|
|
|
qcCheckTaskIncomeDTO.setFactoryCode(odsProcureOrder.getFactoryCode());
|
|
|
|
|
qcCheckTaskIncomeDTO.setQuality(odsProcureOrder.getPlanNumber());
|
|
|
|
|
qcCheckTaskIncomeDTO.setMaterialCode(odsProcureOrder.getMaterialCode());
|
|
|
|
|
qcCheckTaskIncomeDTO.setMaterialName(odsProcureOrder.getSupplierName());
|
|
|
|
|
qcCheckTaskIncomeDTO.setIncomeBatchNo(odsProcureOrder.getIncomeBatchNo());
|
|
|
|
|
qcCheckTaskIncomeDTO.setOrderNo(order.getProcureCode());
|
|
|
|
|
qcCheckTaskIncomeDTO.setIncomeTime(new Date());
|
|
|
|
|
remoteQualityService.createIncomeTask(qcCheckTaskIncomeDTO);
|
|
|
|
|
return tem;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -657,6 +670,31 @@ public class OdsProcureOrderServiceImpl implements IOdsProcureOrderService {
|
|
|
|
|
return AjaxResult.success();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
|
public void PurchaseOrderdeliPdas(OdsProcureOrder odsProcureOrder) {
|
|
|
|
|
DynamicDataSourceContextHolder.push("ds_" + odsProcureOrder.getFactoryCode());
|
|
|
|
|
HttpServletRequest request = ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest();
|
|
|
|
|
|
|
|
|
|
request.setAttribute("#header.poolName", "ds_" + odsProcureOrder.getFactoryCode());
|
|
|
|
|
QcCheckTaskIncomeDTO qcCheckTaskIncomeDTO=new QcCheckTaskIncomeDTO();
|
|
|
|
|
qcCheckTaskIncomeDTO.setCheckLoc("mjtest");
|
|
|
|
|
qcCheckTaskIncomeDTO.setCheckType("checkTypeLL");
|
|
|
|
|
qcCheckTaskIncomeDTO.setCheckManCode("mobile");
|
|
|
|
|
qcCheckTaskIncomeDTO.setCheckManName("手持测试用户");
|
|
|
|
|
qcCheckTaskIncomeDTO.setSupplierCode("1");
|
|
|
|
|
qcCheckTaskIncomeDTO.setFactoryCode("1000");
|
|
|
|
|
qcCheckTaskIncomeDTO.setSupplierName("1");
|
|
|
|
|
qcCheckTaskIncomeDTO.setOrderType("bc");
|
|
|
|
|
qcCheckTaskIncomeDTO.setUnit("1");
|
|
|
|
|
qcCheckTaskIncomeDTO.setQuality(new BigDecimal("1"));
|
|
|
|
|
qcCheckTaskIncomeDTO.setMaterialCode("1");
|
|
|
|
|
qcCheckTaskIncomeDTO.setMaterialName("1");
|
|
|
|
|
qcCheckTaskIncomeDTO.setIncomeBatchNo("1");
|
|
|
|
|
qcCheckTaskIncomeDTO.setOrderNo("1");
|
|
|
|
|
qcCheckTaskIncomeDTO.setIncomeTime(new Date());
|
|
|
|
|
remoteQualityService.createIncomeTask(qcCheckTaskIncomeDTO);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public String DesignatedPalletOutboundWCS(WMSDesignatedPalle wmsDesignatedPalle){
|
|
|
|
|
// 定义请求的URL地址
|
|
|
|
|
String url = "http://192.168.202.37:9001/api/v1/ReceiveMesMsg/packingMaterialsOutBoundByPallet";
|
|
|
|
|