From ae3200fadc28f925e516d85da7fcb78d402960f7 Mon Sep 17 00:00:00 2001
From: liusheng <337615773@qq.com>
Date: 星期二, 30 七月 2024 18:16:10 +0800
Subject: [PATCH] 代码提交

---
 smartor/src/main/resources/mapper/smartor/HeLibraryAssortMapper.xml |   13 ++++++++++---
 1 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/smartor/src/main/resources/mapper/smartor/HeLibraryAssortMapper.xml b/smartor/src/main/resources/mapper/smartor/HeLibraryAssortMapper.xml
index 06297d0..c74078e 100644
--- a/smartor/src/main/resources/mapper/smartor/HeLibraryAssortMapper.xml
+++ b/smartor/src/main/resources/mapper/smartor/HeLibraryAssortMapper.xml
@@ -18,11 +18,13 @@
         <result property="pid" column="pid"/>
         <result property="guid" column="guid"/>
         <result property="seqno" column="seqno"/>
+        <result property="hetype" column="hetype"/>
     </resultMap>
 
     <sql id="selectHeLibraryAssortVo">
         select id,
                assortname,
+               hetype,
                orgid,
                del_flag,
                update_by,
@@ -41,6 +43,7 @@
             resultMap="HeLibraryAssortResult">
         <include refid="selectHeLibraryAssortVo"/>
         <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>
@@ -48,7 +51,8 @@
             <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>
-            and del_flag != 1
+            <if test="hetype != null  ">and hetype = #{hetype}</if>
+
         </where>
         order by seqno asc
     </select>
@@ -80,6 +84,7 @@
             <if test="pid != null">pid,</if>
             <if test="guid != null">guid,</if>
             <if test="seqno != null">seqno,</if>
+            <if test="hetype != null">hetype,</if>
         </trim>
         <trim prefix="values (" suffix=")" suffixOverrides=",">
             <if test="assortname != null">#{assortname},</if>
@@ -94,6 +99,7 @@
             <if test="pid != null">#{pid},</if>
             <if test="guid != null">#{guid},</if>
             <if test="seqno != null">#{seqno},</if>
+            <if test="hetype != null">#{hetype},</if>
         </trim>
     </insert>
 
@@ -111,6 +117,7 @@
             <if test="uploadTime != null">upload_time = #{uploadTime},</if>
             <if test="pid != null">pid = #{pid},</if>
             <if test="guid != null">guid = #{guid},</if>
+            <if test="hetype != null">hetype = #{hetype},</if>
         </trim>
         where id = #{id}
     </update>
@@ -118,7 +125,7 @@
     <update id="deleteHeLibraryAssortById" parameterType="Long">
         update he_library_assort
         <trim prefix="SET" suffixOverrides=",">
-            <if test="delFlag != null and delFlag != ''">del_flag = 1,</if>
+           del_flag = 1
         </trim>
         where id = #{id}
     </update>
@@ -129,4 +136,4 @@
             #{id}
         </foreach>
     </delete>
-</mapper>
\ No newline at end of file
+</mapper>

--
Gitblit v1.9.3