| | |
| | | import com.java110.utils.exception.SMOException; |
| | | import com.java110.utils.util.Assert; |
| | | 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; |
| | |
| | | String storeTypeCd = JSONObject.parseObject(responseEntity.getBody().toString()).getString("storeTypeCd"); |
| | | //数据校验是否 商户是否入驻该小区 |
| | | super.checkStoreEnterCommunity(pd, storeId, storeTypeCd, communityId, restTemplate); |
| | | String apiUrl = ServiceConstant.SERVICE_API_URL + "/api/car.queryCars" + mapToUrlParam(paramIn); |
| | | String apiUrl = "car.queryCars" + mapToUrlParam(paramIn); |
| | | |
| | | |
| | | responseEntity = this.callCenterService(restTemplate, pd, "", |
| | |
| | | newParamIn.put("userId", pd.getUserId()); |
| | | newParamIn.put("storeId", storeId); |
| | | responseEntity = this.callCenterService(restTemplate, pd, newParamIn.toJSONString(), |
| | | ServiceConstant.SERVICE_API_URL + "/api/parkingSpace.sellParkingSpace", |
| | | "parkingSpace.sellParkingSpace", |
| | | HttpMethod.POST); |
| | | |
| | | return responseEntity; |
| | |
| | | super.checkStoreEnterCommunity(pd, storeId, storeTypeCd, communityId, restTemplate); |
| | | paramIn.put("userId", pd.getUserId()); |
| | | responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(), |
| | | ServiceConstant.SERVICE_API_URL + "/api/car.editCar", |
| | | "car.editCar", |
| | | HttpMethod.POST); |
| | | |
| | | return responseEntity; |
| | |
| | | super.checkStoreEnterCommunity(pd, storeId, storeTypeCd, communityId, restTemplate); |
| | | |
| | | responseEntity = this.callCenterService(restTemplate, pd, paramIn.toJSONString(), |
| | | ServiceConstant.SERVICE_API_URL + "/api/car.deleteCar", |
| | | "car.deleteCar", |
| | | HttpMethod.POST); |
| | | |
| | | return responseEntity; |
| | |
| | | //获取请求参数 |
| | | JSONObject reqParam = JSONObject.parseObject(pd.getReqData()); |
| | | //拉取数据 |
| | | String url=ServiceConstant.SERVICE_API_URL.concat("/api/dict.queryDict").concat(mapToUrlParam(reqParam)); |
| | | String url=ServiceConstant.SERVICE_API_URL.concat("dict.queryDict").concat(mapToUrlParam(reqParam)); |
| | | ResponseEntity<String> responseEntity = this.callCenterService(restTemplate, pd, "",url , HttpMethod.GET); |
| | | return responseEntity; |
| | | } |