| | |
| | | <result property="dynamiccruxsJson" column="dynamiccruxs" /> |
| | | <result property="nextQuestion" column="next_question" /> |
| | | <result property="picturePath" column="picture_path" /> |
| | | <result property="optionCode" column="option_code"/> |
| | | <result property="appendflag" column="appendflag"/> |
| | | <result property="appenddesc" column="appenddesc"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskTemplateTargetoptionVo"> |
| | | select id, taskid, templateID, targetid, targetname, targettype, categoryName, targetvalue, targetregex2, 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 |
| | | select id, |
| | | option_code, |
| | | appendflag, |
| | | appenddesc, |
| | | taskid, |
| | | templateID, |
| | | targetid, |
| | | targetname, |
| | | targettype, |
| | | categoryName, |
| | | targetvalue, |
| | | targetregex2, |
| | | 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 |
| | | </sql> |
| | | |
| | | <select id="selectSvyTaskTemplateTargetoptionList" parameterType="com.smartor.domain.SvyTaskTemplateTargetoption" resultMap="SvyTaskTemplateTargetoptionResult"> |
| | | <select id="selectSvyTaskTemplateTargetoptionList" parameterType="com.smartor.domain.SvyTaskTemplateTargetoption" |
| | | resultMap="SvyTaskTemplateTargetoptionResult"> |
| | | <include refid="selectSvyTaskTemplateTargetoptionVo"/> |
| | | <where> |
| | | <if test="taskid != null "> and taskid = #{taskid}</if> |
| | |
| | | <if test="targetid != null "> and targetid = #{targetid}</if> |
| | | <if test="targetname != null and targetname != ''"> and targetname like concat('%', #{targetname}, '%')</if> |
| | | <if test="targettype != null and targettype != ''"> and targettype = #{targettype}</if> |
| | | <if test="categoryName != null and categoryName != ''"> and categoryName like concat('%', #{categoryName}, '%')</if> |
| | | <if test="categoryName != null and categoryName != ''">and categoryName like concat('%', #{categoryName}, |
| | | '%') |
| | | </if> |
| | | <if test="targetvalue != null and targetvalue != ''"> and targetvalue = #{targetvalue}</if> |
| | | <if test="targetregex2 != null and targetregex2 != ''"> and targetregex2 = #{targetregex2}</if> |
| | | <if test="targetregex != null and targetregex != ''"> and targetregex = #{targetregex}</if> |
| | |
| | | <if test="dynamiccruxs != null and dynamiccruxs != ''"> and dynamiccruxs = #{dynamiccruxsJson}</if> |
| | | <if test="nextQuestion != null "> and next_question = #{nextQuestion}</if> |
| | | <if test="picturePath != null and picturePath != ''"> and picture_path = #{picturePath}</if> |
| | | <if test="optionCode != null">and option_code = #{optionCode}</if> |
| | | <if test="appendflag != null">and appendflag = #{appendflag}</if> |
| | | <if test="appenddesc != null">and appenddesc = #{appenddesc}</if> |
| | | </where> |
| | | </select> |
| | | |
| | | <select id="selectSvyTaskTemplateTargetoptionById" parameterType="Long" resultMap="SvyTaskTemplateTargetoptionResult"> |
| | | <select id="selectSvyTaskTemplateTargetoptionById" parameterType="Long" |
| | | resultMap="SvyTaskTemplateTargetoptionResult"> |
| | | <include refid="selectSvyTaskTemplateTargetoptionVo"/> |
| | | where id = #{id} |
| | | </select> |
| | | |
| | | <insert id="insertSvyTaskTemplateTargetoption" parameterType="com.smartor.domain.SvyTaskTemplateTargetoption" useGeneratedKeys="true" keyProperty="id"> |
| | | <insert id="insertSvyTaskTemplateTargetoption" parameterType="com.smartor.domain.SvyTaskTemplateTargetoption" |
| | | useGeneratedKeys="true" keyProperty="id"> |
| | | insert into svy_task_template_targetoption |
| | | <trim prefix="(" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">taskid,</if> |
| | |
| | | <if test="dynamiccruxs != null">dynamiccruxs,</if> |
| | | <if test="nextQuestion != null">next_question,</if> |
| | | <if test="picturePath != null">picture_path,</if> |
| | | <if test="optionCode != null">option_code,</if> |
| | | <if test="appendflag != null">appendflag,</if> |
| | | <if test="appenddesc != null">appenddesc,</if> |
| | | |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="taskid != null">#{taskid},</if> |
| | |
| | | <if test="dynamiccruxs != null">#{dynamiccruxsJson},</if> |
| | | <if test="nextQuestion != null">#{nextQuestion},</if> |
| | | <if test="picturePath != null">#{picturePath},</if> |
| | | <if test="optionCode != null">#{optionCode}</if> |
| | | <if test="appendflag != null">#{appendflag}</if> |
| | | <if test="appenddesc != null">#{appenddesc}</if> |
| | | |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="dynamiccruxs != null">dynamiccruxs = #{dynamiccruxsJson},</if> |
| | | <if test="nextQuestion != null">next_question = #{nextQuestion},</if> |
| | | <if test="picturePath != null">picture_path = #{picturePath},</if> |
| | | <if test="optionCode != null">option_code = #{optionCode},</if> |
| | | <if test="appendflag != null">appendflag = #{appendflag},</if> |
| | | <if test="appenddesc != null">appenddesc = #{appenddesc},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | <delete id="deleteSvyTaskTemplateTargetoptionById" parameterType="Long"> |
| | | delete from svy_task_template_targetoption where id = #{id} |
| | | delete |
| | | from svy_task_template_targetoption |
| | | where id = #{id} |
| | | </delete> |
| | | |
| | | <delete id="deleteSvyTaskTemplateTargetoptionByIds" parameterType="String"> |