加入会员接口修改

This commit is contained in:
张松 2025-03-11 18:10:29 +08:00
parent 868aa1bf0f
commit 627bd0761b
1 changed files with 1 additions and 1 deletions

View File

@ -260,7 +260,7 @@ public class ShopUserServiceImpl extends ServiceImpl<ShopUserMapper, ShopUser> i
} else if (shopUser.getIsVip() == 1) {
throw new ApiNotPrintException("您已加入店铺会员");
}
shopUser = BeanUtil.copyProperties(shopUserAddDTO, ShopUser.class);
BeanUtil.copyProperties(shopUserAddDTO, shopUser);
shopUser.setIsVip(1);
shopUser.setCode(generateCode(shopId));
shopUser.setJoinTime(DateUtil.date().toLocalDateTime());