|  |  | 
 |  |  |         <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, | 
 |  |  | 
 |  |  |             <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> | 
 |  |  |  | 
 |  |  | 
 |  |  |             <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> | 
 |  |  | 
 |  |  |             <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> | 
 |  |  |  | 
 |  |  | 
 |  |  |             <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> |