Merge remote-tracking branch 'origin/test' into test

This commit is contained in:
张松 2025-09-11 17:28:06 +08:00
commit daee376547
3 changed files with 8 additions and 2 deletions

View File

@ -63,7 +63,7 @@ public class ShopCouponDTO implements Serializable {
private String title; private String title;
/** /**
* 可用门店类型all-所有门店custom-指定门店 * 可用门店类型only-仅本店all-所有门店custom-指定门店
*/ */
private String useShopType; private String useShopType;

View File

@ -59,7 +59,7 @@ public class ShopCoupon implements Serializable {
private String title; private String title;
/** /**
* 可用门店类型all-所有门店custom-指定门店 * 可用门店类型only-仅本店all-所有门店custom-指定门店
*/ */
private String useShopType; private String useShopType;

View File

@ -1303,6 +1303,12 @@ public class ShopSyncServiceImpl implements ShopSyncService {
return; return;
} }
ShopCoupon couponSource = couponService.getById(couponId); ShopCoupon couponSource = couponService.getById(couponId);
if (couponSource == null) {
return;
}
if ("only".equals(couponSource.getUseShopType())) {
return;
}
List<Long> ids = new ArrayList<>(); List<Long> ids = new ArrayList<>();
if ("all".equals(couponSource.getUseShopType())) { if ("all".equals(couponSource.getUseShopType())) {
QueryWrapper queryWrapper = new QueryWrapper(); QueryWrapper queryWrapper = new QueryWrapper();