From dccd1bba3d35c01fd9ca98d3c38b1e0ce594ad3b Mon Sep 17 00:00:00 2001 From: erzhongxmu Date: Sat, 2 Apr 2022 20:19:08 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BC=96=E5=8F=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main/java/com/zzjee/wmutil/wmUtil.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/zzjee/wmutil/wmUtil.java b/src/main/java/com/zzjee/wmutil/wmUtil.java index bf2b1492..020f73a7 100644 --- a/src/main/java/com/zzjee/wmutil/wmUtil.java +++ b/src/main/java/com/zzjee/wmutil/wmUtil.java @@ -112,7 +112,7 @@ public class wmUtil { SystemService systemService = ApplicationContextUtil.getContext().getBean(SystemService.class); Map countMap = systemService - .findOneForJdbc("SELECT cast(right(ifnull((notice_id),0),4)+1 as SIGNED) as count FROM wm_im_notice_h t where TO_DAYS(t.create_date) = TO_DAYS(NOW()) order by notice_id desc limit 1"); + .findOneForJdbc("SELECT cast(right(ifnull((notice_id),0),4)+1 as SIGNED) as count FROM wm_im_notice_h t where TO_DAYS(t.create_date) = TO_DAYS(NOW()) order by create_date, notice_id desc limit 1"); int newcount = 1; try { @@ -168,7 +168,7 @@ public class wmUtil { public synchronized static String getNextomNoticeIdtms(String orderType) { SystemService systemService = ApplicationContextUtil.getContext().getBean(SystemService.class); Map countMap = systemService - .findOneForJdbc("SELECT cast(right(ifnull((om_notice_id),0),4)+1 as SIGNED) as count FROM tms_om_notice_h t where TO_DAYS(t.create_date) = TO_DAYS(NOW()) order by om_notice_id desc limit 1"); + .findOneForJdbc("SELECT cast(right(ifnull((om_notice_id),0),4)+1 as SIGNED) as count FROM tms_om_notice_h t where TO_DAYS(t.create_date) = TO_DAYS(NOW()) order by create_date, om_notice_id desc limit 1"); String noticeid = null; int newcount = 1; @@ -207,7 +207,7 @@ public class wmUtil { public synchronized static String getNextomNoticeId(String orderType) { SystemService systemService = ApplicationContextUtil.getContext().getBean(SystemService.class); Map countMap = systemService - .findOneForJdbc("SELECT cast(right(ifnull((om_notice_id),0),4)+1 as SIGNED) as count FROM wm_om_notice_h t where TO_DAYS(t.create_date) = TO_DAYS(NOW()) order by om_notice_id desc limit 1"); + .findOneForJdbc("SELECT cast(right(ifnull((om_notice_id),0),4)+1 as SIGNED) as count FROM wm_om_notice_h t where TO_DAYS(t.create_date) = TO_DAYS(NOW()) order by create_date, om_notice_id desc limit 1"); String noticeid = null; int newcount = 1;