diff --git a/mallinkAdmin/src/main/java/com/simple/controller/WxCouponController.java b/mallinkAdmin/src/main/java/com/simple/controller/WxCouponController.java index e62b9a77c..12bd3fe55 100644 --- a/mallinkAdmin/src/main/java/com/simple/controller/WxCouponController.java +++ b/mallinkAdmin/src/main/java/com/simple/controller/WxCouponController.java @@ -109,13 +109,13 @@ public class WxCouponController extends BaseController //Assert.notNull(wxCoupon.getName(), "角色名不能为空"); //Assert.isTrue(!checkUnique(sysRole.getName(), null), "重复的角色名"); if(StringUtils.isNotEmpty(wxCoupon.getSalePriceStr())){ - wxCoupon.setSalePrice((int)Double.parseDouble(wxCoupon.getSalePriceStr())*100); + wxCoupon.setSalePrice((int)(Double.parseDouble(wxCoupon.getSalePriceStr()))*100); } if(StringUtils.isNotEmpty(wxCoupon.getUsePriceStr())){ - wxCoupon.setUsePrice((int)Double.parseDouble(wxCoupon.getUsePriceStr())*100); + wxCoupon.setUsePrice((int)(Double.parseDouble(wxCoupon.getUsePriceStr())*100)); } if(StringUtils.isNotEmpty(wxCoupon.getPriceStr())){ - wxCoupon.setPrice((int)Double.parseDouble(wxCoupon.getPriceStr())*100); + wxCoupon.setPrice((int)(Double.parseDouble(wxCoupon.getPriceStr())*100)); } if(StringUtils.isNotBlank(wxCoupon.getBusiness())) { String[] arys = wxCoupon.getBusiness().split(",");