From 4f3c007dab13ba0312a1e9b9c3c41a0a83bf52b1 Mon Sep 17 00:00:00 2001 From: DouDou <877258667@qq.com> Date: Fri, 9 Aug 2024 11:07:11 +0800 Subject: [PATCH] =?UTF-8?q?FQC=20=E6=A0=87=E7=AD=BE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/schedule/service/impl/ScheduleServiceImpl.java | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/spring/modules/schedule/service/impl/ScheduleServiceImpl.java b/src/main/java/com/spring/modules/schedule/service/impl/ScheduleServiceImpl.java index 70eeb2f..e93e4fe 100644 --- a/src/main/java/com/spring/modules/schedule/service/impl/ScheduleServiceImpl.java +++ b/src/main/java/com/spring/modules/schedule/service/impl/ScheduleServiceImpl.java @@ -540,6 +540,8 @@ public class ScheduleServiceImpl
implements ScheduleService { String fqcBy = String.valueOf(resultMap.get("fqcBy")); String orderNo = String.valueOf(resultMap.get("orderNo")); String rawMaterialType = String.valueOf(resultMap.get("rawMaterialType")); + //2024-08-09 后加的字段 + String sysBatchTime = String.valueOf(resultMap.get("sysBatchTime")); //设置可以直接获取的时间参数 printMap.put("stockTime", stockTime); @@ -559,7 +561,7 @@ public class ScheduleServiceImpl
implements ScheduleService { if(null == systemBatchNo || "".equals(systemBatchNo) || null == rawMaterialBatchNo || "".equals(rawMaterialBatchNo)){ //查询当前卷信息 //获取时间的部分编码 - String sixTimeCode = this.getFqcSixTimeCode(stockTime); + String sixTimeCode = this.getFqcSixTimeCode(sysBatchTime); String newSystemBatchNo = "WM"+sixTimeCode+"30"+projectCode+primaryMaterial; //获取三位流水号 String serialNo = this.getCustomerSerialNo("ALL", "FQCLabel", newSystemBatchNo, 3); @@ -646,7 +648,8 @@ public class ScheduleServiceImpl
implements ScheduleService { public static String getFqcSixTimeCode(String stockTime) { String sixTimeCode = stockTime.substring(2, 10); ///替换成空字符串 - sixTimeCode = sixTimeCode.replace("/", ""); + sixTimeCode = sixTimeCode.replace("-", ""); + //sixTimeCode = sixTimeCode.replace("/", ""); return sixTimeCode; }