Merge remote-tracking branch 'origin/test' into test
This commit is contained in:
commit
daee376547
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue