|
|
@@ -217,13 +217,13 @@ public class WxCarController extends BaseController |
|
|
wxCoupon.setTenantId(user.getTenantId()); |
|
|
wxCoupon.setTenantId(user.getTenantId()); |
|
|
wxCoupon.setMerchantId(coupon.getMerchantId()); |
|
|
wxCoupon.setMerchantId(coupon.getMerchantId()); |
|
|
if(StringUtils.isNotEmpty(coupon.getSalePriceStr())){ |
|
|
if(StringUtils.isNotEmpty(coupon.getSalePriceStr())){ |
|
|
wxCoupon.setSalePrice((int)Double.parseDouble(coupon.getSalePriceStr())*100); |
|
|
|
|
|
|
|
|
wxCoupon.setSalePrice((int)(Double.parseDouble(coupon.getSalePriceStr())*100)); |
|
|
} |
|
|
} |
|
|
if(StringUtils.isNotEmpty(coupon.getUsePriceStr())){ |
|
|
if(StringUtils.isNotEmpty(coupon.getUsePriceStr())){ |
|
|
wxCoupon.setUsePrice((int)Double.parseDouble(coupon.getUsePriceStr())*100); |
|
|
|
|
|
|
|
|
wxCoupon.setUsePrice((int)(Double.parseDouble(coupon.getUsePriceStr())*100)); |
|
|
} |
|
|
} |
|
|
if(StringUtils.isNotEmpty(coupon.getPriceStr())){ |
|
|
if(StringUtils.isNotEmpty(coupon.getPriceStr())){ |
|
|
wxCoupon.setPrice((int)Double.parseDouble(coupon.getPriceStr())*100); |
|
|
|
|
|
|
|
|
wxCoupon.setPrice((int)(Double.parseDouble(coupon.getPriceStr())*100)); |
|
|
} |
|
|
} |
|
|
if(StringUtils.isNotBlank(coupon.getBusiness())) { |
|
|
if(StringUtils.isNotBlank(coupon.getBusiness())) { |
|
|
String[] arys = coupon.getBusiness().split(","); |
|
|
String[] arys = coupon.getBusiness().split(","); |
|
|
|