会员添加报错修复

This commit is contained in:
张松
2025-10-09 10:33:14 +08:00
parent 28824c23ff
commit aba764a187

View File

@@ -115,8 +115,8 @@ public class AShopUserServiceImpl implements AShopUserService {
ShopUser shopUser = BeanUtil.copyProperties(shopUserAddDTO, ShopUser.class);
shopUser.setCode(generateCode(shopId));
shopUser.setSourceShopId(shopId);
shopUser.setSourceShopId(shopId);
shopUser.setUserId(userInfo.getId());
shopUser.setMainShopId(shopInfoService.getMainIdByShopId(shopId));
shopUser.setJoinTime(shopUser.getIsVip() != null && shopUser.getIsVip() == 1 ? DateUtil.date().toLocalDateTime() : null);
return shopUserService.save(shopUser);
}