上下架读取商品名称

master
e 2019-09-30 19:18:20 +08:00
parent 7c2abe11fb
commit 445a0e81c9
1 changed files with 2 additions and 2 deletions

View File

@ -56,7 +56,7 @@ public class wmUtil {
SystemService systemService =ApplicationContextUtil.getContext().getBean(SystemService.class);
Map<String, Object> countMap = systemService
.findOneForJdbc("SELECT cast(right(ifnull(max(notice_id),0),4)+1 as SIGNED) as count FROM wm_im_notice_h t where TO_DAYS(t.create_date) = TO_DAYS(NOW());");
.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 desc limit 1");
if (StringUtil.isEmpty(orderType)){
orderType = "01";
}
@ -107,7 +107,7 @@ public class wmUtil {
public static String getNextomNoticeId(String orderType){
SystemService systemService =ApplicationContextUtil.getContext().getBean(SystemService.class);
Map<String, Object> countMap = systemService
.findOneForJdbc("SELECT cast(right(ifnull(max(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());");
.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 desc limit 1");
String noticeid = null;
if (StringUtil.isEmpty(orderType)){
orderType = "11";