| | |
| | | <result property="questionResult" column="question_result" /> |
| | | <result property="otherdata" column="otherdata" /> |
| | | <result property="picturePath" column="picture_path" /> |
| | | <result property="sort" column="sort" /> |
| | | <result property="topic" column="topic" /> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskTemplateScriptVo"> |
| | | select ID, taskid, templateQuestionNum, templateID, scriptID, questiontitle, language, categoryName, questionPoint, questionText, questionVoice, noMatchText, noMatchVoice, slienceText, slienceVoice, submoduleText, submoduleVoice, noClearlyText, noClearlyVoice, is_must, playWavOnly, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, value_type, targetOptions, targettype, targetid, targetvalue, next_question, question_result, otherdata, picture_path from svy_task_template_script |
| | | select ID,sort,topic, taskid, templateQuestionNum, templateID, scriptID, questiontitle, language, categoryName, questionPoint, questionText, questionVoice, noMatchText, noMatchVoice, slienceText, slienceVoice, submoduleText, submoduleVoice, noClearlyText, noClearlyVoice, is_must, playWavOnly, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, value_type, targetOptions, targettype, targetid, targetvalue, next_question, question_result, otherdata, picture_path from svy_task_template_script |
| | | </sql> |
| | | |
| | | <select id="selectSvyTaskTemplateScriptList" parameterType="com.smartor.domain.SvyTaskTemplateScript" resultMap="SvyTaskTemplateScriptResult"> |
| | |
| | | <if test="questionResult != null and questionResult != ''"> and question_result = #{questionResult}</if> |
| | | <if test="otherdata != null and otherdata != ''"> and otherdata = #{otherdata}</if> |
| | | <if test="picturePath != null and picturePath != ''"> and picture_path = #{picturePath}</if> |
| | | <if test="topic != null and topic != ''"> and topic = #{topic}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="questionResult != null">question_result,</if> |
| | | <if test="otherdata != null">otherdata,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | <if test="sort != null">sort,</if> |
| | | <if test="topic != null">topic,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="questionResult != null">#{questionResult},</if> |
| | | <if test="otherdata != null">#{otherdata},</if> |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | <if test="sort != null">#{sort},</if> |
| | | <if test="topic != null">#{topic},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="questionResult != null">question_result = #{questionResult},</if> |
| | | <if test="otherdata != null">otherdata = #{otherdata},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | <if test="sort != null">sort = #{sort},</if> |
| | | <if test="topic != null">topic = #{topic},</if> |
| | | </trim> |
| | | where ID = #{ID} |
| | | </update> |