From 513e6b821d0e7b4325b8e2f08fab6744de5a00c8 Mon Sep 17 00:00:00 2001 From: "Stormeye.Wu" Date: Sun, 2 Sep 2018 15:12:20 +0800 Subject: [PATCH] =?UTF-8?q?[=E5=88=B8=E4=BB=B7=E6=A0=BC=E7=B2=BE=E5=BA=A6?= =?UTF-8?q?=E9=97=AE=E9=A2=98][=E4=BF=AE=E5=A4=8D]:=E5=88=B8=E4=BB=B7?= =?UTF-8?q?=E6=A0=BC=E7=B2=BE=E7=A1=AE=E5=88=B0=E5=88=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/simple/controller/WxCouponController.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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(",");