From f21b9b1feda7f364db0dbf26f7c1faaa3c934e37 Mon Sep 17 00:00:00 2001 From: rui_li <877258667@qq.com> Date: Fri, 7 Aug 2026 09:12:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=9F=E7=A0=81=E5=89=8D=E7=BC=80=E4=BF=AE?= =?UTF-8?q?=E6=94=B9=20=E9=85=8D=E7=BD=AE=E6=96=87=E4=BB=B6=E9=87=8C?= =?UTF-8?q?=E9=9D=A2=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/ccl/tt/controller/PrePressController.java | 4 +++- src/main/resources/application.properties | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/ccl/tt/controller/PrePressController.java b/src/main/java/com/ccl/tt/controller/PrePressController.java index 3825865..027a1ec 100644 --- a/src/main/java/com/ccl/tt/controller/PrePressController.java +++ b/src/main/java/com/ccl/tt/controller/PrePressController.java @@ -74,6 +74,8 @@ public class PrePressController { private PrepressService prepressService; @Value("${item.zipPath}") private String zipPath; + @Value("${item.serialPrefix}") + private String serialPrefix;//码包前缀字符串 @Autowired private BasicDao basicDao; @@ -896,7 +898,7 @@ public class PrePressController { Calendar cal = Calendar.getInstance(); cal.setTime(soInfo.getSerialsDate()); - String platCode3 = "J4K"; + String platCode3 = serialPrefix; String year1 = String.valueOf(cal.get(Calendar.YEAR) % 10); String week2 = org.apache.commons.lang3.StringUtils.leftPad(String.valueOf(cal.get(Calendar.WEEK_OF_YEAR)), 2, '0'); String day1 = String.valueOf(cal.get(Calendar.DAY_OF_WEEK)); diff --git a/src/main/resources/application.properties b/src/main/resources/application.properties index 4e6d7b2..624ae3e 100644 --- a/src/main/resources/application.properties +++ b/src/main/resources/application.properties @@ -104,6 +104,7 @@ spring.mail.protocol: smtps item.filePath: D:\\csvFile item.zipPath: D:\\zipFile item.site: 41 +item.serialPrefix: J4K #IFS接口配置 item.ifs-url=https://cclifswebservice.ccldesign.com/api/v1/ item.ifs-db-name=IFST