| | |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTopicVo"> |
| | | select topicid, oldid, svyid, topictype, topiccode, topic, sort, ismandatory, ishide, del_flag, orgid, create_by, create_time, update_by, update_time, isupload, upload_time,tag from svy_lib_topic |
| | | select topicid, |
| | | oldid, |
| | | svyid, |
| | | topictype, |
| | | topiccode, |
| | | topic, |
| | | sort, |
| | | ismandatory, |
| | | ishide, |
| | | del_flag, |
| | | orgid, |
| | | create_by, |
| | | create_time, |
| | | update_by, |
| | | update_time, |
| | | isupload, |
| | | upload_time, |
| | | tag, |
| | | svy_topicid as svyTopicId |
| | | from svy_lib_topic |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibTopicList" parameterType="com.smartor.domain.SvyLibTopic" resultMap="SvyLibTopicResult"> |
| | |
| | | <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="svyid != null and svyid != ''">and svyid = #{svyid}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | where topicid = #{topicid} |
| | | </select> |
| | | |
| | | <insert id="insertSvyLibTopic" parameterType="com.smartor.domain.SvyLibTopic" useGeneratedKeys="true" keyProperty="topicid"> |
| | | <insert id="insertSvyLibTopic" parameterType="com.smartor.domain.SvyLibTopic" useGeneratedKeys="true" |
| | | keyProperty="topicid"> |
| | | insert into svy_lib_topic |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="oldid != null">oldid,</if> |
| | |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="tag != null">tag,</if> |
| | | <if test="svyTopicId != null">svy_topicid,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="oldid != null">#{oldid},</if> |
| | |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="tag != null">#{tag},</if> |
| | | <if test="svyTopicId != null">#{svyTopicId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | </update> |
| | | |
| | | <delete id="deleteSvyLibTopicByTopicid" parameterType="Long"> |
| | | delete from svy_lib_topic where topicid = #{topicid} |
| | | delete |
| | | from svy_lib_topic |
| | | where topicid = #{topicid} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyLibTopicByTopicids" parameterType="String"> |