Przeglądaj źródła

Merge remote-tracking branch 'origin/master'

wks 1 rok temu
rodzic
commit
2cce1a9e40

+ 1 - 0
tenant/insurance/pom.xml

@@ -23,6 +23,7 @@
         <module>quotation-yongcheng</module>
         <module>quotation-huatai</module>
         <module>quotation-yangguang</module>
+        <module>quotation-guoren</module>
     </modules>
 
     <dependencies>

+ 7 - 0
tenant/insurance/quotation-bohai/src/main/java/com/jzg/quote/bohai/api/entity/request/ImageUploadRequest.java

@@ -25,9 +25,16 @@ public class ImageUploadRequest extends BoHaiBaseRequest {
 
     @Serial
     private static final long serialVersionUID = -4264809549045685813L;
+    /**
+     * 文件信息
+     */
     @JsonProperty("fileInfos")
     private List<FileInfosDTO> fileInfos;
 
+    /**
+     * 订单业务
+     * session id
+     */
     @JsonProperty("busUniqueId")
     private String busUniqueId;
 

+ 95 - 0
tenant/insurance/quotation-commons/src/main/java/com/jzg/quotation/commons/constant/enums/base/InsuranceEnum.java

@@ -0,0 +1,95 @@
+package com.jzg.quotation.commons.constant.enums.base;
+
+import lombok.AllArgsConstructor;
+import lombok.Getter;
+
+/**
+ * @description: 保险公司映射
+ * @author: shenwd
+ * @date: 2025/3/14 11:41
+ **/
+@AllArgsConstructor
+@Getter
+public enum InsuranceEnum {
+
+    AAIC("AAIC", "安信农业保险股份有限公司", ""),
+    ABIC("ABIC", "安邦财产保险股份有限公司", ""),
+    ACIC("ACIC", "安诚财产保险股份有限公司", ""),
+    AHIC("AHIC", "安华农业保险股份有限公司", ""),
+    AICS("AICS", "永诚财产保险股份有限公司", "yongcheng"),
+    AIGC("AIGC", "美亚财产保险有限公司", ""),
+    AMIC("AMIC", "中航安盟财产保险有限公司", ""),
+    APIC("APIC", "安心财产保险有限责任公司", ""),
+    AZCN("AZCN", "京东安联财产保险有限公司", ""),
+    BGIC("BGIC", "北部湾财产保险股份有限公司", ""),
+    BOCI("BOCI", "中银保险有限公司", ""),
+    BPIC("BPIC", "渤海财产保险股份有限公司", "bohai"),
+    CAIC("CAIC", "长安责任保险股份有限公司", ""),
+    CATH("CATH", "国泰财产保险有限责任公司", ""),
+    CCBP("CCBP", "建信财产保险有限公司", ""),
+    CCIC("CCIC", "中国大地财产保险股份有限公司", ""),
+    CHAC("CHAC", "诚泰财产保险股份有限公司", "chengtai"),
+    CICP("CICP", "中华联合财产保险股份有限公司", ""),
+    CJCX("CJCX", "长江财产保险股份有限公司", ""),
+    CPIC("CPIC", "中国太平洋财产保险股份有限公司", "taipingyang"),
+    CRCI("CRCI", "中国铁路财产保险自保有限公司", ""),
+    CRIC("CRIC", "富德财产保险股份有限公司", ""),
+    DBIC("DBIC", "都邦财产保险股份有限公司", ""),
+    DHIC("DHIC", "鼎和财产保险股份有限公司", ""),
+    DICC("DICC", "史带财产保险股份有限公司", ""),
+    DJPC("DJPC", "大家财产保险有限责任公司", "dajia"),
+    EAIC("EAIC", "易安财产保险股份有限公司", ""),
+    FPIC("FPIC", "富邦财产保险有限公司", ""),
+    GPIC("GPIC", "中国人寿财产保险股份有限公司", "renshou"),
+    GYIC("GYIC", "国元农业保险股份有限公司", ""),
+    HAIC("HAIC", "华安财产保险股份有限公司", ""),
+    HBIC("HBIC", "恒邦财产保险股份有限公司", "hengbang"),
+    HGIC("HGIC", "海峡金桥财产保险股份有限公司", ""),
+    HHBX("HHBX", "华海财产保险股份有限公司", ""),
+    HNIC("HNIC", "华农财产保险股份有限公司", "huanong"),
+    HTIC("HTIC", "华泰财产保险有限公司", "huatai"),
+    HYIC("HYIC", "现代财产保险(中国)有限公司", ""),
+    JLIC("JLIC", "久隆财产保险有限公司", ""),
+    JTIC("JTIC", "锦泰财产保险股份有限公司", ""),
+    LIHI("LIHI", "利宝保险有限公司", ""),
+    MACN("MACN", "亚太财产保险有限公司", ""),
+    MSIC("MSIC", "三井住友海上火灾保险(中国)有限公司", ""),
+    PAIC("PAIC", "中国平安财产保险股份有限公司", "pingan"),
+    PICC("PICC", "中国人民财产保险股份有限公司", ""),
+    QHIC("QHIC", "新疆前海联合财产保险股份有限公司", ""),
+    RSIC("RSIC", "融盛财产保险股份有限公司", ""),
+    SJIC("SJIC", "日本财产保险(中国)有限公司", ""),
+    SMIC("SMIC", "阳光农业相互保险公司", ""),
+    SPIC("SPIC", "三星财产保险(中国)有限公司", ""),
+    TAIC("TAIC", "天安财产保险股份有限公司", ""),
+    TKIC("TKIC", "泰康在线财产保险股份有限公司", "taikang"),
+    TMNF("TMNF", "东京海上日动火灾保险(中国)有限公司", ""),
+    TPBX("TPBX", "安盛天平财产保险股份有限公司", "ansheng"),
+    TPIC("TPIC", "太平财产保险有限公司", "taiping"),
+    TSBX("TSBX", "泰山财产保险股份有限公司", ""),
+    ULIC("ULIC", "合众财产保险股份有限公司", ""),
+    UTIC("UTIC", "众诚汽车保险股份有限公司", ""),
+    XAIC("XAIC", "鑫安汽车保险股份有限公司", ""),
+    XDCX("XDCX", "国任财产保险股份有限公司", "guoren"),
+    YAIC("YAIC", "永安财产保险股份有限公司", "yongan"),
+    YDCX("YDCX", "英大泰和财产保险股份有限公司", ""),
+    YGBX("YGBX", "阳光财产保险股份有限公司", "yangguang"),
+    YPIC("YPIC", "黄河财产保险股份有限公司", ""),
+    YZIC("YZIC", "燕赵财产保险股份有限公司", ""),
+    ZAPA("ZAPA", "众安在线财产保险股份有限公司", "zongan"),
+    ZFIC("ZFIC", "珠峰财产保险股份有限公司", ""),
+    ZKIC("ZKIC", "紫金财产保险股份有限公司", "zijin"),
+    ZLIC("ZLIC", "中路财产保险股份有限公司", ""),
+    ZMBX("ZMBX", "中煤财产保险股份有限公司", "zhongmei"),
+    ZSIC("ZSIC", "浙商财产保险股份有限公司", ""),
+    ZYBX("ZYBX", "中原农业保险股份有限公司", ""),
+    ZYIC("ZYIC", "中意财产保险有限公司", ""),
+    SNPIC("SNPIC", "申能财产保险股份有限公司", "");
+
+    private final String code;
+
+    private final String name;
+
+    private final String pinyin;
+
+}

+ 28 - 0
tenant/insurance/quotation-guoren/pom.xml

@@ -0,0 +1,28 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
+    <modelVersion>4.0.0</modelVersion>
+    <parent>
+        <groupId>com.jzg</groupId>
+        <artifactId>insurance</artifactId>
+        <version>1.0-SNAPSHOT</version>
+    </parent>
+
+    <artifactId>quotation-guoren</artifactId>
+
+    <properties>
+        <maven.compiler.source>17</maven.compiler.source>
+        <maven.compiler.target>17</maven.compiler.target>
+        <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
+    </properties>
+    <dependencies>
+        <dependency>
+            <groupId>com.jzg</groupId>
+            <artifactId>quotation-commons</artifactId>
+            <version>1.0-SNAPSHOT</version>
+            <scope>compile</scope>
+        </dependency>
+    </dependencies>
+
+</project>

+ 23 - 0
tenant/insurance/quotation-guoren/src/main/java/com/jzg/quote/guoren/api/component/GuoRenRequestApiComponent.java

@@ -0,0 +1,23 @@
+package com.jzg.quote.guoren.api.component;
+
+import com.jzg.quote.guoren.api.properties.GuoRenApiConfigurationProperties;
+import lombok.RequiredArgsConstructor;
+import lombok.extern.slf4j.Slf4j;
+import org.springframework.stereotype.Component;
+import org.springframework.web.client.RestTemplate;
+
+/**
+ * @description: 国任财险
+ * @author: shenwd
+ * @date: 2025/3/14 10:08
+ **/
+@Component
+@Slf4j
+@RequiredArgsConstructor
+public class GuoRenRequestApiComponent {
+
+    private final RestTemplate restTemplate;
+
+    private final GuoRenApiConfigurationProperties properties;
+
+}

+ 9 - 0
tenant/insurance/quotation-guoren/src/main/java/com/jzg/quote/guoren/api/entity/GuoRenApiOrder.java

@@ -0,0 +1,9 @@
+package com.jzg.quote.guoren.api.entity;
+
+/**
+ * @description: 国任财险需要在mongodb中保存的数据
+ * @author: shenwd
+ * @date: 2025/3/14 10:18
+ **/
+public class GuoRenApiOrder {
+}

+ 37 - 0
tenant/insurance/quotation-guoren/src/main/java/com/jzg/quote/guoren/api/properties/GuoRenApiConfigurationProperties.java

@@ -0,0 +1,37 @@
+package com.jzg.quote.guoren.api.properties;
+
+import lombok.Data;
+import org.springframework.boot.context.properties.ConfigurationProperties;
+import org.springframework.stereotype.Component;
+
+/**
+ * @description: 国任财险
+ * @author: shenwd
+ * @date: 2025/3/14 10:13
+ **/
+@Data
+@Component
+@ConfigurationProperties(prefix = "guoren.api")
+public class GuoRenApiConfigurationProperties {
+
+    private String baseUrl;
+
+    private String uploadUrl;
+
+    private String redirectUrl;
+
+    // 保单
+    private String policyUrl;
+    // 标志
+    private String policyFlagUrl;
+    // 服务代码
+    private String serveCode;
+    // 渠道编码
+    private String channelCode;
+    // 访问账号
+    private String interfaceUserCode;
+    // 访问口令
+    private String interfacePwd;
+    // 环境类型 测试环境填”Y”;生产环境填”N”
+    private String iftest;
+}

+ 16 - 0
tenant/insurance/quotation-guoren/src/main/java/com/jzg/quote/guoren/api/repository/GuoRenApiOrderRepository.java

@@ -0,0 +1,16 @@
+package com.jzg.quote.guoren.api.repository;
+
+import com.jzg.quote.guoren.api.entity.GuoRenApiOrder;
+import org.springframework.data.mongodb.repository.MongoRepository;
+import org.springframework.data.mongodb.repository.Query;
+
+/**
+ * @description:
+ * @author: shenwd
+ * @date: 2025/3/14 10:19
+ **/
+public interface GuoRenApiOrderRepository extends MongoRepository<GuoRenApiOrder, String> {
+
+    @Query("{'ordersNo' : ?0}")
+    GuoRenApiOrder findByOrdersNo(String ordersNo);
+}

+ 11 - 0
tenant/insurance/quotation-guoren/src/main/java/com/jzg/quote/guoren/api/service/GuoRenApiRequest.java

@@ -0,0 +1,11 @@
+package com.jzg.quote.guoren.api.service;
+
+import com.jzg.quotation.commons.service.QuotationApiBaseService;
+
+/**
+ * @description: 国任财险 API
+ * @author: shenwd
+ * @date: 2025/3/14 09:54
+ **/
+public interface GuoRenApiRequest extends QuotationApiBaseService {
+}

+ 76 - 0
tenant/insurance/quotation-guoren/src/main/java/com/jzg/quote/guoren/api/service/Impl/GuoRenApiRequestImpl.java

@@ -0,0 +1,76 @@
+package com.jzg.quote.guoren.api.service.Impl;
+
+import com.fasterxml.jackson.core.JsonProcessingException;
+import com.jzg.quotation.commons.entity.vo.aggregated.InsuranceUploadImageVo;
+import com.jzg.quotation.commons.entity.vo.aggregated.QuoteResultsVo;
+import com.jzg.quotation.commons.entity.vo.aggregated.QuoteVo;
+import com.jzg.quotation.commons.entity.vo.aggregated.UnderwritingVo;
+import com.jzg.quotation.commons.entity.vo.base.OrderBase;
+import com.jzg.quote.guoren.api.service.GuoRenApiRequest;
+
+/**
+ * @description: todo
+ * @author: shenwd
+ * @date: 2025/3/14 09:58
+ **/
+public class GuoRenApiRequestImpl implements GuoRenApiRequest {
+    /**
+     * 报价
+     * @param quoteVo 报价实体
+     * @return 报价信息
+     */
+    @Override
+    public QuoteResultsVo quote(QuoteVo quoteVo) throws JsonProcessingException {
+        return null;
+    }
+
+    /**
+     * 提交核保 子订单
+     *
+     * @param underwritingVo
+     */
+    @Override
+    public void underwriting(UnderwritingVo underwritingVo) {
+
+    }
+
+    /**
+     * 获取支付链接
+     *
+     * @param orderBase
+     */
+    @Override
+    public String getPaymentLink(OrderBase orderBase) throws JsonProcessingException {
+        return "";
+    }
+
+    /**
+     * 上传影像
+     *
+     * @param insuranceUploadImageVo
+     */
+    @Override
+    public void uploadImage(InsuranceUploadImageVo insuranceUploadImageVo) {
+
+    }
+
+    /**
+     * 下载保单
+     *
+     * @param orderBase
+     */
+    @Override
+    public void downloadPolicy(OrderBase orderBase) {
+
+    }
+
+    /**
+     * 查询订单状态
+     *
+     * @param orderBase
+     */
+    @Override
+    public void queryOrderState(OrderBase orderBase) {
+
+    }
+}

+ 1 - 1
tenant/organization/src/main/resources/mapper/PtlAgreementMapper.xml

@@ -99,8 +99,8 @@
             <if test="param.loseStartDate != null and param.loseEndDate != null">
                 and DATE_FORMAT(pa.end_date, '%Y-%m-%d') between #{param.loseStartDate} AND #{param.loseEndDate}
             </if>
-
         </where>
+        ORDER BY pa.create_time DESC
     </select>
     <select id="queryById" resultType="com.jzg.commons.entity.vo.AgreementVo">
         select <include refid="Base_Column_List"/>