Переглянути джерело

1.供应商修改
2.协议修改
3.协议字典增加

wks 3 роки тому
батько
коміт
de7246cff8

+ 44 - 0
src/main/resources/mapper/modules/esm/EsmInsCompanyMapper.xml

@@ -0,0 +1,44 @@
+<?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.esm.dao.EsmInsCompanyMapper">
+
+    <resultMap id="BaseResultMap" type="com.ydtech.modules.esm.model.EsmInsCompany">
+            <id property="id" column="id" jdbcType="VARCHAR"/>
+            <result property="code" column="code" jdbcType="VARCHAR"/>
+            <result property="name" column="name" jdbcType="VARCHAR"/>
+            <result property="parentId" column="parent_id" jdbcType="VARCHAR"/>
+            <result property="namesimple" column="namesimple" jdbcType="VARCHAR"/>
+            <result property="remark" column="remark" jdbcType="VARCHAR"/>
+            <result property="orderNum" column="order_num" jdbcType="INTEGER"/>
+            <result property="createBy" column="create_by" jdbcType="VARCHAR"/>
+            <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
+            <result property="lastUpdateBy" column="last_update_by" jdbcType="VARCHAR"/>
+            <result property="lastUpdateTime" column="last_update_time" jdbcType="TIMESTAMP"/>
+            <result property="cnName" column="cn_name" jdbcType="VARCHAR"/>
+            <result property="type" column="type" jdbcType="TINYINT"/>
+    </resultMap>
+
+    <sql id="Base_Column_List">
+        id,code,name,
+        parent_id,namesimple,remark,
+        order_num,create_by,create_time,
+        last_update_by,last_update_time,open_quote,
+        cn_name,type,logo
+    </sql>
+
+    <select id="getByLowerId" resultType="java.lang.String">
+        with recursive temp as (select id
+                                from esm_ins_company
+                                where id = #{companyId}
+                                union all
+                                select t.id
+                                from esm_ins_company t
+                                         inner join temp t2 on t2.id = t.parent_id)
+        select id
+        from temp
+    </select>
+
+
+</mapper>

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

@@ -11,6 +11,9 @@
         <result property="agreementName" column="agreement_name" jdbcType="VARCHAR"/>
         <result property="agreementAbbreviation" column="agreement_abbreviation" jdbcType="VARCHAR"/>
         <result property="insuranceCompany" column="insurance_company" jdbcType="VARCHAR"/>
+        <result property="insuranceCompanyId" column="insurance_company_id" jdbcType="VARCHAR"/>
+        <result property="partnerCompaniesId" column="partner_companies_id" jdbcType="VARCHAR"/>
+        <result property="associationCompaniesId" column="association_companies_id" jdbcType="VARCHAR"/>
         <result property="startDate" column="start_date" jdbcType="DATE"/>
         <result property="endDate" column="end_date" jdbcType="DATE"/>
         <result property="moneyTime" column="money_time" jdbcType="INTEGER"/>
@@ -19,7 +22,6 @@
         <result property="dockingPhone" column="docking_phone" jdbcType="VARCHAR"/>
         <result property="withTax" column="with_tax" jdbcType="VARCHAR"/>
         <result property="moneyType" column="money_type" jdbcType="VARCHAR"/>
-        <result property="cooperationChannels" column="cooperation_channels" jdbcType="VARCHAR"/>
         <result property="validStatus" column="valid_status" jdbcType="VARCHAR"/>
         <result property="fileId" column="file_id" jdbcType="VARCHAR"/>
         <result property="auditContent" column="audit_content" jdbcType="VARCHAR"/>
@@ -41,8 +43,6 @@
         <result property="createTime" column="create_time" jdbcType="TIMESTAMP"/>
         <result property="lastUpdateBy" column="last_update_by" jdbcType="VARCHAR"/>
         <result property="lastUpdateTime" column="last_update_time" jdbcType="TIMESTAMP"/>
-        <result property="delFlag" column="del_flag" jdbcType="TINYINT"/>
-        <result property="openQuote" column="open_quote" jdbcType="TINYINT"/>
         <result property="cnName" column="cn_name" jdbcType="VARCHAR"/>
         <result property="logo" column="logo" jdbcType="VARCHAR"/>
         <collection property="agreement" ofType="com.ydtech.modules.protocol.entity.dto.PtlAgreementDto">