select id, detail_id, template_type, sub_id, taskid, templateid, templatequestionnum, switchid, questiontext, questionvoice, categoryname, targetid, targetvalue, matchedtext, uuid, guid, value_type, scriptid, answerps, comment, asrtext, recordpath, recordurl, patid, patdesc, todeptid, todeptcode, todeptname, handleresult, handledesc, handle_flag, handle_by, handle_time, ccdepts, finaloption, finaltime, operate, orgid, isupload, upload_time, create_time, del_flag, update_by, update_time, create_by, pguid, type, pid, categoryid from service_subtask_detail_trace insert into service_subtask_detail_trace detail_id, sub_id, taskid, templateid, templatequestionnum, switchid, questiontext, questionvoice, categoryname, targetid, targetvalue, matchedtext, uuid, guid, value_type, scriptid, answerps, comment, asrtext, recordpath, recordurl, patid, patdesc, todeptid, todeptcode, todeptname, handleresult, handledesc, handle_flag, handle_by, handle_time, ccdepts, finaloption, finaltime, operate, orgid, isupload, upload_time, create_time, del_flag, update_by, update_time, create_by, pguid, pid, categoryid, type, template_type, #{detailId}, #{subId}, #{taskid}, #{templateid}, #{templatequestionnum}, #{switchid}, #{questiontext}, #{questionvoice}, #{categoryname}, #{targetid}, #{targetvalue}, #{matchedtext}, #{uuid}, #{guid}, #{valueType}, #{scriptid}, #{answerps}, #{comment}, #{asrtext}, #{recordpath}, #{recordurl}, #{patid}, #{patdesc}, #{todeptid}, #{todeptcode}, #{todeptname}, #{handleresult}, #{handledesc}, #{handleFlag}, #{handleBy}, #{handleTime}, #{ccdepts}, #{finaloption}, #{finaltime}, #{operate}, #{orgid}, #{isupload}, #{uploadTime}, #{createTime}, #{delFlag}, #{updateBy}, #{updateTime}, #{createBy}, #{pguid}, #{pid}, #{categoryid}, #{type}, #{templateType}, update service_subtask_detail_trace detail_id = #{detailId}, sub_id = #{subId}, taskid = #{taskid}, templateid = #{templateid}, templatequestionnum = #{templatequestionnum}, switchid = #{switchid}, questiontext = #{questiontext}, questionvoice = #{questionvoice}, categoryname = #{categoryname}, targetid = #{targetid}, targetvalue = #{targetvalue}, matchedtext = #{matchedtext}, uuid = #{uuid}, guid = #{guid}, value_type = #{valueType}, scriptid = #{scriptid}, answerps = #{answerps}, comment = #{comment}, asrtext = #{asrtext}, recordpath = #{recordpath}, recordurl = #{recordurl}, patid = #{patid}, patdesc = #{patdesc}, todeptid = #{todeptid}, todeptcode = #{todeptcode}, todeptname = #{todeptname}, handleresult = #{handleresult}, handledesc = #{handledesc}, handle_flag = #{handleFlag}, handle_by = #{handleBy}, handle_time = #{handleTime}, ccdepts = #{ccdepts}, finaloption = #{finaloption}, finaltime = #{finaltime}, operate = #{operate}, orgid = #{orgid}, isupload = #{isupload}, upload_time = #{uploadTime}, create_time = #{createTime}, del_flag = #{delFlag}, update_by = #{updateBy}, update_time = #{updateTime}, create_by = #{createBy}, pguid = #{pguid}, pid = #{pid}, categoryid = #{categoryid}, type = #{type}, template_type = #{templateType}, where id = #{id} update service_subtask_detail_trace del_flag =1 where id = #{id} update service_subtask_detail_trace del_flag =1 where id in #{id}