From 62c6fd9f3ed66e10b8642af20fcc18e09b45c989 Mon Sep 17 00:00:00 2001 From: "DESKTOP-5DIJMF9\\admin" <2388969634@qq.com> Date: Tue, 8 Oct 2024 19:43:06 +0800 Subject: [PATCH] =?UTF-8?q?opt=EF=BC=9A=E4=BB=A3=E7=A0=81=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../nl/wms/ext/crm/rest/CrmToLmsController.java | 2 +- .../mes/service/impl/MesToLmsServiceImpl.java | 16 +++++++++++++--- 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/ext/crm/rest/CrmToLmsController.java b/lms/nladmin-system/src/main/java/org/nl/wms/ext/crm/rest/CrmToLmsController.java index c8d0177..0543c4d 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/ext/crm/rest/CrmToLmsController.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/ext/crm/rest/CrmToLmsController.java @@ -25,7 +25,7 @@ public class CrmToLmsController { @Log("CRM给LMS推送客户信息") @SaIgnore - public ResponseEntity momRollFoilWeighing(@RequestBody JSONObject jo) { + public ResponseEntity getCustomerInfo(@RequestBody JSONObject jo) { return new ResponseEntity<>(crmToLmsService.getCustomerInfo(jo), HttpStatus.OK); } diff --git a/lms/nladmin-system/src/main/java/org/nl/wms/ext/mes/service/impl/MesToLmsServiceImpl.java b/lms/nladmin-system/src/main/java/org/nl/wms/ext/mes/service/impl/MesToLmsServiceImpl.java index 030480c..d52cdfa 100644 --- a/lms/nladmin-system/src/main/java/org/nl/wms/ext/mes/service/impl/MesToLmsServiceImpl.java +++ b/lms/nladmin-system/src/main/java/org/nl/wms/ext/mes/service/impl/MesToLmsServiceImpl.java @@ -121,22 +121,32 @@ public class MesToLmsServiceImpl implements MesToLmsService { @Transactional(rollbackFor = Exception.class) public JSONObject momRollFoilStart(JSONObject param) { log.info("momRollFoilStart接口输入参数为:-------------------" + param.toString()); - + //母卷号 String containerName = param.getString("ContainerName"); + //机台编码 String ResourceName = param.getString("ResourceName"); + //生产工单 String MfgOrderName = param.getString("MfgOrderName"); + //产品编码 String ProductName = param.getString("ProductName"); + //产品名称 String Description = param.getString("Description"); + //理论长度(m) String TheoryHeight = param.getString("TheoryHeight"); + //设备生产速度m/s String EqpVelocity = param.getString("EqpVelocity"); + //上卷开始时间 String UpCoilerDate = param.getString("UpCoilerDate"); + //是否重新更新 String IsReloadSend = param.getString("IsReloadSend"); + //备用字段,SF2是锂电,SF1是标箔 String Attribute1 = param.getString("Attribute1"); if (StringUtils.isEmpty(Attribute1)) { Attribute1 = "SF2"; } - + //生箔点位库存表 WQLObject pointTab = WQLObject.getWQLObject("ST_IVT_SbPointIvt"); + //生箔工序工单 WQLObject orderTab = WQLObject.getWQLObject("PDM_BI_RawFoilWorkOrder"); JSONObject result = new JSONObject(); @@ -166,7 +176,7 @@ public class MesToLmsServiceImpl implements MesToLmsService { if (ObjectUtil.isEmpty(UpCoilerDate)) { throw new BadRequestException("开始时间不能为空"); } - + //查询当前生箔机台信息 JSONObject jsonPoint = pointTab.query("ext_code ='" + ResourceName + "'").uniqueResult(0); if (ObjectUtil.isEmpty(jsonPoint)) { jsonPoint = new JSONObject();