| | |
| | | <result property="prologue" column="prologue"/> |
| | | <result property="instruction" column="instruction"/> |
| | | <result property="conclusion" column="conclusion"/> |
| | | <result property="deptCode" column="dept_code"/> |
| | | <result property="longTemp" column="long_temp"/> |
| | | <result property="sendDay" column="send_day"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectSvyTaskTemplateVo"> |
| | | select id, |
| | | templateid, |
| | | prologue, |
| | | dept_code, |
| | | long_temp, |
| | | send_day, |
| | | instruction, |
| | | conclusion, |
| | | categoryid, |
| | |
| | | resultMap="SvyTaskTemplateResult"> |
| | | <include refid="selectSvyTaskTemplateVo"/> |
| | | <where> |
| | | del_flag=0 |
| | | <if test="templateid != null ">and templateid = #{templateid}</if> |
| | | <if test="categoryid != null ">and categoryid = #{categoryid}</if> |
| | | <if test="svycode != null and svycode != ''">and svycode = #{svycode}</if> |
| | |
| | | <if test="valueType != null and valueType != ''">and value_type = #{valueType}</if> |
| | | <if test="reply != null and reply != ''">and reply = #{reply}</if> |
| | | <if test="taskid != null ">and taskid = #{taskid}</if> |
| | | <if test="deptCode != null ">and dept_code = #{deptCode}</if> |
| | | <if test="longTemp != null ">and long_temp = #{longTemp}</if> |
| | | <if test="sendDay != null ">and send_day = #{sendDay}</if> |
| | | </where> |
| | | </select> |
| | | |
| | |
| | | <if test="prologue != null">prologue,</if> |
| | | <if test="instruction != null">instruction,</if> |
| | | <if test="conclusion != null">conclusion,</if> |
| | | <if test="deptCode != null ">dept_code,</if> |
| | | <if test="longTemp != null ">long_temp,</if> |
| | | <if test="sendDay != null ">send_day,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="templateid != null">#{templateid},</if> |
| | |
| | | <if test="prologue != null">#{prologue},</if> |
| | | <if test="instruction != null">#{instruction},</if> |
| | | <if test="conclusion != null">#{conclusion},</if> |
| | | <if test="deptCode != null ">#{deptCode},</if> |
| | | <if test="longTemp != null ">#{longTemp},</if> |
| | | <if test="sendDay != null ">#{sendDay},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="prologue != null">prologue = #{prologue},</if> |
| | | <if test="instruction != null">instruction = #{instruction},</if> |
| | | <if test="conclusion != null">conclusion = #{conclusion},</if> |
| | | <if test="deptCode != null ">dept_code = #{deptCode},</if> |
| | | <if test="longTemp != null ">long_temp = #{longTemp},</if> |
| | | <if test="sendDay != null ">send_day = #{sendDay},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |