Bladeren bron

添加泰康 添加 groupOrderGetNewNoticeStatus 接口

wlq 1 jaar geleden
bovenliggende
commit
76f2782e15

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

@@ -64,4 +64,10 @@ public interface HttpURL {
     String floatNoticeGet = host + "/carSelfService/rest/float/notice/get";
     String floatNoticeGet = host + "/carSelfService/rest/float/notice/get";
 
 
     String engageEngageQuery = host + "/carSelfService/rest/engage/engageQuery";
     String engageEngageQuery = host + "/carSelfService/rest/engage/engageQuery";
+
+    /**
+     * 可能是一个用于查询与汽车团购订单相关的新通知状态的接口。
+     * 可能返回有关团购订单的最新通知或状态更新信息,帮助用户或系统管理员了解订单的当前状态或最新的活动通知。
+     */
+    String groupOrderGetNewNoticeStatus = host + "/carSelfService/rest/groupOrder/getNewNoticeStatus";
 }
 }

+ 13 - 0
tenant/insurance/quotation-taikang/src/main/java/com/jzg/quotation/taikang/entity/GroupOrderGetNewNoticeStatusParam.java

@@ -0,0 +1,13 @@
+package com.jzg.quotation.taikang.entity;
+
+import com.jzg.quotation.taikang.client.UnknownFieldEntity;
+import lombok.Getter;
+import lombok.Setter;
+
+@Setter
+@Getter
+public class GroupOrderGetNewNoticeStatusParam extends UnknownFieldEntity {
+    private String channelCode;
+
+    private String tplatformId;
+}

+ 25 - 0
tenant/insurance/quotation-taikang/src/main/java/com/jzg/quotation/taikang/entity/GroupOrderGetNewNoticeStatusResult.java

@@ -0,0 +1,25 @@
+package com.jzg.quotation.taikang.entity;
+
+import com.jzg.quotation.taikang.client.BaseResponse;
+import com.jzg.quotation.taikang.client.UnknownFieldEntity;
+import lombok.Getter;
+import lombok.Setter;
+
+@Setter
+@Getter
+public class GroupOrderGetNewNoticeStatusResult extends UnknownFieldEntity {
+    public static final class Response extends BaseResponse<GroupOrderGetNewNoticeStatusResult> {
+    }
+
+    /**
+     * 新通知状态码
+     * "0" 可能表示没有新通知
+     */
+    private String newNoticeStatus;
+
+    /**
+     * 投降消息数量
+     * "0" 可能表示没有投降消息(这里的“投降消息”可能是一个特定于业务的术语,具体含义需要根据业务逻辑确定)
+     */
+    private String surrenderMsgNum;
+}

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

@@ -716,4 +716,23 @@ public class TaiKangHttpService {
 
 
         return response.getData();
         return response.getData();
     }
     }
+
+    /**
+     *
+     *
+     * @return
+     */
+    public GroupOrderGetNewNoticeStatusResult groupOrderGetNewNoticeStatus(String tplatformId) {
+        GroupOrderGetNewNoticeStatusParam param = new GroupOrderGetNewNoticeStatusParam();
+        param.setChannelCode("OffWeb");
+        param.setTplatformId(tplatformId);
+
+        HttpHeaders httpHeaders = new HttpHeaders();
+        httpHeaders.add("tkCarRequestToken", token());
+
+
+        GroupOrderGetNewNoticeStatusResult.Response response = client.request(HttpURL.groupOrderGetNewNoticeStatus, param, httpHeaders, GroupOrderGetNewNoticeStatusResult.Response.class);
+
+        return response.getData();
+    }
 }
 }

+ 25 - 0
tenant/insurance/quotation-taikang/src/test/java/com/jzg/quotation/taikang/service/TaiKangHttpServiceTest1.java

@@ -1117,4 +1117,29 @@ public class TaiKangHttpServiceTest1 {
         System.out.println(JSON.toJSONString(result));
         System.out.println(JSON.toJSONString(result));
     }
     }
 
 
+    @Test
+    @Order(20)
+    public void groupOrderGetNewNoticeStatus() {
+        // feda77e829d4dedbbd8b4e236bacfac5
+        String tplatformId = TaiKangHttpServiceTest1.loginResult.getTplatformId();
+
+        // 0114
+        String comCode = TaiKangHttpServiceTest1.loginResult.getWebsysUserVo().getWebsysUserAreaVos().get(0).getAreacode();
+
+        // 1e6cbb3bf08e8cb8f8c684cff0ee5e161
+        String tplatLoginKey = TaiKangHttpServiceTest1.loginResult.getTplatLoginKey();
+
+        // 67107
+        String fromid = TaiKangHttpServiceTest1.loginResult.getWebsysUserVo().getFromid();
+
+        EngageEngageQueryParam.Privy privy = new EngageEngageQueryParam.Privy();
+
+        GroupOrderGetNewNoticeStatusResult result = taiKangHttpService.groupOrderGetNewNoticeStatus(tplatformId);
+
+        assertNotNull(result);
+
+        System.out.println();
+        System.out.println(JSON.toJSONString(result));
+    }
+
 }
 }