| | |
| | | <result property="targetname" column="targetname"/> |
| | | <result property="targettype" column="targettype"/> |
| | | <result property="targetoptions" column="targetoptions"/> |
| | | <result property="prompt" column="prompt"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyLibTemplateScriptVo"> |
| | |
| | | script_type, |
| | | targetid, |
| | | targetname, |
| | | score, |
| | | prompt, |
| | | targettype, |
| | | targetoptions, |
| | | scriptid, |
| | |
| | | suitway, |
| | | script_picture, |
| | | script_topic, |
| | | isavailable, language, otherdata, value_type, reply, scoretype, score |
| | | isavailable, language, otherdata, value_type, reply, scoretype |
| | | from svy_lib_template_script |
| | | </sql> |
| | | |
| | |
| | | <if test="uploadTime != null ">and upload_time = #{uploadTime}</if> |
| | | <if test="pid != null ">and pid = #{pid}</if> |
| | | <if test="guid != null and guid != ''">and guid = #{guid}</if> |
| | | <if test="prompt != null and prompt != ''">and prompt = #{prompt}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="scriptContent != null and scriptContent != ''">and script_content = #{scriptContent}</if> |
| | | <if test="suitway != null and suitway != ''">and suitway = #{suitway}</if> |
| | |
| | | <if test="valueType != null and valueType != ''">and value_type = #{valueType}</if> |
| | | <if test="reply != null and reply != ''">and reply = #{reply}</if> |
| | | <if test="scoretype != null and scoretype != ''">and scoretype = #{scoretype}</if> |
| | | <if test="score != null and score != ''">and score = #{score}</if> |
| | | <if test="scriptTopic != null and scriptTopic != ''">and script_topic = #{scriptTopic}</if> |
| | | <if test="svyid != null ">and svyid = #{svyid}</if> |
| | | <if test="branchFlag != null and branchFlag != ''">and branch_flag = #{branchFlag}</if> |
| | |
| | | <if test="targetname != null and targetname != ''">and targetname = #{targetname}</if> |
| | | <if test="targettype != null and targettype != ''">and targettype = #{targettype}</if> |
| | | <if test="targetoptions != null and targetoptions != ''">and targetoptions = #{targetoptions}</if> |
| | | <if test="score != null">and score = #{score}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="targetname != null and targetname != ''">targetname,</if> |
| | | <if test="targettype != null and targettype != ''">targettype,</if> |
| | | <if test="targetoptions != null and targetoptions != ''">targetoptions,</if> |
| | | <if test="prompt != null and prompt != ''">prompt,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="nextScriptno != null">#{nextScriptno},</if> |
| | |
| | | <if test="targetname != null and targetname != ''">#{targetname},</if> |
| | | <if test="targettype != null and targettype != ''">#{targettype},</if> |
| | | <if test="targetoptions != null and targetoptions != ''">#{targetoptions},</if> |
| | | <if test="prompt != null and prompt != ''">#{prompt},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="targetname != null and targetname != ''">targetname = #{targetname},</if> |
| | | <if test="targettype != null and targettype != ''">targettype = #{targettype},</if> |
| | | <if test="targetoptions != null and targetoptions != ''">targetoptions = #{targetoptions},</if> |
| | | <if test="prompt != null and prompt != ''">prompt = #{prompt},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |