From 29069b790469cb7136cadba7ddcd63a83bc4ac70 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期一, 23 三月 2026 15:20:20 +0800
Subject: [PATCH] 门急诊分表代码(增、改、查)提交

---
 smartor/src/main/resources/mapper/smartor/HeLibraryAssortMapper.xml |   23 +++++++++++------------
 1 files changed, 11 insertions(+), 12 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/HeLibraryAssortMapper.xml b/smartor/src/main/resources/mapper/smartor/HeLibraryAssortMapper.xml
index ad40e83..0cac58b 100644
--- a/smartor/src/main/resources/mapper/smartor/HeLibraryAssortMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/HeLibraryAssortMapper.xml
@@ -42,18 +42,17 @@
     <select id="selectHeLibraryAssortList" parameterType="com.smartor.domain.HeLibraryAssort"
             resultMap="HeLibraryAssortResult">
         <include refid="selectHeLibraryAssortVo"/>
-        where 1=1
-            and del_flag != 1
-            <if test="assortname != null  and assortname != ''">and assortname like concat('%', #{assortname}, '%')</if>
-            <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if>
-            <if test="isupload != null ">and isupload = #{isupload}</if>
-            <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
-            <if test="pid != null ">and pid = #{pid}</if>
-            <if test="guid != null  and guid != ''">and guid = #{guid}</if>
-            <if test="seqno != null  ">and seqno = #{seqno}</if>
-            <if test="hetype != null  ">and hetype = #{hetype}</if>
-
+        where del_flag != 1
+        <if test="assortname != null  and assortname != ''">and assortname like concat('%', #{assortname}, '%')</if>
+        <if test="orgid != null  and orgid != ''">and orgid = #{orgid}</if>
+        <if test="isupload != null ">and isupload = #{isupload}</if>
+        <if test="uploadTime != null ">and upload_time = #{uploadTime}</if>
+        <if test="pid != null ">and pid = #{pid}</if>
+        <if test="guid != null  and guid != ''">and guid = #{guid}</if>
+        <if test="seqno != null  ">and seqno = #{seqno}</if>
+        <if test="hetype != null  ">and hetype = #{hetype}</if>
         order by seqno asc
+        <if test="pageSize != null  and pageNum != null">limit ${pageSize} OFFSET ${pageNum}</if>
     </select>
 
     <select id="selectSeqMax" resultType="integer">
@@ -124,7 +123,7 @@
     <update id="deleteHeLibraryAssortById" parameterType="Long">
         update he_library_assort
         <trim prefix="SET" suffixOverrides=",">
-           del_flag = 1
+            del_flag = 1
         </trim>
         where id = #{id}
     </update>

--
Gitblit v1.9.3