|
|
|
@@ -137,6 +137,15 @@ public class WxCouponController extends BaseController { |
|
|
|
if (wxCoupon.getId() == null) { |
|
|
|
return new ResultData(ResultData.ERROR, "缺少id"); |
|
|
|
} |
|
|
|
if (StringUtils.isNotEmpty(wxCoupon.getSalePriceStr())) { |
|
|
|
wxCoupon.setSalePrice((int) (Double.parseDouble(wxCoupon.getSalePriceStr()) * 100)); |
|
|
|
} |
|
|
|
if (StringUtils.isNotEmpty(wxCoupon.getUsePriceStr())) { |
|
|
|
wxCoupon.setUsePrice((int) (Double.parseDouble(wxCoupon.getUsePriceStr()) * 100)); |
|
|
|
} |
|
|
|
if (StringUtils.isNotEmpty(wxCoupon.getPriceStr())) { |
|
|
|
wxCoupon.setPrice((int) (Double.parseDouble(wxCoupon.getPriceStr()) * 100)); |
|
|
|
} |
|
|
|
if (StringUtils.isNotBlank(wxCoupon.getBusiness())) { |
|
|
|
String[] arys = wxCoupon.getBusiness().split(","); |
|
|
|
wxCoupon.setBusiness(JSON.toJSONString(arys)); |
|
|
|
|