소스 검색

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

release_toaliyun_real
Stormeye.Wu 7 년 전
부모
커밋
513e6b821d
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. +3
    -3
      mallinkAdmin/src/main/java/com/simple/controller/WxCouponController.java

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


불러오는 중...
취소
저장