活动 置空问题
This commit is contained in:
parent
47fd21e1d1
commit
1c4a054a2c
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue