Sfoglia il codice sorgente

python对接 协议归属、协议账号配置

wks 3 anni fa
parent
commit
e25c5e19c8

+ 0 - 1
src/main/java/com/ydtech/modules/esm/service/EsmInsCompanyService.java

@@ -7,7 +7,6 @@ import com.ydtech.modules.esm.model.vo.req.EsmInsCompanyReq;
 
 import java.util.List;
 
-//public interface EsmInsCompanyService extends EsmInsCompanyDao {
 public interface EsmInsCompanyService extends IService<EsmInsCompany> {
 
 //    /**

+ 23 - 0
src/main/resources/mapper/modules/protocol/PtlAgreementAttributionMapper.xml

@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ydtech.modules.protocol.dao.PtlAgreementAttributionMapper">
+
+    <resultMap id="BaseResultMap" type="com.ydtech.modules.protocol.entity.po.PtlAgreementAttribution">
+            <id property="id" column="id" jdbcType="BIGINT"/>
+            <result property="insCompanyId" column="ins_company_id" jdbcType="VARCHAR"/>
+            <result property="insCompanyName" column="ins_company_name" jdbcType="VARCHAR"/>
+            <result property="apiType" column="api_type" jdbcType="TINYINT"/>
+            <result property="fields" column="fields" javaType="com.alibaba.fastjson.JSONArray"
+                    typeHandler="com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler" jdbcType="VARCHAR"/>
+            <result property="username" column="username" jdbcType="VARCHAR"/>
+            <result property="password" column="password" jdbcType="VARCHAR"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,agreement_id,ins_company_id,
+        ins_company_name,api_type,fields,
+        username,password
+    </sql>
+</mapper>

+ 15 - 0
src/main/resources/mapper/modules/protocol/PtlAgreementDeptMapper.xml

@@ -0,0 +1,15 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ydtech.modules.protocol.dao.PtlAgreementDeptMapper">
+
+    <resultMap id="BaseResultMap" type="com.ydtech.modules.protocol.entity.po.PtlAgreementDept">
+            <result property="agreementId" column="agreement_id" jdbcType="BIGINT"/>
+            <result property="deptId" column="dept_id" jdbcType="VARCHAR"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        agreement_id,dept_id
+    </sql>
+</mapper>

+ 1 - 1
src/main/resources/mapper/modules/protocol/PtlAgreementMapper.xml

@@ -5,7 +5,7 @@
 <mapper namespace="com.ydtech.modules.protocol.dao.PtlAgreementMapper">
 
     <resultMap id="BaseResultMap" type="com.ydtech.modules.protocol.entity.po.PtlAgreement">
-            <id property="id" column="id" jdbcType="INTEGER"/>
+            <id property="id" column="id" jdbcType="BIGINT"/>
             <result property="agreementType" column="agreement_type" jdbcType="VARCHAR"/>
             <result property="agreementCode" column="agreement_code" jdbcType="VARCHAR"/>
             <result property="agreementName" column="agreement_name" jdbcType="VARCHAR"/>

+ 1 - 1
src/main/resources/mapper/modules/protocol/PtlAgreementProductCostsMapper.xml

@@ -6,7 +6,7 @@
 
     <resultMap id="BaseResultMap" type="com.ydtech.modules.protocol.entity.po.PtlAgreementProductCosts">
         <id property="id" column="id" jdbcType="INTEGER"/>
-        <result property="agreementId" column="agreement_id" jdbcType="INTEGER"/>
+        <result property="agreementId" column="agreement_id" jdbcType="BIGINT"/>
         <result property="productId" column="product_id" jdbcType="INTEGER"/>
         <result property="productName" column="product_name" jdbcType="INTEGER"/>
         <result property="costsFactor" column="costs_description" javaType="com.alibaba.fastjson.JSONArray"

+ 1 - 1
src/main/resources/mapper/modules/protocol/PtlAgreementUnderwritingRulesMapper.xml

@@ -6,7 +6,7 @@
 
     <resultMap id="BaseResultMap" type="com.ydtech.modules.protocol.entity.po.PtlAgreementUnderwritingRules">
         <id property="id" column="id" jdbcType="INTEGER"/>
-        <result property="agreementId" column="agreement_id" jdbcType="INTEGER"/>
+        <result property="agreementId" column="agreement_id" jdbcType="BIGINT"/>
         <result property="rulesType" column="rules_type" jdbcType="TINYINT"/>
         <result property="rulesFactor" column="rules_factor" javaType="com.alibaba.fastjson.JSONArray"
                 typeHandler="com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler" jdbcType="VARCHAR"/>

+ 19 - 0
src/main/resources/mapper/modules/protocol/PtlCrawlerApiMapper.xml

@@ -0,0 +1,19 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ydtech.modules.protocol.dao.PtlCrawlerApiMapper">
+
+    <resultMap id="BaseResultMap" type="com.ydtech.modules.protocol.entity.po.PtlCrawlerApi">
+            <id property="id" column="id" jdbcType="BIGINT"/>
+            <result property="templateId" column="template_id" jdbcType="BIGINT"/>
+            <result property="apiType" column="api_type" jdbcType="TINYINT"/>
+            <result property="apiName" column="api_name" jdbcType="VARCHAR"/>
+            <result property="url" column="url" jdbcType="VARCHAR"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,template_id,api_type,
+        api_name,url
+    </sql>
+</mapper>

+ 20 - 0
src/main/resources/mapper/modules/protocol/PtlInsAttributionTemplateMapper.xml

@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE mapper
+        PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
+        "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
+<mapper namespace="com.ydtech.modules.protocol.dao.PtlInsAttributionTemplateMapper">
+
+    <resultMap id="BaseResultMap" type="com.ydtech.modules.protocol.entity.po.PtlInsAttributionTemplate">
+            <id property="id" column="id" jdbcType="BIGINT"/>
+            <result property="apiType" column="api_type" jdbcType="TINYINT"/>
+            <result property="insCompanyId" column="ins_company_id" jdbcType="VARCHAR"/>
+            <result property="insCompanyName" column="ins_company_name" jdbcType="VARCHAR"/>
+            <result property="fields" column="fields" javaType="com.alibaba.fastjson.JSONArray"
+                    typeHandler="com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler" jdbcType="VARCHAR"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,api_type,ins_company_id,
+        ins_company_name,fields
+    </sql>
+</mapper>