wms成品入库的批次bug--批次字符串上可能会多个空格,导致判断有误--所以去除空格

master
mengjiao 4 months ago
parent 1c683f8dfd
commit fbb0bf5e12

@ -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);

Loading…
Cancel
Save