| | |
| | | <result property="prompt" column="prompt"/> |
| | | <result property="sendTaskid" column="send_taskid"/> |
| | | <result property="sendTaskname" column="send_taskname"/> |
| | | <result property="defaultValue" column="default_value"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskTemplateTargetoptionVo"> |
| | |
| | | categoryName, |
| | | targetvalue, |
| | | targetregex2, |
| | | default_value, |
| | | targetregex, |
| | | optioncontent, language, version, groupid, isabnormal, warnup, warndown, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, scriptid, nodynamiccruxs, dynamiccruxs, next_question, picture_path |
| | | from svy_task_template_targetoption |
| | |
| | | '%') |
| | | </if> |
| | | <if test="targetvalue != null and targetvalue != ''">and targetvalue = #{targetvalue}</if> |
| | | <if test="defaultValue != null">and default_value = #{defaultValue}</if> |
| | | <if test="targetregex2 != null and targetregex2 != ''">and targetregex2 = #{targetregex2}</if> |
| | | <if test="targetregex != null and targetregex != ''">and targetregex = #{targetregex}</if> |
| | | <if test="optioncontent != null and optioncontent != ''">and optioncontent = #{optioncontent}</if> |
| | |
| | | <if test="prompt != null">prompt,</if> |
| | | <if test="sendTaskid != null">send_taskid,</if> |
| | | <if test="sendTaskname != null">send_taskname,</if> |
| | | <if test="defaultValue != null">default_value,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="prompt != null">#{prompt},</if> |
| | | <if test="sendTaskid != null">#{sendTaskid},</if> |
| | | <if test="sendTaskname != null">#{sendTaskname}</if> |
| | | <if test="defaultValue != null">#{defaultValue}</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="prompt != null">score = #{prompt},</if> |
| | | <if test="sendTaskid != null">send_taskid= #{sendTaskid},</if> |
| | | <if test="sendTaskname != null">send_taskname = #{sendTaskname},</if> |
| | | <if test="defaultValue != null">default_value = #{defaultValue},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |