|
@@ -6,8 +6,8 @@ import com.alibaba.fastjson.JSON; |
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.alibaba.fastjson.JSONObject; |
|
|
import com.ningdatech.basic.model.ApiResponse; |
|
|
import com.ningdatech.basic.model.ApiResponse; |
|
|
import com.ningdatech.pmapi.common.config.ProvincialProperties; |
|
|
import com.ningdatech.pmapi.common.config.ProvincialProperties; |
|
|
|
|
|
import com.ningdatech.pmapi.provincial.model.dto.ProvinceApiResponse; |
|
|
import com.ningdatech.pmapi.provincial.model.dto.ProvincialProjectDTO; |
|
|
import com.ningdatech.pmapi.provincial.model.dto.ProvincialProjectDTO; |
|
|
import com.ningdatech.pmapi.provincial.model.res.ProvincialProjectRes; |
|
|
|
|
|
import com.ningdatech.pmapi.provincial.model.res.SjApiResponse; |
|
|
import com.ningdatech.pmapi.provincial.model.res.SjApiResponse; |
|
|
import com.ningdatech.pmapi.provincial.service.IJoinReviewProvincialBureauService; |
|
|
import com.ningdatech.pmapi.provincial.service.IJoinReviewProvincialBureauService; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
import lombok.extern.slf4j.Slf4j; |
|
@@ -45,7 +45,7 @@ public class JoinReviewProvincialBureauServiceImpl implements IJoinReviewProvinc |
|
|
String url = provincialProperties.getHost() + provincialProperties.getPushUrl() |
|
|
String url = provincialProperties.getHost() + provincialProperties.getPushUrl() |
|
|
+ "?timestamp=" + timeStamp; |
|
|
+ "?timestamp=" + timeStamp; |
|
|
log.info("省局推送联审url {}",url); |
|
|
log.info("省局推送联审url {}",url); |
|
|
ResponseEntity<ApiResponse> responseEntity = null; |
|
|
|
|
|
|
|
|
ResponseEntity<ProvinceApiResponse> responseEntity = null; |
|
|
|
|
|
|
|
|
String signature = getSha256(timeStamp,provincialProperties.getPushUrl(), |
|
|
String signature = getSha256(timeStamp,provincialProperties.getPushUrl(), |
|
|
HttpMethod.POST.name()); |
|
|
HttpMethod.POST.name()); |
|
@@ -63,7 +63,7 @@ public class JoinReviewProvincialBureauServiceImpl implements IJoinReviewProvinc |
|
|
log.info("省局联审 提交 :{}", requestEntity); |
|
|
log.info("省局联审 提交 :{}", requestEntity); |
|
|
log.info("省局联审 提交body :{}", JSON.toJSONString(requestEntity.getBody())); |
|
|
log.info("省局联审 提交body :{}", JSON.toJSONString(requestEntity.getBody())); |
|
|
try { |
|
|
try { |
|
|
responseEntity = restTemplate.exchange(requestEntity, ApiResponse.class); |
|
|
|
|
|
|
|
|
responseEntity = restTemplate.exchange(requestEntity, ProvinceApiResponse.class); |
|
|
log.info("省局联审 响应 :{}",responseEntity); |
|
|
log.info("省局联审 响应 :{}",responseEntity); |
|
|
if(responseEntity.getBody().getCode().equals(200)){ |
|
|
if(responseEntity.getBody().getCode().equals(200)){ |
|
|
return Boolean.TRUE; |
|
|
return Boolean.TRUE; |
|
|