| | |
| | | if (RentingPoolDto.STATE_TO_PAY.equals(rentingPoolDto.getState())) { |
| | | rate = Double.parseDouble(rentingPoolDto.getServiceTenantRate()); |
| | | feeName += "(租客)"; |
| | | } else if (RentingPoolDto.STATE_TO_PAY.equals(rentingPoolDto.getState())) { |
| | | } else if (RentingPoolDto.STATE_OWNER_TO_PAY.equals(rentingPoolDto.getState())) { |
| | | rate = Double.parseDouble(rentingPoolDto.getServiceOwnerRate()); |
| | | feeName += "(业主)"; |
| | | } else { |
| | |
| | | money = serviceDec.multiply(rateDec).setScale(2, BigDecimal.ROUND_HALF_EVEN).doubleValue(); |
| | | } |
| | | |
| | | Map result = super.java110Payment(outRestTemplate, feeName, WechatAuthProperties.TRADE_TYPE_NATIVE, orderId, money, "", smallWeChatDto); |
| | | Map result = super.java110Payment(outRestTemplate, feeName, WechatAuthProperties.TRADE_TYPE_NATIVE, orderId, money, "", smallWeChatDto, wechatAuthProperties.getRentingNotifyUrl()); |
| | | result.put("money", money); |
| | | responseEntity = new ResponseEntity(JSONObject.toJSONString(result), HttpStatus.OK); |
| | | if (!"0".equals(result.get("code"))) { |