修改会员码生成逻辑
This commit is contained in:
parent
caa46364c2
commit
78c5f533a8
|
|
@ -272,7 +272,7 @@ public class LoginService {
|
||||||
String dynamicCode = RandomUtil.randomNumbers(8);
|
String dynamicCode = RandomUtil.randomNumbers(8);
|
||||||
dynamicCode = StringUtils.rightPad(tbShopUser.getId(), 6, "0").concat(dynamicCode);
|
dynamicCode = StringUtils.rightPad(tbShopUser.getId(), 6, "0").concat(dynamicCode);
|
||||||
|
|
||||||
tbShopUser.setDynamicCode(dynamicCode);
|
tbShopUser.setDynamicCode("46".concat(dynamicCode));
|
||||||
tbShopUser.setUpdatedAt(System.currentTimeMillis());
|
tbShopUser.setUpdatedAt(System.currentTimeMillis());
|
||||||
tbShopUserMapper.updateByPrimaryKeySelective(tbShopUser);
|
tbShopUserMapper.updateByPrimaryKeySelective(tbShopUser);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue