From 00e990fd2ffa6bdf9ba748bd2f43a76a4eef2c49 Mon Sep 17 00:00:00 2001 From: pjb <123456> Date: 星期四, 26 六月 2025 10:36:44 +0800 Subject: [PATCH] 日志ID重复问题 --- zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/OrderNoRuleServiceImpl.java | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/OrderNoRuleServiceImpl.java b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/OrderNoRuleServiceImpl.java index c12db65..fddb14f 100644 --- a/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/OrderNoRuleServiceImpl.java +++ b/zy-asrs-wms/src/main/java/com/zy/asrs/wms/asrs/service/impl/OrderNoRuleServiceImpl.java @@ -44,10 +44,10 @@ StringBuffer buffer = new StringBuffer(); buffer.append(orderNoRule.getOrderConst());//璁㈠崟甯搁噺 - String pattern = "yyyyMMddHHmmss"; - if (orderNoRule.getTimeRule() == 0) { - pattern = "yyyyMMdd"; - } + String pattern = "yyMMddHHmmss"; +// if (orderNoRule.getTimeRule() == 0) { +// pattern = "yyyyMMdd"; +// } SimpleDateFormat format = new SimpleDateFormat(pattern); buffer.append(format.format(new Date()));//璁㈠崟鏃堕棿 -- Gitblit v1.9.1