Browse Source

mes接口优化

master
psh 10 months ago
parent
commit
b088453042
  1. 4
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/mes/controller/MesController.java
  2. 11
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/YCLCKTask.java
  3. 11
      lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/YCLRKTask.java

4
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/mes/controller/MesController.java

@ -118,7 +118,7 @@ public class MesController {
qpmes098ResponseBody.setSTATUS("E");
qpmes098ResponseBody.setMESSAGE("生产订单号不存在,无法关闭或删除");
qpmes098ResponseBody.setFKEY_VALUE01(qpmes098Request.getBODY().get(0).getAUFNR());
log.info("QPMES090服务被调用,返回参数:" + qpmes098Response);
log.info("QPMES098服务被调用,返回参数:" + qpmes098Response);
return qpmes098Response;
}
entity.setWorkorder_status(qpmes098Request.getBODY().get(0).getZSTAT());
@ -146,7 +146,7 @@ public class MesController {
qpmes118Response.setBODY(body);
Head head=new Head();
head.setDEST_SYSTEM("WMS");
head.setINTF_ID("QPMES060");
head.setINTF_ID("QPMES118");
head.setSRC_MSGID(IdUtil.simpleUUID());
head.setSRC_SYSTEM("AGV");
qpmes118Response.setHEAD(head);

11
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/YCLCKTask.java

@ -12,6 +12,7 @@ import org.nl.common.exception.BadRequestException;
import org.nl.config.MapOf;
import org.nl.wms.ext.service.WmsToAcsService;
import org.nl.wms.ext.service.dto.to.BaseResponse;
import org.nl.wms.mes.domain.Head;
import org.nl.wms.mes.domain.QPMES065Request;
import org.nl.wms.mes.domain.QPMES065RequestBody;
import org.nl.wms.pdm.service.IPdmBdWorkorderService;
@ -233,10 +234,12 @@ public class YCLCKTask extends AbstractTask {
QPMES065Request qpmes065Request = new QPMES065Request();
List<QPMES065RequestBody> qpmes065RequestBodyList=new ArrayList<>();
QPMES065RequestBody qpmes065RequestBody=new QPMES065RequestBody();
qpmes065Request.getHEAD().setDEST_SYSTEM("WMS");
qpmes065Request.getHEAD().setINTF_ID("QPMES065");
qpmes065Request.getHEAD().setSRC_MSGID(IdUtil.simpleUUID());
qpmes065Request.getHEAD().setSRC_SYSTEM("AGV");
Head head=new Head();
head.setDEST_SYSTEM("WMS");
head.setINTF_ID("QPMES065");
head.setSRC_MSGID(IdUtil.simpleUUID());
head.setSRC_SYSTEM("AGV");
qpmes065Request.setHEAD(head);
qpmes065RequestBody.setMoname(pdmBdWorkorder.getWorkorder_code());
qpmes065RequestBody.setLotSN(materialList.get(0).getPalletSN());
qpmes065RequestBody.setQty(String.valueOf(one.getMaterial_qty()));

11
lms/nladmin-system/nlsso-server/src/main/java/org/nl/wms/sch/task_manage/task/tasks/YCLRKTask.java

@ -10,6 +10,7 @@ import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import lombok.extern.slf4j.Slf4j;
import org.nl.common.exception.BadRequestException;
import org.nl.wms.ext.service.dto.to.BaseResponse;
import org.nl.wms.mes.domain.Head;
import org.nl.wms.mes.domain.QPMES062Request;
import org.nl.wms.mes.domain.QPMES062RequestBody;
import org.nl.wms.pdm.service.IPdmBdWorkorderService;
@ -207,10 +208,12 @@ public class YCLRKTask extends AbstractTask {
if(ObjectUtil.isNotEmpty(materialList)) {
String url = "http://192.168.9.5/sitAppWebApi/PDSToWMS/Api/QPMES062 ";
QPMES062Request qpmes062Request = new QPMES062Request();
qpmes062Request.getHEAD().setDEST_SYSTEM("WMS");
qpmes062Request.getHEAD().setINTF_ID("QPMES062");
qpmes062Request.getHEAD().setSRC_MSGID(IdUtil.simpleUUID());
qpmes062Request.getHEAD().setSRC_SYSTEM("AGV");
Head head=new Head();
head.setDEST_SYSTEM("WMS");
head.setINTF_ID("QPMES062");
head.setSRC_MSGID(IdUtil.simpleUUID());
head.setSRC_SYSTEM("AGV");
qpmes062Request.setHEAD(head);
List<QPMES062RequestBody> qpmes062RequestBodyList=new ArrayList<>();
QPMES062RequestBody qpmes062RequestBody=new QPMES062RequestBody();
qpmes062RequestBody.setSimtOrderNo(materialList.get(0).getSimtOrderNo());

Loading…
Cancel
Save