소스 검색

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

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

+ 1
- 1
mallinkAdmin/src/main/java/com/simple/controller/WxCouponController.java 파일 보기

@@ -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));


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