| | |
| | | import com.java110.utils.util.Assert; |
| | | import com.java110.utils.util.StringUtil; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import com.java110.core.log.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.http.HttpMethod; |
| | | import org.springframework.http.HttpStatus; |
| | |
| | | paramIn.put("feeTypeCd", feeTypeCd); |
| | | } |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", |
| | | ServiceConstant.SERVICE_API_URL + "/api/feeConfig.listFeeConfigs" + mapToUrlParam(paramIn), |
| | | "feeConfig.listFeeConfigs" + mapToUrlParam(paramIn), |
| | | HttpMethod.GET); |
| | | if (responseEntity.getStatusCode() != HttpStatus.OK) { |
| | | return responseEntity; |
| | |
| | | //数据校验是否 商户是否入驻该小区 |
| | | super.checkStoreEnterCommunity(pd, storeId, storeTypeCd, communityId, restTemplate); |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", |
| | | ServiceConstant.SERVICE_API_URL + "/api/fee.queryFeeConfig" + mapToUrlParam(paramIn), |
| | | "fee.queryFeeConfig" + mapToUrlParam(paramIn), |
| | | HttpMethod.GET); |
| | | if (responseEntity.getStatusCode() != HttpStatus.OK) { |
| | | return responseEntity; |
| | |
| | | super.checkUserHasPrivilege(pd, restTemplate, PrivilegeCodeConstant.PRIVILEGE_PROPERTY_FEE); |
| | | |
| | | JSONObject paramIn = JSONObject.parseObject(pd.getReqData()); |
| | | String remark = paramIn.getString("remark"); |
| | | if(!StringUtil.isEmpty(remark)){ |
| | | remark="-"+remark; |
| | | } |
| | | paramIn.put("remark", "现场收银台支付" + remark); |
| | | String communityId = paramIn.getString("communityId"); |
| | | ResponseEntity responseEntity = super.getStoreInfo(pd, restTemplate); |
| | | if (responseEntity.getStatusCode() != HttpStatus.OK) { |
| | |
| | | //数据校验是否 商户是否入驻该小区 |
| | | super.checkStoreEnterCommunity(pd, storeId, storeTypeCd, communityId, restTemplate); |
| | | responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(), |
| | | ServiceConstant.SERVICE_API_URL + "/api/fee.payFee", |
| | | "fee.payFee", |
| | | HttpMethod.POST); |
| | | return responseEntity; |
| | | } |
| | |
| | | //数据校验是否 商户是否入驻该小区 |
| | | super.checkStoreEnterCommunity(pd, storeId, storeTypeCd, communityId, restTemplate); |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", |
| | | ServiceConstant.SERVICE_API_URL + "/api/fee.queryFee" + mapToUrlParam(paramIn), |
| | | "fee.queryFee" + mapToUrlParam(paramIn), |
| | | HttpMethod.GET); |
| | | return responseEntity; |
| | | } |
| | |
| | | //数据校验是否 商户是否入驻该小区 |
| | | super.checkStoreEnterCommunity(pd, storeId, storeTypeCd, communityId, restTemplate); |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", |
| | | ServiceConstant.SERVICE_API_URL + "/api/fee.queryFeeByParkingSpace" + mapToUrlParam(paramIn), |
| | | "fee.queryFeeByParkingSpace" + mapToUrlParam(paramIn), |
| | | HttpMethod.GET); |
| | | return responseEntity; |
| | | } |
| | |
| | | //数据校验是否 商户是否入驻该小区 |
| | | super.checkStoreEnterCommunity(pd, storeId, storeTypeCd, communityId, restTemplate); |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", |
| | | ServiceConstant.SERVICE_API_URL + "/api/fee.queryFeeDetail" + mapToUrlParam(paramIn), |
| | | "fee.queryFeeDetail" + mapToUrlParam(paramIn), |
| | | HttpMethod.GET); |
| | | return responseEntity; |
| | | } |
| | |
| | | paramIn.put("feeTypeCd", FeeTypeConstant.FEE_TYPE_PROPERTY); |
| | | if (!paramIn.containsKey("configId") || StringUtil.isEmpty(paramIn.getString("configId"))) { |
| | | responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(), |
| | | ServiceConstant.SERVICE_API_URL + "/api/fee.saveFeeConfig", |
| | | "fee.saveFeeConfig", |
| | | HttpMethod.POST); |
| | | } else { |
| | | responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(), |
| | | ServiceConstant.SERVICE_API_URL + "/api/fee.updateFeeConfig", |
| | | "fee.updateFeeConfig", |
| | | HttpMethod.POST); |
| | | } |
| | | |
| | |
| | | |
| | | if (!paramIn.containsKey("configId") || StringUtil.isEmpty(paramIn.getString("configId"))) { |
| | | responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(), |
| | | ServiceConstant.SERVICE_API_URL + "/api/fee.saveFeeConfig", |
| | | "fee.saveFeeConfig", |
| | | HttpMethod.POST); |
| | | } else { |
| | | responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(), |
| | | ServiceConstant.SERVICE_API_URL + "/api/fee.updateFeeConfig", |
| | | "fee.updateFeeConfig", |
| | | HttpMethod.POST); |
| | | } |
| | | |
| | |
| | | super.checkStoreEnterCommunity(pd, storeId, storeTypeCd, communityId, restTemplate); |
| | | |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", |
| | | ServiceConstant.SERVICE_API_URL + "/api/fee.queryArrearsFee" + super.mapToUrlParam(paramIn), |
| | | "fee.queryArrearsFee" + super.mapToUrlParam(paramIn), |
| | | HttpMethod.GET); |
| | | |
| | | return responseEntity; |