select id, sendname, patid, phone, sex, age, sfzh, addr, senderdetail, type, taskid, templateid, templatename, senddate, sendlimitabegin, sendlimitaend, sendlimitpbegin, sendlimitpend, sendlimitnbegin, sendlimitnend, sendstate, senduuid, result, finishtime, userid, username, outbounduuid, recordid, recallcount, exrecallcount, pulltime, bqsms, bhsms, deptcode, labelstatus, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, text_param, serviceform, bad_no, icd_name, medical_record_no, preachcontent, send_type, send_time_slot, task_name, task_desc, operator, operator_no, hospno, hosp_type, wechat, diagname, deptname, admindate, roomno, bedno from svy_task_single insert into svy_task_single sendname, phone, sex, age, sfzh, addr, senderdetail, type, taskid, templateid, templatename, senddate, sendlimitabegin, sendlimitaend, sendlimitpbegin, sendlimitpend, sendlimitnbegin, sendlimitnend, sendstate, senduuid, result, finishtime, userid, username, outbounduuid, recordid, recallcount, exrecallcount, pulltime, bqsms, bhsms, deptcode, labelstatus, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, text_param, serviceform, bad_no, icd_name, medical_record_no, preachcontent, send_type, send_time_slot, task_name, task_desc, operator, operator_no, hospno, hosp_type, wechat, diagname, deptname, admindate, roomno, bedno, patid, #{sendname}, #{phone}, #{sex}, #{age}, #{sfzh}, #{addr}, #{senderdetail}, #{type}, #{taskid}, #{templateid}, #{templatename}, #{senddate}, #{sendlimitabegin}, #{sendlimitaend}, #{sendlimitpbegin}, #{sendlimitpend}, #{sendlimitnbegin}, #{sendlimitnend}, #{sendstate}, #{senduuid}, #{result}, #{finishtime}, #{userid}, #{username}, #{outbounduuid}, #{recordid}, #{recallcount}, #{exrecallcount}, #{pulltime}, #{bqsms}, #{bhsms}, #{deptcode}, #{labelstatus}, #{delFlag}, #{updateBy}, #{updateTime}, #{createBy}, #{createTime}, #{isupload}, #{uploadTime}, #{orgid}, #{pid}, #{guid}, #{textParam}, #{serviceform}, #{badNo}, #{icdName}, #{medicalRecordNo}, #{preachcontent}, #{sendType}, #{sendTimeSlot}, #{taskName}, #{taskDesc}, #{operator}, #{operatorNo}, #{hospno}, #{hospType}, #{wechat}, #{diagname}, #{deptname}, #{admindate}, #{roomno}, #{bedno}, #{patid}, update svy_task_single sendname = #{sendname}, phone = #{phone}, sex = #{sex}, age = #{age}, sfzh = #{sfzh}, addr = #{addr}, senderdetail = #{senderdetail}, type = #{type}, taskid = #{taskid}, templateid = #{templateid}, templatename = #{templatename}, senddate = #{senddate}, sendlimitabegin = #{sendlimitabegin}, sendlimitaend = #{sendlimitaend}, sendlimitpbegin = #{sendlimitpbegin}, sendlimitpend = #{sendlimitpend}, sendlimitnbegin = #{sendlimitnbegin}, sendlimitnend = #{sendlimitnend}, sendstate = #{sendstate}, senduuid = #{senduuid}, result = #{result}, finishtime = #{finishtime}, userid = #{userid}, username = #{username}, outbounduuid = #{outbounduuid}, recordid = #{recordid}, recallcount = #{recallcount}, exrecallcount = #{exrecallcount}, pulltime = #{pulltime}, bqsms = #{bqsms}, bhsms = #{bhsms}, deptcode = #{deptcode}, labelstatus = #{labelstatus}, del_flag = #{delFlag}, update_by = #{updateBy}, update_time = #{updateTime}, create_by = #{createBy}, create_time = #{createTime}, isupload = #{isupload}, upload_time = #{uploadTime}, orgid = #{orgid}, pid = #{pid}, guid = #{guid}, text_param = #{textParam}, serviceform = #{serviceform}, bad_no = #{badNo}, icd_name = #{icdName}, medical_record_no = #{medicalRecordNo}, preachcontent = #{preachcontent}, send_type = #{sendType}, send_time_slot = #{sendTimeSlot}, task_name = #{taskName}, task_desc = #{taskDesc}, operator = #{operator}, operator_no = #{operatorNo}, hospno = #{hospno}, hosp_type = #{hospType}, wechat = #{wechat}, diagname = #{diagname}, deptname = #{deptname}, admindate = #{admindate}, roomno = #{roomno}, bedno = #{bedno}, patid = #{patid}, where patid = #{patid} and taskid = #{taskid} delete from svy_task_single where id = #{id} delete from svy_task_single where id in #{id} update svy_task_single del_flag =1 where patid = #{patid} and taskid = #{taskid}