| | |
| | | <result property="answerps" column="answerps"/> |
| | | <result property="comment" column="comment"/> |
| | | <result property="patid" column="patid"/> |
| | | <result property="extemplateText" column="extemplate_text"/> |
| | | </resultMap> |
| | | |
| | | <sql id="selectServiceSubtaskDetailVo"> |
| | |
| | | sub_id, |
| | | answerps, |
| | | scriptid, |
| | | extemplate_text, |
| | | comment, |
| | | patid, |
| | | taskid, |
| | |
| | | <include refid="selectServiceSubtaskDetailVo"/> |
| | | <where> |
| | | <if test="subId != null">and sub_id = #{subId}</if> |
| | | <if test="extemplateText != null">and extemplate_text = #{extemplateText}</if> |
| | | <if test="taskid != null">and taskid = #{taskid}</if> |
| | | <if test="uuid != null and uuid != ''">and uuid = #{uuid}</if> |
| | | <if test="phone != null and phone != ''">and phone = #{phone}</if> |
| | |
| | | <if test="comment != null and comment != ''">comment,</if> |
| | | <if test="scriptid != null ">scriptid,</if> |
| | | <if test=" patid != null">patid,</if> |
| | | <if test=" extemplateText != null">extemplate_text,</if> |
| | | </trim> |
| | | <trim prefix="values (" suffix=")" suffixOverrides=","> |
| | | <if test="id != null">#{id},</if> |
| | |
| | | <if test="comment != null and comment != ''">#{comment},</if> |
| | | <if test="scriptid != null ">#{scriptid},</if> |
| | | <if test=" patid != null">#{patid},</if> |
| | | <if test=" extemplateText != null">#{extemplateText},</if> |
| | | </trim> |
| | | </insert> |
| | | |
| | |
| | | <if test="comment != null and comment != ''">comment = #{comment},</if> |
| | | <if test="scriptid != null ">scriptid = #{scriptid},</if> |
| | | <if test=" patid != null">patid = #{patid},</if> |
| | | <if test=" extemplateText != null">extemplate_text = #{extemplateText},</if> |
| | | </trim> |
| | | where id = #{id} |
| | | </update> |
| | |
| | | <if test="comment != null and comment != ''">comment = #{comment},</if> |
| | | <if test="scriptid != null ">scriptid = #{scriptid},</if> |
| | | <if test=" patid != null">patid = #{patid},</if> |
| | | <if test=" extemplateText != null">extemplate_text = #{extemplateText},</if> |
| | | </trim> |
| | | where patid = #{patid} and scriptid = #{scriptid} and sub_id = #{subId} |
| | | </update> |