活动 置空问题

This commit is contained in:
wangw 2024-11-14 10:43:12 +08:00
parent 1c4a054a2c
commit e84d655796
1 changed files with 1 additions and 1 deletions

View File

@ -46,7 +46,7 @@ public class TbActivateServiceImpl extends ServiceImpl<TbActivateMapper, TbActiv
public void modifyActivate(TbActivate activate) {
if (Objects.nonNull(activate.getId()) && activate.getId() > 0) {
UpdateWrapper<TbActivate> updateWrapper = new UpdateWrapper<>();
updateWrapper.eq("id", activate.getId()).setEntity(activate);
updateWrapper.setEntity(activate);
if (Objects.isNull(activate.getCouponId())) {
updateWrapper.set("coupon_id", null);
}