Browse Source

[券价格精度问题][修复]:券价格精确到分

release_toaliyun_real
Stormeye.Wu 7 years ago
parent
commit
ca25be8ebf
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      mallinkAdmin/src/main/java/com/simple/controller/WxCouponController.java

+ 1
- 1
mallinkAdmin/src/main/java/com/simple/controller/WxCouponController.java View File

@@ -109,7 +109,7 @@ 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));


Loading…
Cancel
Save