liusheng
2024-09-18 907641e56c2085aaa81f267946dc3e3e9fca73e7
smartor/src/main/resources/mapper/smartor/HeLibraryMapper.xml
@@ -37,11 +37,16 @@
        <result property="labelInfo" column="label_info"/>
        <result property="campus" column="campus"/>
        <result property="otherdata" column="otherdata"/>
        <result property="richText" column="rich_text"/>
        <result property="hetype" column="hetype"/>
        <result property="htmlRichText" column="html_rich_text"/>
    </resultMap>
    <sql id="selectHeLibraryVo">
        select id,
               classification,
               hetype,
               html_rich_text,
               assortid,
               preachname,
               version,
@@ -71,7 +76,8 @@
               dept_names,
               label_info,
               campus,
               otherdata
               otherdata,
               rich_text
        from he_library
    </sql>
@@ -109,6 +115,9 @@
            <if test="deptNames != null  and deptNames != ''">and dept_names = #{deptNames}</if>
            <if test="labelInfo != null  and labelInfo != ''">and label_info = #{labelInfo}</if>
            <if test="campus != null  and campus != ''">and campus = #{campus}</if>
            <if test="richText != null  and richText != ''">and rich_text = #{richText}</if>
            <if test="hetype != null  and hetype != ''">and hetype = #{hetype}</if>
            <if test="htmlRichText != null  and htmlRichText != ''">and html_rich_text = #{htmlRichText}</if>
        </where>
    </select>
@@ -151,6 +160,9 @@
            <if test="labelInfo != null">label_info,</if>
            <if test="campus != null">campus,</if>
            <if test="otherdata != null">otherdata,</if>
            <if test="richText != null  and richText != ''">rich_text,</if>
            <if test="hetype != null  and hetype != ''">hetype,</if>
            <if test="htmlRichText != null  and htmlRichText != ''">html_rich_text,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
            <if test="classification != null">#{classification},</if>
@@ -184,6 +196,9 @@
            <if test="labelInfo != null">#{labelInfo},</if>
            <if test="campus != null">#{campus},</if>
            <if test="otherdata != null">#{otherdata},</if>
            <if test="richText != null  and richText != ''">#{richText},</if>
            <if test="hetype != null  and hetype != ''">#{hetype},</if>
            <if test="htmlRichText != null  and htmlRichText != ''">#{htmlRichText},</if>
        </trim>
    </insert>
@@ -221,6 +236,9 @@
            <if test="labelInfo != null ">label_info = #{labelInfo},</if>
            <if test="campus != null">campus = #{campus},</if>
            <if test="otherdata != null">otherdata = #{otherdata},</if>
            <if test="richText != null  and richText != ''">rich_text = #{richText},</if>
            <if test="hetype != null  and hetype != ''">hetype = #{hetype},</if>
            <if test="htmlRichText != null  and htmlRichText != ''">html_rich_text = #{htmlRichText},</if>
        </trim>
        where id = #{id}
    </update>
@@ -239,4 +257,4 @@
            #{id}
        </foreach>
    </delete>
</mapper>
</mapper>