| | |
| | | import com.java110.core.context.IPageData; |
| | | import com.java110.web.core.BaseComponentSMO; |
| | | import com.java110.web.smo.IFeeServiceSMO; |
| | | import org.apache.commons.lang3.StringUtils; |
| | | import org.slf4j.Logger; |
| | | import org.slf4j.LoggerFactory; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | |
| | | String storeTypeCd = JSONObject.parseObject(responseEntity.getBody().toString()).getString("storeTypeCd"); |
| | | //数据校验是否 商户是否入驻该小区 |
| | | super.checkStoreEnterCommunity(pd, storeId, storeTypeCd, communityId, restTemplate); |
| | | paramIn.put("feeTypeCd", feeTypeCd); |
| | | if (!StringUtil.isEmpty(feeTypeCd)) { |
| | | paramIn.put("feeTypeCd", feeTypeCd); |
| | | } |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", |
| | | ServiceConstant.SERVICE_API_URL + "/api/fee.queryFeeConfig" + mapToUrlParam(paramIn), |
| | | HttpMethod.GET); |
| | |
| | | |
| | | return responseEntity; |
| | | } |
| | | |
| | | @Override |
| | | public ResponseEntity<String> payFee(IPageData pd) { |
| | | validatePayFee(pd); |
| | |
| | | String storeTypeCd = JSONObject.parseObject(responseEntity.getBody().toString()).getString("storeTypeCd"); |
| | | //数据校验是否 商户是否入驻该小区 |
| | | super.checkStoreEnterCommunity(pd, storeId, storeTypeCd, communityId, restTemplate); |
| | | paramIn.put("feeTypeCd", FeeTypeConstant.FEE_TYPE_PROPERTY); |
| | | 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", |
| | |
| | | Assert.hasLength(paramIn.getString("communityId"), "小区ID不能为空"); |
| | | Assert.hasLength(paramIn.getString("psId"), "停车位ID不能为空"); |
| | | } |
| | | |
| | | |
| | | |
| | | /** |