更新编码方式
parent
db0c77e9a4
commit
12839311c5
|
@ -56,7 +56,7 @@ public class wmUtil {
|
||||||
SystemService systemService =ApplicationContextUtil.getContext().getBean(SystemService.class);
|
SystemService systemService =ApplicationContextUtil.getContext().getBean(SystemService.class);
|
||||||
|
|
||||||
Map<String, Object> countMap = systemService
|
Map<String, Object> countMap = systemService
|
||||||
.findOneForJdbc("SELECT count(*)+1 as count FROM wm_im_notice_h t where TO_DAYS(t.create_date) = TO_DAYS(NOW());");
|
.findOneForJdbc("SELECT right(ifnull(max(notice_id),0),4)+1 as count FROM wm_im_notice_h t where TO_DAYS(t.create_date) = TO_DAYS(NOW());");
|
||||||
if (StringUtil.isEmpty(orderType)){
|
if (StringUtil.isEmpty(orderType)){
|
||||||
orderType = "01";
|
orderType = "01";
|
||||||
}
|
}
|
||||||
|
@ -107,7 +107,7 @@ public class wmUtil {
|
||||||
public static String getNextomNoticeId(String orderType){
|
public static String getNextomNoticeId(String orderType){
|
||||||
SystemService systemService =ApplicationContextUtil.getContext().getBean(SystemService.class);
|
SystemService systemService =ApplicationContextUtil.getContext().getBean(SystemService.class);
|
||||||
Map<String, Object> countMap = systemService
|
Map<String, Object> countMap = systemService
|
||||||
.findOneForJdbc("SELECT count(*)+1 as count FROM wm_om_notice_h t where TO_DAYS(t.create_date) = TO_DAYS(NOW());");
|
.findOneForJdbc("SELECT right(ifnull(max(om_notice_id),0),4)+1 count FROM wm_om_notice_h t where TO_DAYS(t.create_date) = TO_DAYS(NOW());");
|
||||||
String noticeid = null;
|
String noticeid = null;
|
||||||
if (StringUtil.isEmpty(orderType)){
|
if (StringUtil.isEmpty(orderType)){
|
||||||
orderType = "11";
|
orderType = "11";
|
||||||
|
|
Loading…
Reference in New Issue