From fbb0bf5e12330df7e7e01188effda8e374721ae9 Mon Sep 17 00:00:00 2001 From: mengjiao <3338049200@qq,com> Date: Mon, 2 Dec 2024 10:24:36 +0800 Subject: [PATCH] =?UTF-8?q?wms=E6=88=90=E5=93=81=E5=85=A5=E5=BA=93?= =?UTF-8?q?=E7=9A=84=E6=89=B9=E6=AC=A1bug--=E6=89=B9=E6=AC=A1=E5=AD=97?= =?UTF-8?q?=E7=AC=A6=E4=B8=B2=E4=B8=8A=E5=8F=AF=E8=83=BD=E4=BC=9A=E5=A4=9A?= =?UTF-8?q?=E4=B8=AA=E7=A9=BA=E6=A0=BC=EF=BC=8C=E5=AF=BC=E8=87=B4=E5=88=A4?= =?UTF-8?q?=E6=96=AD=E6=9C=89=E8=AF=AF--=E6=89=80=E4=BB=A5=E5=8E=BB?= =?UTF-8?q?=E9=99=A4=E7=A9=BA=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../op/wms/service/impl/WmsProductPutServiceImpl.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java index 812b5955..0b3172aa 100644 --- a/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java +++ b/op-modules/op-wms/src/main/java/com/op/wms/service/impl/WmsProductPutServiceImpl.java @@ -298,7 +298,7 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService { map.put("BATCH", wmsProductPut3.getAttr4()); map.put("STCK_TYPE", wmsProductPut1.getAttr3()); - if (wmsProductPut3.getBatchNumber().length()==24){ + if (wmsProductPut3.getBatchNumber().trim().length()==24){ String HSDAT = InterceptionSJRules(wmsProductPut3.getBatchNumber()); map.put("HSDAT", HSDAT); @@ -516,8 +516,8 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService { map.put("ERFME", mesReportWork.getUnit()); map.put("BATCH", mesReportWork.getBatchSK()); map.put("STCK_TYPE", selectedType); - if (mesReportWork.getBatch().length()==24){ - //String batch = mesReportWork.getBatch().substring(12); + if (mesReportWork.getBatch().trim().length()==24){ + String HSDAT = InterceptionSJRules(mesReportWork.getBatch()); map.put("HSDAT", HSDAT); }else { @@ -559,7 +559,7 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService { map.put("ERFME", mesReportWork.getUnit()); map.put("BATCH", mesReportWork.getBatchSK()); map.put("STCK_TYPE", selectedType); - if (mesReportWork.getBatch().length()==24){ + if (mesReportWork.getBatch().trim().length()==24){ //String batch = mesReportWork.getBatch().substring(12); String HSDAT = InterceptionSJRules(mesReportWork.getBatch()); map.put("HSDAT", HSDAT); @@ -1172,7 +1172,7 @@ public class WmsProductPutServiceImpl implements IWmsProductPutService { wmsProductPutk.setStatus("2");// wmsProductPutk.setSapStatus("0"); wmsProductPutk.setAttr3(formattedDate);// - if (wmsProductPutk.getBatchNumber().length()==24){ + if (wmsProductPutk.getBatchNumber().trim().length()==24){ //String batch = mesReportWork.getBatch().substring(12); String batch = InterceptionRules(wmsProductPutk.getBatchNumber()); wmsProductPutk.setAttr4(batch);