| | |
| | | "http://mybatis.org/dtd/mybatis-3-mapper.dtd"> |
| | | <mapper namespace="com.smartor.mapper.SvyLibTopicoptionMapper"> |
| | | |
| | | <resultMap type="SvyLibTopicoption" id="SvyLibTopicoptionResult"> |
| | | <resultMap type="com.smartor.domain.SvyLibTopicoption" id="SvyLibTopicoptionResult"> |
| | | <result property="optionid" column="optionid"/> |
| | | <result property="topicid" column="topicid"/> |
| | | <result property="svyid" column="svyid"/> |
| | |
| | | from svy_lib_topicoption |
| | | </sql> |
| | | |
| | | <select id="selectSvyLibTopicoptionList" parameterType="SvyLibTopicoption" resultMap="SvyLibTopicoptionResult"> |
| | | <select id="selectSvyLibTopicoptionList" parameterType="com.smartor.domain.SvyLibTopicoption" resultMap="SvyLibTopicoptionResult"> |
| | | <include refid="selectSvyLibTopicoptionVo"/> |
| | | <where> |
| | | <if test="topicid != null ">and topicid = #{topicid}</if> |
| | |
| | | where optionid = #{optionid} |
| | | </select> |
| | | |
| | | <insert id="insertSvyLibTopicoption" parameterType="SvyLibTopicoption" useGeneratedKeys="true" |
| | | <insert id="insertSvyLibTopicoption" parameterType="com.smartor.domain.SvyLibTopicoption" useGeneratedKeys="true" |
| | | keyProperty="optionid"> |
| | | insert into svy_lib_topicoption |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | |
| | | </trim> |
| | | </insert> |
| | | |
| | | <update id="updateSvyLibTopicoption" parameterType="SvyLibTopicoption"> |
| | | <update id="updateSvyLibTopicoption" parameterType="com.smartor.domain.SvyLibTopicoption"> |
| | | update svy_lib_topicoption |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="topicid != null">topicid = #{topicid},</if> |