|
|
@@ -235,7 +235,10 @@ public class WxCouponServiceImpl implements WxCouponService { |
|
|
wxCoupon.setPlat(EnumCouponType.getAppPlat(wxCoupon.getType()).getCode()); |
|
|
wxCoupon.setPlat(EnumCouponType.getAppPlat(wxCoupon.getType()).getCode()); |
|
|
} |
|
|
} |
|
|
}else{ |
|
|
}else{ |
|
|
List<Integer> types = wxCoupon.getTypes(); |
|
|
|
|
|
|
|
|
List<Integer> types = new ArrayList<>(); |
|
|
|
|
|
if(wxCoupon.getTypes() != null && !wxCoupon.getTypes().isEmpty()){ |
|
|
|
|
|
types.addAll(wxCoupon.getTypes()); |
|
|
|
|
|
} |
|
|
if(wxCoupon.getTargetAd() != null){ |
|
|
if(wxCoupon.getTargetAd() != null){ |
|
|
if(wxCoupon.getPlat() == null){ |
|
|
if(wxCoupon.getPlat() == null){ |
|
|
wxCoupon.setPlat(EnumCouponChannelType.getAppPlat(wxCoupon.getTargetAd()).getCode()); |
|
|
wxCoupon.setPlat(EnumCouponChannelType.getAppPlat(wxCoupon.getTargetAd()).getCode()); |
|
|
|