From 791b8c88d67767c9847c7c052faca3e65ec36016 Mon Sep 17 00:00:00 2001
From: zhaowenxuan <chacca165@163.com>
Date: 星期五, 07 二月 2025 13:59:27 +0800
Subject: [PATCH] 配置动态切库类以及拦截器切库

---
 ltkj-hosp/src/main/resources/mapper/hosp/DictHospMapper.xml |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ltkj-hosp/src/main/resources/mapper/hosp/DictHospMapper.xml b/ltkj-hosp/src/main/resources/mapper/hosp/DictHospMapper.xml
index 6ad3365..ebf675b 100644
--- a/ltkj-hosp/src/main/resources/mapper/hosp/DictHospMapper.xml
+++ b/ltkj-hosp/src/main/resources/mapper/hosp/DictHospMapper.xml
@@ -31,6 +31,7 @@
         <result property="updateByName" column="update_by_name"/>
         <result property="imgbase64" column="imgBase64"/>
         <result property="deleted" column="deleted"/>
+        <result property="database" column="database"/>
     </resultMap>
 
     <sql id="selectDictHospVo">
@@ -59,7 +60,7 @@
                create_by_name,
                update_by_name,
                imgBase64,
-               deleted
+               deleted,database
         from dict_hosp
     </sql>
 
@@ -116,6 +117,7 @@
             <if test="updateByName != null and updateByName != ''">update_by_name,</if>
             <if test="imgbase64 != null">imgBase64,</if>
             <if test="deleted != null">deleted,</if>
+            <if test="database != null">database,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="hospAreaId != null">#{hospAreaId},</if>
@@ -144,6 +146,7 @@
             <if test="updateByName != null and updateByName != ''">#{updateByName},</if>
             <if test="imgbase64 != null">#{imgbase64},</if>
             <if test="deleted != null">#{deleted},</if>
+            <if test="database != null">#{database},</if>
         </trim>
     </insert>
 
@@ -175,6 +178,7 @@
             <if test="updateByName != null and updateByName != ''">update_by_name = #{updateByName},</if>
             <if test="imgbase64 != null">imgBase64 = #{imgbase64},</if>
             <if test="deleted != null">deleted = #{deleted},</if>
+            <if test="database != null">database = #{database},</if>
         </trim>
         where hosp_area_id = #{hospAreaId}
     </update>
@@ -191,4 +195,4 @@
             #{hospAreaId}
         </foreach>
     </delete>
-</mapper>
\ No newline at end of file
+</mapper>

--
Gitblit v1.8.0