Explorar el Código

添加泰康 已完成的保单查询

wlq hace 1 año
padre
commit
20a8c77195

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

@@ -117,4 +117,8 @@ public interface HttpURL {
      * 获取发票下载地址
      */
     String imageGetInvoiceURL = host + "/carSelfService/rest/image/getInvoiceURL";
+    /**
+     * 订单管理查询已完成的保险列表
+     */
+    String orderCompleteAgent = host + "/carSelfService/rest/order/management/agent/completeAgent";
 }

+ 92 - 0
tenant/insurance/quotation-taikang/src/main/java/com/jzg/quotation/taikang/model/api/OrderCompleteAgentParam.java

@@ -0,0 +1,92 @@
+package com.jzg.quotation.taikang.model.api;
+
+import com.jzg.quotation.taikang.client.BaseRequest;
+import lombok.Getter;
+import lombok.Setter;
+
+import java.util.List;
+
+@Setter
+@Getter
+public class OrderCompleteAgentParam extends BaseRequest {
+
+    /**
+     * 来源ID
+     */
+    private String fromId;
+
+    /**
+     * 渠道代码
+     */
+    private String channelCode;
+
+    /**
+     * 页码
+     */
+    private Integer pageNo;
+
+    /**
+     * 每页大小
+     */
+    private Integer pageSizePerPage;
+
+    /**
+     * 平台ID
+     */
+    private String tplatformId;
+
+    /**
+     * 子账户标志
+     */
+    private String subAccountFlag;
+
+    /**
+     * 查询开始日期
+     */
+    private String findStartDate;
+
+    /**
+     * 查询结束日期
+     */
+    private String findEndDate;
+
+    /**
+     * 许可证号
+     */
+    private String licenseNo;
+
+    /**
+     * 发动机号
+     */
+    private String engineNo;
+
+    /**
+     * 车架号
+     */
+    private String frameNo;
+
+    /**
+     * 申请人姓名
+     */
+    private String appliName;
+
+    /**
+     * 被保险人姓名
+     */
+    private String insuredName;
+
+    /**
+     * 全案号
+     */
+    private String fullProposalNo;
+
+    /**
+     * 公司代码列表
+     */
+    private List<String> comCodeList;
+
+    /**
+     * OA ID
+     */
+    private String oaId;
+}

+ 14 - 0
tenant/insurance/quotation-taikang/src/main/java/com/jzg/quotation/taikang/model/api/OrderCompleteAgentResult.java

@@ -0,0 +1,14 @@
+package com.jzg.quotation.taikang.model.api;
+
+import com.jzg.quotation.taikang.client.BaseResponse;
+import com.jzg.quotation.taikang.client.UnknownFieldEntity;
+import lombok.Getter;
+import lombok.Setter;
+
+@Setter
+@Getter
+public class OrderCompleteAgentResult extends UnknownFieldEntity {
+    public static final class Response extends BaseResponse<OrderCompleteAgentResult> {
+    }
+
+}

+ 24 - 0
tenant/insurance/quotation-taikang/src/main/java/com/jzg/quotation/taikang/service/TKHttpAPIService.java

@@ -991,4 +991,28 @@ public class TKHttpAPIService {
 
         return data.getUrl();
     }
+
+    /**
+     * 获取发票下载地址
+     *
+     * @param proposalNo
+     * @return base64格式
+     */
+    public OrderCompleteAgentResult orderCompleteAgent(String proposalNo) {
+        OrderCompleteAgentParam param = new OrderCompleteAgentParam();
+        param.setChannelCode("OffWeb");
+        param.setFullProposalNo(proposalNo);
+        //param.setFromId();
+        //param.setTplatformId();
+        param.setPageNo(1);
+        param.setPageSizePerPage(1);
+
+        OrderCompleteAgentResult.Response response = client.request(HttpURL.orderCompleteAgent, param, null, OrderCompleteAgentResult.Response.class);
+
+        if (response != null) {
+            return null;
+        }
+        
+        return response.getData();
+    }
 }

+ 1 - 1
tenant/insurance/quotation-taikang/src/test/java/com/jzg/quotation/taikang/AESEncryptionTest.java

@@ -7,7 +7,7 @@ public class AESEncryptionTest {
 
     public static void main(String[] args) {
         try {
-            String word = "Gcj123456#";
+            String word = "00671070807142500000009087";
             String key = "hh43jii5e954eD54"; // 确保密钥是16字节(128位)
             String encrypted = AESEncryption.encryptPassing(word, key);
             System.out.println("Encrypted: " + encrypted);