| | |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="tag != null">tag,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="oldid != null">#{oldid},</if> |
| | |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="tag != null">#{tag},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | #{topicid} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | <select id="showTopic" resultType="com.smartor.domain.SvyLibTopicAndOptionRes" |
| | | parameterType="com.smartor.domain.SvyTopicReq"> |
| | | SELECT a.topicid, a.topiccode, a.topic, a.topictype, a.tag, b.optioncode, b.optioncontent |
| | | FROM svy_lib_topic a, |
| | | svy_lib_topicoption b |
| | | WHERE a.topicid = b.topicid |
| | | <if test="topic != null and topic != ''"> |
| | | and a.topic LIKE concat('%', #{topic}, '%') |
| | | </if> |
| | | <if test="topicType != null and topicType != ''"> |
| | | and a.topictype = #{topicType} |
| | | </if> |
| | | <if test="tag != null and tag != ''"> |
| | | and a.tag LIKE concat('%', #{tag}, '%') |
| | | </if> |
| | | GROUP BY a.topic, b.optioncode |
| | | </select> |
| | | </mapper> |