| | |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="tag" column="tag"/> |
| | | <result property="categoryid" column="categoryid"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTopicVo"> |
| | |
| | | isupload, |
| | | upload_time, |
| | | tag, |
| | | categoryid, |
| | | svy_topicid as svyTopicId |
| | | from svy_lib_topic |
| | | </sql> |
| | |
| | | <where> |
| | | <if test="oldid != null ">and oldid = #{oldid}</if> |
| | | <if test="topictype != null ">and topictype = #{topictype}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="topic != null and topic != ''">and topic = #{topic}</if> |
| | | <if test="ishide != null ">and ishide = #{ishide}</if> |
| | | <if test="orgid != null and orgid != ''">and orgid = #{orgid}</if> |
| | |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="tag != null">tag,</if> |
| | | <if test="svyTopicId != null">svy_topicid,</if> |
| | | <if test="categoryid != null">categoryid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="oldid != null">#{oldid},</if> |
| | |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="tag != null">#{tag},</if> |
| | | <if test="svyTopicId != null">#{svyTopicId},</if> |
| | | <if test="categoryid != null">#{categoryid},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="categoryid != null">categoryid = #{categoryid},</if> |
| | | </trim> |
| | | where topicid = #{topicid} |
| | | </update> |