修改 不传生日报错的问题
This commit is contained in:
@@ -172,6 +172,11 @@ public class AShopUserServiceImpl implements AShopUserService {
|
||||
shopUser.setUserId(userInfo.getId());
|
||||
shopUser.setMainShopId(shopInfoService.getMainIdByShopId(shopId));
|
||||
shopUser.setJoinTime(shopUser.getIsVip() != null && shopUser.getIsVip() == 1 ? DateUtil.date().toLocalDateTime() : null);
|
||||
if (StrUtil.isBlank(shopUserAddDTO.getBirthDay())) {
|
||||
shopUser.setBirthDay(null);
|
||||
} else {
|
||||
shopUser.setBirthDay(shopUserAddDTO.getBirthDay());
|
||||
}
|
||||
return shopUserService.save(shopUser);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user