liusheng
2025-03-28 d3b362de432a32c10ccd039dfc417d8c6233f543
smartor/src/main/resources/mapper/smartor/HeLibraryMapper.xml
@@ -39,6 +39,7 @@
        <result property="otherdata" column="otherdata"/>
        <result property="richText" column="rich_text"/>
        <result property="hetype" column="hetype"/>
        <result property="watchCount" column="watch_count"/>
        <result property="htmlRichText" column="html_rich_text"/>
    </resultMap>
@@ -46,6 +47,7 @@
        select id,
               classification,
               hetype,
               watch_count,
               html_rich_text,
               assortid,
               preachname,
@@ -108,6 +110,7 @@
            </if>
            <if test="pid != null ">and pid = #{pid}</if>
            <if test="guid != null  and guid != ''">and guid = #{guid}</if>
            <if test="watchCount != null  ">and watch_count = #{watchCount}</if>
            <if test="parameter != null  and parameter != ''">and parameter = #{parameter}</if>
            <if test="isavailable != null  and isavailable != ''">and isavailable = #{isavailable}</if>
            <if test="suitdisease != null  and suitdisease != ''">and suitdisease = #{suitdisease}</if>
@@ -162,6 +165,7 @@
            <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="watchCount != null">watch_count,</if>
            <if test="htmlRichText != null  and htmlRichText != ''">html_rich_text,</if>
        </trim>
        <trim prefix="values (" suffix=")" suffixOverrides=",">
@@ -198,6 +202,7 @@
            <if test="otherdata != null">#{otherdata},</if>
            <if test="richText != null  and richText != ''">#{richText},</if>
            <if test="hetype != null  and hetype != ''">#{hetype},</if>
            <if test="watchCount != null">#{watchCount},</if>
            <if test="htmlRichText != null  and htmlRichText != ''">#{htmlRichText},</if>
        </trim>
    </insert>
@@ -239,6 +244,7 @@
            <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>
            <if test="watchCount != null">watch_count=#{watchCount},</if>
        </trim>
        where id = #{id}
    </update>