155外面多加一层
This commit is contained in:
@@ -181,6 +181,7 @@ public class MesController {
|
|||||||
QPMES155Response qpmes155Response =new QPMES155Response();
|
QPMES155Response qpmes155Response =new QPMES155Response();
|
||||||
QPMES155Request qpmes155Request=notice.toJavaObject(QPMES155Request.class);
|
QPMES155Request qpmes155Request=notice.toJavaObject(QPMES155Request.class);
|
||||||
log.info(qpmes155Request.toString());
|
log.info(qpmes155Request.toString());
|
||||||
|
if(ObjectUtil.isNotEmpty(qpmes155Request)) {
|
||||||
for (QPMES155RequestBody temp : qpmes155Request.getBODY()) {
|
for (QPMES155RequestBody temp : qpmes155Request.getBODY()) {
|
||||||
try {
|
try {
|
||||||
Workorder workorder = new Workorder();
|
Workorder workorder = new Workorder();
|
||||||
@@ -190,12 +191,17 @@ public class MesController {
|
|||||||
log.error("工单已存在导致新增失败,{}{}", e, e.getMessage());
|
log.error("工单已存在导致新增失败,{}{}", e, e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
Head head=new Head();
|
Head head=new Head();
|
||||||
head.setDEST_SYSTEM("WMS");
|
head.setDEST_SYSTEM("WMS");
|
||||||
head.setINTF_ID("QPMES155");
|
head.setINTF_ID("QPMES155");
|
||||||
head.setSRC_MSGID(IdUtil.simpleUUID());
|
head.setSRC_MSGID(IdUtil.simpleUUID());
|
||||||
head.setSRC_SYSTEM("AGV");
|
head.setSRC_SYSTEM("AGV");
|
||||||
qpmes155Response.setHEAD(head);
|
QPMES155Data qpmes155Data=new QPMES155Data();
|
||||||
|
qpmes155Data.setHEAD(head);
|
||||||
|
qpmes155Response.setData(qpmes155Data);
|
||||||
|
qpmes155Response.setMsg("数据接收成功");
|
||||||
|
qpmes155Response.setCode("0");
|
||||||
log.info("QPMES155服务被调用{}",qpmes155Response.toString());
|
log.info("QPMES155服务被调用{}",qpmes155Response.toString());
|
||||||
return qpmes155Response;
|
return qpmes155Response;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -0,0 +1,17 @@
|
|||||||
|
package org.nl.wms.mes.domain;
|
||||||
|
|
||||||
|
import com.alibaba.fastjson.annotation.JSONField;
|
||||||
|
import lombok.Data;
|
||||||
|
import lombok.ToString;
|
||||||
|
|
||||||
|
import java.util.List;
|
||||||
|
|
||||||
|
@Data
|
||||||
|
@ToString
|
||||||
|
public class QPMES155Data {
|
||||||
|
@JSONField(name = "HEAD")
|
||||||
|
private Head HEAD;
|
||||||
|
@JSONField(name = "BODY")
|
||||||
|
private List<QPMES155ResponseBody> BODY;
|
||||||
|
|
||||||
|
}
|
||||||
@@ -9,9 +9,10 @@ import java.util.List;
|
|||||||
@Data
|
@Data
|
||||||
@ToString
|
@ToString
|
||||||
public class QPMES155Response {
|
public class QPMES155Response {
|
||||||
@JSONField(name = "HEAD")
|
private String code;
|
||||||
private Head HEAD;
|
|
||||||
@JSONField(name = "BODY")
|
private String msg;
|
||||||
private List<QPMES155ResponseBody> BODY;
|
|
||||||
|
private QPMES155Data data;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user