only-仅本店
This commit is contained in:
parent
d7b41d61e3
commit
855ee133fe
|
|
@ -63,7 +63,7 @@ public class ShopCouponDTO implements Serializable {
|
|||
private String title;
|
||||
|
||||
/**
|
||||
* 可用门店类型:all-所有门店,custom-指定门店
|
||||
* 可用门店类型:only-仅本店;all-所有门店,custom-指定门店
|
||||
*/
|
||||
private String useShopType;
|
||||
|
||||
|
|
|
|||
|
|
@ -59,7 +59,7 @@ public class ShopCoupon implements Serializable {
|
|||
private String title;
|
||||
|
||||
/**
|
||||
* 可用门店类型:all-所有门店,custom-指定门店
|
||||
* 可用门店类型:only-仅本店;all-所有门店,custom-指定门店
|
||||
*/
|
||||
private String useShopType;
|
||||
|
||||
|
|
|
|||
|
|
@ -1303,6 +1303,12 @@ public class ShopSyncServiceImpl implements ShopSyncService {
|
|||
return;
|
||||
}
|
||||
ShopCoupon couponSource = couponService.getById(couponId);
|
||||
if (couponSource == null) {
|
||||
return;
|
||||
}
|
||||
if ("only".equals(couponSource.getUseShopType())) {
|
||||
return;
|
||||
}
|
||||
List<Long> ids = new ArrayList<>();
|
||||
if ("all".equals(couponSource.getUseShopType())) {
|
||||
QueryWrapper queryWrapper = new QueryWrapper();
|
||||
|
|
|
|||
Loading…
Reference in New Issue