更新会员修改
This commit is contained in:
@@ -328,11 +328,17 @@ public class PayServiceImpl implements PayService {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (shopUser.getIsVip().equals(0)) {
|
if (shopUser.getIsVip().equals(0)) {
|
||||||
UpdateChain.of(ShopUser.class)
|
//更新会员
|
||||||
.set(ShopUser::getIsVip, 1)
|
ShopUser updateInfo = new ShopUser();
|
||||||
.set(ShopUser::getJoinTime, LocalDateTime.now())
|
updateInfo.setIsVip(1);
|
||||||
.eq(ShopUser::getId, payParam.getShopUserId())
|
updateInfo.setJoinTime(LocalDateTime.now());
|
||||||
.update();
|
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()
|
ShopUserMoneyEditDTO shopUserMoneyEditDTO = new ShopUserMoneyEditDTO()
|
||||||
.setId(shopUser.getId())
|
.setId(shopUser.getId())
|
||||||
|
|||||||
Reference in New Issue
Block a user