| | |
| | | <result property="appendflag" column="appendflag"/> |
| | | <result property="appenddesc" column="appenddesc"/> |
| | | <result property="guid" column="guid"/> |
| | | <result property="defaultValue" column="default_value"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibScriptOptionVo"> |
| | | select id, |
| | | topicid, |
| | | svyid, |
| | | default_value, |
| | | guid, |
| | | picture_path, |
| | | appendflag, |
| | |
| | | <if test="appenddesc != null">and appenddesc = #{appenddesc}</if> |
| | | <if test="picturePath != null">and picture_path = #{picturePath}</if> |
| | | <if test="isException != null">and is_exception = #{isException}</if> |
| | | <if test="defaultValue != null">and default_value = #{defaultValue}</if> |
| | | </select> |
| | | |
| | | <select id="selectSvyLibScriptOptionByOptionid" parameterType="Long" resultMap="SvyLibScriptOptionResult"> |
| | |
| | | <if test="picturePath != null">picture_path,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="isException != null">is_exception,</if> |
| | | <if test="defaultValue != null">default_value,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="topicid != null">#{topicid},</if> |
| | |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="isException != null">#{isException},</if> |
| | | <if test="defaultValue != null">#{defaultValue},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="appenddesc != null">appenddesc = #{appenddesc},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | <if test="isException != null">is_exception = #{isException},</if> |
| | | <if test="defaultValue != null">default_value = #{defaultValue},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |