| | |
| | | where id = #{id} |
| | | </update> |
| | | |
| | | |
| | | <update id="updateSSDByCondition" parameterType="com.smartor.domain.ServiceSubtaskDetail"> |
| | | update service_subtask_detail |
| | | <trim prefix="SET" suffixOverrides=","> |
| | | <if test="subId != null">sub_id = #{subId},</if> |
| | | <if test="taskid != null">taskid = #{taskid},</if> |
| | | <if test="uuid != null">uuid = #{uuid},</if> |
| | | <if test="phone != null">phone = #{phone},</if> |
| | | <if test="operate != null">operate = #{operate},</if> |
| | | <if test="displayno != null">displayno = #{displayno},</if> |
| | | <if test="inbound != null">inbound = #{inbound},</if> |
| | | <if test="incoming != null">incoming = #{incoming},</if> |
| | | <if test="assigntime != null">assigntime = #{assigntime},</if> |
| | | <if test="starttime != null">starttime = #{starttime},</if> |
| | | <if test="answertime != null">answertime = #{answertime},</if> |
| | | <if test="silent != null">silent = #{silent},</if> |
| | | <if test="dtmfKey != null">dtmf_key = #{dtmfKey},</if> |
| | | <if test="musicpath != null">musicpath = #{musicpath},</if> |
| | | <if test="sentIndex != null">sent_index = #{sentIndex},</if> |
| | | <if test="sentBegin != null">sent_begin = #{sentBegin},</if> |
| | | <if test="asrtext != null">asrtext = #{asrtext},</if> |
| | | <if test="beginTime != null">begin_time = #{beginTime},</if> |
| | | <if test="endTime != null">end_time = #{endTime},</if> |
| | | <if test="sentEnd != null">sent_end = #{sentEnd},</if> |
| | | <if test="recordpath != null">recordpath = #{recordpath},</if> |
| | | <if test="recordurl != null">recordurl = #{recordurl},</if> |
| | | <if test="templateid != null">templateid = #{templateid},</if> |
| | | <if test="templatequestionnum != null">templatequestionnum = #{templatequestionnum},</if> |
| | | <if test="switchid != null">switchid = #{switchid},</if> |
| | | <if test="questiontext != null">questiontext = #{questiontext},</if> |
| | | <if test="questionvoice != null">questionvoice = #{questionvoice},</if> |
| | | <if test="categoryname != null">categoryname = #{categoryname},</if> |
| | | <if test="targetoptions != null">targetoptions = #{targetoptions},</if> |
| | | <if test="targetvalue != null">targetvalue = #{targetvalue},</if> |
| | | <if test="matchedtext != null">matchedtext = #{matchedtext},</if> |
| | | <if test="addtime != null">addtime = #{addtime},</if> |
| | | <if test="isupload != null">isupload = #{isupload},</if> |
| | | <if test="uploadTime != null">upload_time = #{uploadTime},</if> |
| | | <if test="orgid != null">orgid = #{orgid},</if> |
| | | <if test="createTime != null">create_time = #{createTime},</if> |
| | | <if test="delFlag != null and delFlag != ''">del_flag = #{delFlag},</if> |
| | | <if test="updateBy != null">update_by = #{updateBy},</if> |
| | | <if test="updateTime != null">update_time = #{updateTime},</if> |
| | | <if test="createBy != null">create_by = #{createBy},</if> |
| | | <if test="valueType != null">value_type = #{valueType},</if> |
| | | <if test="answerps != null and answerps != ''">answerps = #{answerps},</if> |
| | | <if test="comment != null and comment != ''">comment = #{comment},</if> |
| | | <if test="scriptid != null ">scriptid = #{scriptid},</if> |
| | | <if test=" patid != null">patid = #{patid},</if> |
| | | </trim> |
| | | where patid = #{patid} and scriptid = #{scriptid} and sub_id = #{subId} |
| | | </update> |
| | | |
| | | <delete id="deleteServiceSubtaskDetailByCalldetailid" parameterType="String"> |
| | | delete |
| | | from service_subtask_detail |