| | |
| | | <resultMap type="com.smartor.domain.SvyLibScriptOption" id="SvyLibScriptOptionResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="topicid" column="topicid"/> |
| | | <result property="picturePath" column="picture_path"/> |
| | | <result property="svyid" column="svyid"/> |
| | | <result property="topictype" column="topictype"/> |
| | | <result property="optioncode" column="optioncode"/> |
| | |
| | | <result property="updateTime" column="update_time"/> |
| | | <result property="isupload" column="isupload"/> |
| | | <result property="uploadTime" column="upload_time"/> |
| | | <result property="appendflag" column="appendflag"/> |
| | | <result property="appenddesc" column="appenddesc"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibScriptOptionVo"> |
| | | select id, |
| | | topicid, |
| | | svyid, |
| | | picture_path, |
| | | appendflag, |
| | | appenddesc, |
| | | topictype, |
| | | optioncode, |
| | | optioncontent, |
| | |
| | | <if test="oldid != null ">and oldid = #{oldid}</if> |
| | | <if test="isupload != null ">and isupload = #{isupload}</if> |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="appendflag != null">and appendflag = #{appendflag}</if> |
| | | <if test="appenddesc != null">and appenddesc = #{appenddesc}</if> |
| | | <if test="picturePath != null">and picture_path = #{picturePath}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="updateTime != null">update_time,</if> |
| | | <if test="isupload != null">isupload,</if> |
| | | <if test="uploadTime != null">upload_time,</if> |
| | | <if test="appendflag != null">appendflag,</if> |
| | | <if test="appenddesc != null">appenddesc,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="topicid != null">#{topicid},</if> |
| | |
| | | <if test="updateTime != null">#{updateTime},</if> |
| | | <if test="isupload != null">#{isupload},</if> |
| | | <if test="uploadTime != null">#{uploadTime},</if> |
| | | <if test="appendflag != null">#{appendflag},</if> |
| | | <if test="appenddesc != null">#{appenddesc},</if> |
| | | <if test="picturePath != null">#{picturePath},</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="appendflag != null">appendflag = #{appendflag},</if> |
| | | <if test="appenddesc != null">appenddesc = #{appenddesc},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <update id="deleteSvyLibScriptOptionByOptionid" parameterType="Long"> |
| | | update svy_lib_ScriptOption |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | del_flag = 1 |
| | | del_flag = 1 |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | #{id} |
| | | </foreach> |
| | | </delete> |
| | | |
| | | |
| | | </mapper> |