| | |
| | | <result property="scoretype" column="scoretype" /> |
| | | <result property="score" column="score" /> |
| | | <result property="showtype" column="showtype" /> |
| | | <result property="picturePath" column="picture_path" /> |
| | | <result property="scriptPicture" column="script_picture" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskScriptVo"> |
| | | select id, script_type, script_code, script, tag, sort, ismandatory, ishide, del_flag, orgid, create_by, create_time, update_by, update_time, isupload, upload_time, answer, pid, guid, taskid, optiondesc, nexttopicid, nexttopicsort, scoretype, score, showtype, picture_path from svy_task_script |
| | | select id, script_type, script_code, script, tag, sort, ismandatory, ishide, del_flag, orgid, create_by, create_time, update_by, update_time, isupload, upload_time, answer, pid, guid, taskid, optiondesc, nexttopicid, nexttopicsort, scoretype, score, showtype, script_picture from svy_task_script |
| | | </sql> |
| | | |
| | | <select id="selectSvyTaskScriptList" parameterType="com.smartor.domain.SvyTaskScript" resultMap="SvyTaskScriptResult"> |
| | |
| | | <if test="scoretype != null">scoretype,</if> |
| | | <if test="score != null">score,</if> |
| | | <if test="showtype != null">showtype,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | <if test="scriptPicture != null">script_picture,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="scriptType != null">#{scriptType},</if> |
| | |
| | | <if test="scoretype != null">#{scoretype},</if> |
| | | <if test="score != null">#{score},</if> |
| | | <if test="showtype != null">#{showtype},</if> |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | <if test="scriptPicture != null">#{scriptPicture},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="score != null">score = #{score},</if> |
| | | <if test="showtype != null">showtype = #{showtype},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | <if test="scriptPicture != null">script_picture = #{scriptPicture},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |