活动 置空问题
This commit is contained in:
@@ -46,7 +46,7 @@ public class TbActivateServiceImpl extends ServiceImpl<TbActivateMapper, TbActiv
|
|||||||
public void modifyActivate(TbActivate activate) {
|
public void modifyActivate(TbActivate activate) {
|
||||||
if (Objects.nonNull(activate.getId()) && activate.getId() > 0) {
|
if (Objects.nonNull(activate.getId()) && activate.getId() > 0) {
|
||||||
UpdateWrapper<TbActivate> updateWrapper = new UpdateWrapper<>();
|
UpdateWrapper<TbActivate> updateWrapper = new UpdateWrapper<>();
|
||||||
updateWrapper.eq("id", activate.getId()).setEntity(activate);
|
updateWrapper.setEntity(activate);
|
||||||
if (Objects.isNull(activate.getCouponId())) {
|
if (Objects.isNull(activate.getCouponId())) {
|
||||||
updateWrapper.set("coupon_id", null);
|
updateWrapper.set("coupon_id", null);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user