活动 置空问题
This commit is contained in:
@@ -48,10 +48,10 @@ public class TbActivateServiceImpl extends ServiceImpl<TbActivateMapper, TbActiv
|
|||||||
UpdateWrapper<TbActivate> updateWrapper = new UpdateWrapper<>();
|
UpdateWrapper<TbActivate> updateWrapper = new UpdateWrapper<>();
|
||||||
updateWrapper.eq("id", activate.getId()).setEntity(activate);
|
updateWrapper.eq("id", activate.getId()).setEntity(activate);
|
||||||
if (Objects.isNull(activate.getCouponId())) {
|
if (Objects.isNull(activate.getCouponId())) {
|
||||||
updateWrapper.set("couponId", null);
|
updateWrapper.set("coupon_id", null);
|
||||||
}
|
}
|
||||||
if (Objects.isNull(activate.getGiftPoints())) {
|
if (Objects.isNull(activate.getGiftPoints())) {
|
||||||
updateWrapper.set("giftPoints", null);
|
updateWrapper.set("gift_points", null);
|
||||||
}
|
}
|
||||||
activateMapper.update(updateWrapper);
|
activateMapper.update(updateWrapper);
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Reference in New Issue
Block a user