| @@ -100,7 +100,9 @@ public class HaiKangWeiShiV3Util { | |||||
| put("https://", getCamsApi); | put("https://", getCamsApi); | ||||
| } | } | ||||
| }; | }; | ||||
| return ArtemisHttpUtil.doPostStringArtemis(config,path, body, null, null, "application/json"); | |||||
| String ret = ArtemisHttpUtil.doPostStringArtemis(config,path, body, null, null, "application/json"); | |||||
| log.debug("haiKangWeiShiV3 request : "+getCamsApi+",request body: "+body+", result:"+ret); | |||||
| return ret; | |||||
| } | } | ||||
| @@ -164,7 +166,7 @@ public class HaiKangWeiShiV3Util { | |||||
| ob.put("parkSyscode", wxPark.getParkingId()); | ob.put("parkSyscode", wxPark.getParkingId()); | ||||
| if (coupon.getUnit().intValue() == EnumCouponUnit.MONEY.getCode().intValue()) { | if (coupon.getUnit().intValue() == EnumCouponUnit.MONEY.getCode().intValue()) { | ||||
| ob.put("deductRuleType", 0); | ob.put("deductRuleType", 0); | ||||
| ob.put("deductContent", new BigDecimal(coupon.getPrice()).divide(new BigDecimal(100)).intValue()); | |||||
| ob.put("deductContent", new BigDecimal(coupon.getPrice()).intValue()); | |||||
| }else { | }else { | ||||
| ob.put("deductRuleType", 4); | ob.put("deductRuleType", 4); | ||||
| ob.put("deductContent", new BigDecimal(coupon.getPrice()).divide(new BigDecimal(100)).multiply(new BigDecimal(60)).intValue()); | ob.put("deductContent", new BigDecimal(coupon.getPrice()).divide(new BigDecimal(100)).multiply(new BigDecimal(60)).intValue()); | ||||