会员添加报错修复
This commit is contained in:
@@ -115,8 +115,8 @@ public class AShopUserServiceImpl implements AShopUserService {
|
|||||||
ShopUser shopUser = BeanUtil.copyProperties(shopUserAddDTO, ShopUser.class);
|
ShopUser shopUser = BeanUtil.copyProperties(shopUserAddDTO, ShopUser.class);
|
||||||
shopUser.setCode(generateCode(shopId));
|
shopUser.setCode(generateCode(shopId));
|
||||||
shopUser.setSourceShopId(shopId);
|
shopUser.setSourceShopId(shopId);
|
||||||
shopUser.setSourceShopId(shopId);
|
|
||||||
shopUser.setUserId(userInfo.getId());
|
shopUser.setUserId(userInfo.getId());
|
||||||
|
shopUser.setMainShopId(shopInfoService.getMainIdByShopId(shopId));
|
||||||
shopUser.setJoinTime(shopUser.getIsVip() != null && shopUser.getIsVip() == 1 ? DateUtil.date().toLocalDateTime() : null);
|
shopUser.setJoinTime(shopUser.getIsVip() != null && shopUser.getIsVip() == 1 ? DateUtil.date().toLocalDateTime() : null);
|
||||||
return shopUserService.save(shopUser);
|
return shopUserService.save(shopUser);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user