更新会员修改

This commit is contained in:
张松 2025-03-14 18:22:13 +08:00
parent 1d65c07db7
commit 12e11ec320
1 changed files with 11 additions and 5 deletions

View File

@ -328,11 +328,17 @@ public class PayServiceImpl implements PayService {
}
}
if (shopUser.getIsVip().equals(0)) {
UpdateChain.of(ShopUser.class)
.set(ShopUser::getIsVip, 1)
.set(ShopUser::getJoinTime, LocalDateTime.now())
.eq(ShopUser::getId, payParam.getShopUserId())
.update();
//更新会员
ShopUser updateInfo = new ShopUser();
updateInfo.setIsVip(1);
updateInfo.setJoinTime(LocalDateTime.now());
updateInfo.setId(payParam.getShopUserId());
shopUserService.updateById(updateInfo);
// UpdateChain.of(ShopUser.class)
// .set(ShopUser::getIsVip, 1)
// .set(ShopUser::getJoinTime, LocalDateTime.now())
// .eq(ShopUser::getId, payParam.getShopUserId())
// .update();
}
ShopUserMoneyEditDTO shopUserMoneyEditDTO = new ShopUserMoneyEditDTO()
.setId(shopUser.getId())