From 8a2a463d46b3dce73015462c9f6a2a258dd25f5b Mon Sep 17 00:00:00 2001
From: java110 <928255095@qq.com>
Date: 星期五, 25 二月 2022 11:40:11 +0800
Subject: [PATCH] 优化diamante
---
service-api/src/main/java/com/java110/api/smo/impl/CarServiceSMOImpl.java | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/service-api/src/main/java/com/java110/api/smo/impl/CarServiceSMOImpl.java b/service-api/src/main/java/com/java110/api/smo/impl/CarServiceSMOImpl.java
index 08d9163..97d073a 100644
--- a/service-api/src/main/java/com/java110/api/smo/impl/CarServiceSMOImpl.java
+++ b/service-api/src/main/java/com/java110/api/smo/impl/CarServiceSMOImpl.java
@@ -12,7 +12,7 @@
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;
@@ -66,7 +66,7 @@
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, "",
@@ -125,7 +125,7 @@
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;
@@ -165,7 +165,7 @@
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;
@@ -196,7 +196,7 @@
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;
@@ -207,7 +207,7 @@
//鑾峰彇璇锋眰鍙傛暟
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;
}
--
Gitblit v1.8.0