| | |
| | | <resultMap type="com.smartor.domain.ServiceSubtaskRecord" id="ServiceSubtaskRecordResult"> |
| | | <result property="id" column="id"/> |
| | | <result property="taskid" column="taskid"/> |
| | | <result property="subtaskId" column="subtask_id"/> |
| | | <result property="uuid" column="uuid"/> |
| | | <result property="tasktype" column="tasktype"/> |
| | | <result property="preachform" column="preachform"/> |
| | |
| | | <sql id="selectServiceSubtaskRecordVo"> |
| | | select id, |
| | | taskid, |
| | | subtask_id, |
| | | uuid, |
| | | tasktype, |
| | | preachform, |
| | |
| | | <include refid="selectServiceSubtaskRecordVo"/> |
| | | <where> |
| | | <if test="taskid != null and taskid != ''">and taskid = #{taskid}</if> |
| | | <if test="subtaskId != null ">and subtask_id = #{subtaskId}</if> |
| | | <if test="uuid != null and uuid != ''">and uuid = #{uuid}</if> |
| | | <if test="tasktype != null and tasktype != ''">and tasktype = #{tasktype}</if> |
| | | <if test="preachform != null and preachform != ''">and preachform = #{preachform}</if> |
| | |
| | | <if test="pid != null">pid,</if> |
| | | <if test="guid != null">guid,</if> |
| | | <if test="remark != null">remark,</if> |
| | | <if test="subtaskId != null ">subtask_id,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | |
| | | <if test="pid != null">#{pid},</if> |
| | | <if test="guid != null">#{guid},</if> |
| | | <if test="remark != null">#{remark},</if> |
| | | <if test="subtaskId != null ">#{subtaskId},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="pid != null">pid = #{pid},</if> |
| | | <if test="guid != null">guid = #{guid},</if> |
| | | <if test="remark != null">remark = #{remark},</if> |
| | | <if test="subtaskId != null ">subtask_id = #{subtaskId},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |