Przeglądaj źródła

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

release_toaliyun_real
Stormeye.Wu 7 lat temu
rodzic
commit
513e6b821d
1 zmienionych plików z 3 dodań i 3 usunięć
  1. +3
    -3
      mallinkAdmin/src/main/java/com/simple/controller/WxCouponController.java

+ 3
- 3
mallinkAdmin/src/main/java/com/simple/controller/WxCouponController.java Wyświetl plik

@@ -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(",");


Ładowanie…
Anuluj
Zapisz