活动 置空问题

This commit is contained in:
wangw 2024-11-14 10:39:19 +08:00
parent 47fd21e1d1
commit 1c4a054a2c
1 changed files with 2 additions and 2 deletions

View File

@ -48,10 +48,10 @@ public class TbActivateServiceImpl extends ServiceImpl<TbActivateMapper, TbActiv
UpdateWrapper<TbActivate> updateWrapper = new UpdateWrapper<>();
updateWrapper.eq("id", activate.getId()).setEntity(activate);
if (Objects.isNull(activate.getCouponId())) {
updateWrapper.set("couponId", null);
updateWrapper.set("coupon_id", null);
}
if (Objects.isNull(activate.getGiftPoints())) {
updateWrapper.set("giftPoints", null);
updateWrapper.set("gift_points", null);
}
activateMapper.update(updateWrapper);
} else {