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

添加泰康 添加 EntranceResult 结构

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

+ 202 - 0
tenant/insurance/quotation-taikang/src/main/java/com/jzg/quotation/taikang/entity/EntranceResult.java

@@ -0,0 +1,202 @@
+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;
+
+import java.util.List;
+
+/**
+ * 订单详情
+ *
+ * 提交后的订单详情
+ *
+ */
+@Setter
+@Getter
+public class EntranceResult extends UnknownFieldEntity {
+
+    @Setter
+    @Getter
+    public static class Response extends BaseResponse<EntranceResult> {
+
+    }
+
+    /**
+     * 车牌号
+     */
+    private String licenseNo;
+
+    /**
+     * 寿险代理人电话
+     */
+    private String lifeAgentPhone;
+
+    /**
+     * 来源ID
+     */
+    private String fromID;
+
+    /**
+     * 来源ID
+     */
+    private String fromId;
+
+    /**
+     * 验车规格列表
+     */
+    private List<CheckCarSpecification> checkCarSpecification;
+
+    /**
+     * 寿险代理人姓名
+     */
+    private String lifeAgentName;
+
+    /**
+     * 加密的投保单号
+     */
+    private String proposalNoEnc;
+
+    /**
+     * 投保人证件类型
+     */
+    private String appliIdentifyType;
+
+    /**
+     * 核保原因列表
+     */
+    private List<String> underwriteReason;
+
+    /**
+     * 验车照片详情名称
+     */
+    private String checkCarPhotoDetailName;
+
+    /**
+     * 车辆事故信息
+     */
+    private CarAccident carAccident;
+
+    /**
+     * 公司代码
+     */
+    private String comCode;
+
+    /**
+     * 商业险投保单号
+     */
+    private String proposalNoBI;
+
+    /**
+     * 验车状态
+     */
+    private String carCheckStatus;
+
+    /**
+     * 渠道代码
+     */
+    private String channelCode;
+
+    /**
+     * 验车代码名称
+     */
+    private String checkCarCodeName;
+
+    /**
+     * 代理标志
+     */
+    private String proxyFlag;
+
+    /**
+     * 品牌名称
+     */
+    private String brandName;
+
+    /**
+     * 核保标志
+     */
+    private String underWriteFlag;
+
+    /**
+     * 投保人姓名
+     */
+    private String appliName;
+
+    /**
+     * 规则消息列表
+     */
+    private List<String> ruleMessage;
+
+    /**
+     * 投保人性质
+     */
+    private String appliNature;
+
+    /**
+     * 验车数据
+     */
+    private String checkCarData;
+
+    /**
+     * 投保单号
+     */
+    private String proposalNo;
+
+    /**
+     * 消息代码
+     */
+    private String messageCode;
+
+
+    @Getter
+    @Setter
+    public static class CheckCarSpecification {
+
+        /**
+         * 图片详情代码
+         */
+        private String imageDetailCode;
+
+        /**
+         * 图片详情名称
+         */
+        private String imageDetailName;
+
+        /**
+         * 图片路径
+         */
+        private String imagePath;
+
+        /**
+         * 排序
+         */
+        private String orderBy;
+
+        /**
+         * 图片分类代码
+         */
+        private String imageClassifyCode;
+
+        /**
+         * 图片分类名称
+         */
+        private String imageClassifyName;
+    }
+
+    @Getter
+    @Setter
+    public static class CarAccident {
+
+        /**
+         * 投保单号
+         */
+        private String proposalNo;
+
+        /**
+         * 投保次数
+         */
+        private Integer insureCounts;
+    }
+}
+

+ 42 - 0
tenant/insurance/quotation-taikang/src/test/java/com/jzg/quotation/taikang/entity/EntranceResultTest.java

@@ -0,0 +1,42 @@
+package com.jzg.quotation.taikang.entity;
+
+import com.jzg.quotation.taikang.JsonUtil;
+import org.junit.jupiter.api.Test;
+
+import java.util.Map;
+
+public class EntranceResultTest {
+
+    @Test
+    public void test1() {
+        String json = """
+                { "data": { "licenseNo": "晋K7059T", "lifeAgentPhone": "13613412686", "fromID": "67107", "checkCarSpecification": [ { "imageDetailCode": "0", "imageDetailName": "车辆左前45°照", "imagePath": "01-12-02", "orderBy": "1", "imageClassifyCode": "01", "imageClassifyName": "验车照(5张照片)" }, { "imageDetailCode": "1", "imageDetailName": "车辆右前45°照", "imagePath": "01-12-02", "orderBy": "2", "imageClassifyCode": "01", "imageClassifyName": "验车照(5张照片)" }, { "imageDetailCode": "2", "imageDetailName": "车辆左后45°照", "imagePath": "01-12-02", "orderBy": "3", "imageClassifyCode": "01", "imageClassifyName": "验车照(5张照片)" }, { "imageDetailCode": "3", "imageDetailName": "车辆右后45°照", "imagePath": "01-12-02", "orderBy": "4", "imageClassifyCode": "01", "imageClassifyName": "验车照(5张照片)" }, { "imageDetailCode": "4", "imageDetailName": "车架号照片", "imagePath": "01-12-02", "orderBy": "5", "imageClassifyCode": "01", "imageClassifyName": "验车照(5张照片)" } ], "lifeAgentName": "褚友爱", "proposalNoEnc": "K38JjtkUWPLfnCUJSrh6DP8hVI2d+FRUb6Jx3o5PRWI5D4rHWpkZK6fnQ2Rq88W7rBd8RiFCTe43\\nVXvorAWBc1nZBibLXPAvV1y22mxcQSQ=", "appliIdentifyType": "01", "underwriteReason": [ "人工审核" ], "checkCarPhotoDetailName": "", "carAccident": { "proposalNo": "01671070810142500000000794", "insureCounts": 0 }, "comCode": "0114", "proposalNoBI": "00671070808142500000004429", "carCheckStatus": "1", "channelCode": "OffWeb", "checkCarCodeName": "", "proxyFlag": "0", "brandName": "广汽本田.冠道", "underWriteFlag": "9", "appliName": "刘书君", "ruleMessage": [ "承保车轮单独损失险" ], "appliNature": "1", "fromId": "67107", "checkCarData": "您的车辆需要验车验证,请尽快上传;保单生效日未上传,订单将置为失效", "proposalNo": "00671070808142500000004429", "messageCode": "1" }, "status": "1" }
+                """;
+
+        EntranceResult.Response response = JsonUtil.readObjcet(json, EntranceResult.Response.class);
+
+
+        Map<String, Object> unknownFields = response.getUnknownFields();
+
+        System.out.println("unknownFields: ");
+        System.out.println(unknownFields);
+    }
+
+
+    @Test
+    public void test2() {
+        String json = """
+                {
+
+                }
+                """;
+
+        EntranceResult.Response response = JsonUtil.readObjcet(json, EntranceResult.Response.class);
+
+
+        Map<String, Object> unknownFields = response.getUnknownFields();
+
+        System.out.println("unknownFields: ");
+        System.out.println(unknownFields);
+    }
+}