会员生日空串报错修复
This commit is contained in:
@@ -179,6 +179,9 @@ public class UShopUserServiceImpl implements UShopUserService {
|
|||||||
if (StrUtil.isBlank(shopUser.getCode())) {
|
if (StrUtil.isBlank(shopUser.getCode())) {
|
||||||
shopUser.setCode(generateCode(shopId));
|
shopUser.setCode(generateCode(shopId));
|
||||||
}
|
}
|
||||||
|
if (StrUtil.isBlank(shopUser.getBirthDay())) {
|
||||||
|
shopUser.setBirthDay(null);
|
||||||
|
}
|
||||||
shopUser.setJoinTime(shopUser.getJoinTime() == null ? DateUtil.date().toLocalDateTime() : shopUser.getJoinTime());
|
shopUser.setJoinTime(shopUser.getJoinTime() == null ? DateUtil.date().toLocalDateTime() : shopUser.getJoinTime());
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user