记得上下班打卡 | git大法好,push需谨慎

Commit 0a7a2955 authored by 张国柄's avatar 张国柄

~会员信息中会员ID生成补位处理;

parent ea24c524
...@@ -864,7 +864,8 @@ public class AdamRdmService { ...@@ -864,7 +864,8 @@ public class AdamRdmService {
// String snT = String.format("%s%sMS%s", now.getYear(), now.getMonthValue(), mobile.substring(7)).substring(2); // String snT = String.format("%s%sMS%s", now.getYear(), now.getMonthValue(), mobile.substring(7)).substring(2);
// String sn = snT.replace("MS", String.valueOf(now.getLong(ChronoField.MILLI_OF_SECOND))); // String sn = snT.replace("MS", String.valueOf(now.getLong(ChronoField.MILLI_OF_SECOND)));
String snT = String.format("%s%sMS%s", now.getYear(), now.getMonthValue(), org.apache.commons.lang3.StringUtils.right(mobile, 4)).substring(2); // String snT = String.format("%s%sMS%s", now.getYear(), now.getMonthValue(), org.apache.commons.lang3.StringUtils.right(mobile, 4)).substring(2);
String snT = String.format("%s%sMS%s", now.getYear(), org.apache.commons.lang3.StringUtils.leftPad(String.valueOf(now.getMonthValue()), 2, "0"), org.apache.commons.lang3.StringUtils.right(mobile, 4)).substring(2);
String sn = snT.replace("MS", org.apache.commons.lang3.StringUtils.leftPad(String.valueOf(LocalDateTime.now().getLong(ChronoField.MILLI_OF_SECOND)), 3, "0")); String sn = snT.replace("MS", org.apache.commons.lang3.StringUtils.leftPad(String.valueOf(LocalDateTime.now().getLong(ChronoField.MILLI_OF_SECOND)), 3, "0"));
Object o = redisUtil.get(AdamRedisConst.SERIAL_NUMBER_MEMBER.concat(sn)); Object o = redisUtil.get(AdamRedisConst.SERIAL_NUMBER_MEMBER.concat(sn));
while (null != o) { while (null != o) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment