helixiao 1 éve
szülő
commit
a700bd2a63

+ 1 - 1
tenant/insurance/quotation-commons/src/main/java/com/jzg/quotation/commons/client/OrgClient.java

@@ -15,7 +15,7 @@ import org.springframework.web.bind.annotation.*;
 
 import java.util.List;
 
-@FeignClient(name="jzg-organization",url = "http://192.168.0.19:8084/")
+@FeignClient(name="jzg-organization",url = "http://localhost:8084/")
 public interface OrgClient {
 
     /**

+ 1 - 1
tenant/insurance/quotation-taikang/src/main/java/com/jzg/quotation/taikang/crawler/cache/RedisCacheUtil.java

@@ -62,7 +62,7 @@ public class RedisCacheUtil {
     public void setPreciseInitResult(PreciseInitResult preciseInitResult, String ordersNo) {
         String response = JSONObject.toJSONString(preciseInitResult);
         RBucket<String> bucket = redissonClient.getBucket(ordersNo);
-        bucket.set(response, Duration.ofHours(3L));
+        bucket.set(response, Duration.ofHours(6L));
     }
 
     /**

+ 36 - 0
tenant/insurance/quotation-taikang/src/main/java/com/jzg/quotation/taikang/crawler/model/api/TKReceiveParam2.java

@@ -0,0 +1,36 @@
+package com.jzg.quotation.taikang.crawler.model.api;
+
+import com.alibaba.fastjson.annotation.JSONField;
+import lombok.Data;
+import lombok.NoArgsConstructor;
+
+@NoArgsConstructor
+@Data
+public class TKReceiveParam2 {
+    @JSONField(name = "businessId")
+    private String businessId;
+    @JSONField(name = "orderNo")
+    private String orderNo;
+    @JSONField(name = "policyNo")
+    private String policyNo;
+    @JSONField(name = "tradeNo")
+    private String tradeNo;
+    @JSONField(name = "productCode")
+    private String productCode;
+    @JSONField(name = "productName")
+    private String productName;
+    @JSONField(name = "applyCode")
+    private String applyCode;
+    @JSONField(name = "applyName")
+    private String applyName;
+    @JSONField(name = "certifyType")
+    private String certifyType;
+    @JSONField(name = "certifyCode")
+    private String certifyCode;
+    @JSONField(name = "source")
+    private String source;
+    @JSONField(name = "status")
+    private Integer status;
+    @JSONField(name = "token")
+    private String token;
+}

+ 4 - 3
tenant/insurance/quotation-taikang/src/main/java/com/jzg/quotation/taikang/crawler/service/TKHttpAPIService.java

@@ -1294,6 +1294,7 @@ public class TKHttpAPIService {
         HttpHeaders httpHeaders = new HttpHeaders();
         httpHeaders.add("tkCarRequestToken", token);
         httpHeaders.add("Actiontype", "000052");
+        httpHeaders.add("grayFlag", "pro");
 
         StringResponse response = client.request(HttpURL.entrance, param, httpHeaders, StringResponse.class);
         TKEntranceFor000052Result.Response decrypt = decrypt(response, TKEntranceFor000052Result.Response.class);
@@ -1305,7 +1306,7 @@ public class TKHttpAPIService {
         TKReceiveParam tkReceiveParam = new TKReceiveParam();
         tkReceiveParam.setBusinessId(UUID.randomUUID().toString());
         tkReceiveParam.setOrderNo("TK000013_"+ mainOrderId);
-        tkReceiveParam.setPolicyNo(tkEntranceFor000038Result.getProposalNo());
+        tkReceiveParam.setPolicyNo(tkEntranceFor000038Result.getData().getProposalNo());
         tkReceiveParam.setTradeNo("");
         tkReceiveParam.setProductCode("");
         tkReceiveParam.setProductName("");
@@ -1316,11 +1317,11 @@ public class TKHttpAPIService {
         tkReceiveParam.setSource("PC出单");
         tkReceiveParam.setStatus("0");
         tkReceiveParam.setFromId(fromId);
-        tkReceiveParam.setReservation1("");
+        tkReceiveParam.setReservation1("2021-10-28");
         tkReceiveParam.setReservation2("");
 
         HttpHeaders httpHeaders = new HttpHeaders();
-//        httpHeaders.add("token", token);
+        httpHeaders.add("token", token);
 
         StringResponse response = client.request(HttpURL.receive, tkReceiveParam, httpHeaders, StringResponse.class);
 

+ 12 - 4
tenant/insurance/quotation-taikang/src/test/http/AA.http

@@ -63,11 +63,20 @@ tkCarRequestToken: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZXFNYXAiOiJ7XCJjYXJS
 
 ###
 
+
+
 POST https://tbonline.tk.cn/backtrack/call/uatuadmin/retrospect/receive
-token: eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJhdWQiOiJUSzIwMjAmTGlmZXRrIiwiYXBwaWQiOiJUSzIwMjAmTGlmZXRrIiwiZXhwIjoxNzU0NDc0NTY2LCJpYXQiOjE3NTQzODgxNjZ9.G6jy9Qt1et484haUb90Tv85FgUHROpeoQjaw6IxSx2U
+token: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZXFNYXAiOiJ7XCJjYXJSZXF1ZXN0SWRcIjpcIlRPS0UyMDI1MDgwNjA4NTMyMjE5MTAwMDBcIn0iLCJpc3MiOiJ0ay5jbiIsImV4cCI6MTc1NDUyODAwMn0.G9VR0lh0-nd2DqN8avxdSF8A5c4YcYgZqHACbI_Tc4o
+Content-Type: application/json
+
+{"businessId":"91b3d0f8-ce30-4887-85d9-52268dffb3c9","orderNo":"TK000013_WBPC202508061119463220000","policyNo":"00671070807142500000030883","tradeNo":"","productCode":"","productName":"","applyCode":"","applyName":"","certifyType":"","certifyCode":"","source":"PC出单","status":"0","fromId":"67107","reservation1":"2021-10-28","reservation2":""}
+
+### 获取状态
+POST https://car.tk.cn/carSelfService/rest/groupOrder/getNewNoticeStatus
 Content-Type: application/json
+tkCarRequestToken: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZXFNYXAiOiJ7XCJjYXJSZXF1ZXN0SWRcIjpcIlRPS0UyMDI1MDgwNjE0NTcyNjE4OTAwMDBcIn0iLCJpc3MiOiJ0ay5jbiIsImV4cCI6MTc1NDU0OTg0Nn0.Jg_VNBughntuGv8mLQiIW4Ndruh6nhKDHdm45EU55U4
 
-{"businessId":"ca82783b-f2e7-4a95-92e5-e85b142413c3","orderNo":"TK000013_WBPC202508051802463000000","policyNo":"00671070807142500000030792","tradeNo":"","productCode":"","productName":"","applyCode":"","applyName":"","certifyType":"","certifyCode":"","source":"PC出单","status":"0","fromId":"67107","reservation1":"2021-10-28","reservation2":""}
+{"channelCode":"OffWeb","tplatformId":"feda77e829d4dedbbd8b4e236bacfac5"}
 
 
 ### 支付链接
@@ -75,9 +84,8 @@ Content-Type: application/json
 POST https://car.tk.cn/carSelfService/rest/pay/forward
 Content-Type: application/json
 tkCarRequestToken: eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJyZXFNYXAiOiJ7XCJjYXJSZXF1ZXN0SWRcIjpcIlRPS0UyMDI1MDgwNTE2MDU1ODQzODAwMDBcIn0iLCJpc3MiOiJ0ay5jbiIsImV4cCI6MTc1NDQ2NzU1OH0.OXno2Verg9G980AE9GfIEognXBQ3iG1qAWPbcujfuso
-carInsurOrderId: WBPC202508060853224450000
 
-{"channelCode":"OffWeb","tplatformId":"feda77e829d4dedbbd8b4e236bacfac5","proposalNo":"00671070807142500000030813"}
+{"channelCode":"OffWeb","tplatformId":"feda77e829d4dedbbd8b4e236bacfac5","proposalNo":"00671070807142500000030925"}
 ### {"channelCode":"OffWeb","tplatformId":"feda77e829d4dedbbd8b4e236bacfac5","proposalNo":"00671070807142500000030622"}
 ### 订单状态
 

+ 1 - 1
tenant/organization/src/main/java/com/jzg/organization/client/EsmInsCompanyClient.java

@@ -10,7 +10,7 @@ import org.springframework.web.bind.annotation.RequestParam;
 
 import java.util.List;
 
-@FeignClient(name="jzg-platform",url = "http://192.168.0.250:8001/")
+@FeignClient(name="jzg-platform",url = "http://localhost:8001/")
 public interface EsmInsCompanyClient {