Просмотр исходного кода

添加泰康 添加 carCheckAttorneyList 接口

wlq 1 год назад
Родитель
Сommit
1a075891ec

+ 2 - 0
tenant/insurance/quotation-taikang/src/main/java/com/jzg/quotation/taikang/client/HttpURL.java

@@ -72,4 +72,6 @@ public interface HttpURL {
     String groupOrderGetNewNoticeStatus = host + "/carSelfService/rest/groupOrder/getNewNoticeStatus";
     
     String entrance = host + "/carSelfService/rest/controller/entrance";
+
+    String carCheckAttorneyList = host + "/carSelfService/carCheck/attorneyList";
 }

+ 14 - 0
tenant/insurance/quotation-taikang/src/main/java/com/jzg/quotation/taikang/entity/CarCheckAttorneyListParam.java

@@ -0,0 +1,14 @@
+package com.jzg.quotation.taikang.entity;
+
+import com.jzg.quotation.taikang.client.UnknownFieldEntity;
+import lombok.Getter;
+import lombok.Setter;
+
+@Setter
+@Getter
+public class CarCheckAttorneyListParam extends UnknownFieldEntity {
+    /**
+     * 提案号
+     */
+    private String proposalNo;
+}

+ 17 - 0
tenant/insurance/quotation-taikang/src/main/java/com/jzg/quotation/taikang/service/TaiKangHttpService.java

@@ -758,4 +758,21 @@ public class TaiKangHttpService {
 
         return response.getData();
     }
+
+    /**
+     *
+     *
+     * @return
+     */
+    public String carCheckAttorneyList(String tplatformId, String fromId, String orderId) {
+        CarCheckAttorneyListParam param = new CarCheckAttorneyListParam();
+
+        HttpHeaders httpHeaders = new HttpHeaders();
+        httpHeaders.add("tkCarRequestToken", token());
+
+        // todo 这个接口,暂时了解到返回的数据的 data 字段是一个字符串格式,内容是 message 消息提示 “暂无模板,请联系客户经理”,怀疑有数据时会变成 json 数据,所以以后可能需要处理此问题。
+        StringResponse response = client.request(HttpURL.carCheckAttorneyList, param, httpHeaders, StringResponse.class);
+
+        return response.getData();
+    }
 }