消费赠券 优惠券

This commit is contained in:
2025-09-12 15:10:43 +08:00
parent 2e69148249
commit 3b53b460fd
15 changed files with 530 additions and 17 deletions

View File

@@ -5,7 +5,6 @@ import cn.hutool.core.collection.CollUtil;
import cn.hutool.core.collection.CollectionUtil;
import cn.hutool.core.util.StrUtil;
import com.alibaba.fastjson2.JSON;
import com.alibaba.fastjson2.JSONObject;
import com.alibaba.fastjson2.JSONWriter;
import com.czg.account.entity.ShopConfig;
import com.czg.account.entity.ShopInfo;
@@ -15,7 +14,6 @@ import com.czg.account.service.ShopInfoService;
import com.czg.account.service.ShopUserService;
import com.czg.account.service.SyncNoticeService;
import com.czg.exception.CzgException;
import com.czg.market.dto.ShopCouponDTO;
import com.czg.market.entity.ShopCoupon;
import com.czg.market.service.ShopCouponService;
import com.czg.product.entity.*;
@@ -1354,7 +1352,7 @@ public class ShopSyncServiceImpl implements ShopSyncService {
}
private void deleteCouponsBySyncId(Long couponId) {
couponService.remove(new QueryWrapper()
couponService.update(new ShopCoupon().setIsDel(1), new QueryWrapper()
.eq(ShopCoupon::getSyncId, couponId));
}
}