| | |
| | | <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> |
| | | |
| | |
| | | select id, |
| | | classification, |
| | | hetype, |
| | | watch_count, |
| | | html_rich_text, |
| | | assortid, |
| | | preachname, |
| | |
| | | </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> |
| | |
| | | <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=","> |
| | |
| | | <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> |
| | |
| | | <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> |