select id, hosp_type, openid, libtemplateid, libtemplatename, hospno, phone, sex, age, patid, sfzh, addr, senderdetail, type, taskid, templateid, templatename, senddate, senduuid, result, finishtime, recordid, exrecallcount, pulltime, deptcode, labelstatus, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, text_param, serviceform, bed_no, send_type, task_name, task_desc, operator_no, operator, wechat, sendname, roomno, admindate, deptname, stop_state, diagname from service_subtask insert into service_subtask sendname, phone, sex, age, sfzh, addr, senderdetail, type, taskid, templateid, templatename, senddate, senduuid, result, finishtime, recordid, exrecallcount, pulltime, deptcode, labelstatus, del_flag, update_by, update_time, create_by, create_time, isupload, upload_time, orgid, pid, guid, text_param, serviceform, bed_no, send_type, task_name, task_desc, operator, operator_no, hosp_type, hospno, wechat, roomno, admindate, deptname, diagname, libtemplateid, libtemplatename, patid, openid, #{sendname}, #{phone}, #{sex}, #{age}, #{sfzh}, #{addr}, #{senderdetail}, #{type}, #{taskid}, #{templateid}, #{templatename}, #{senddate}, #{senduuid}, #{result}, #{finishtime}, #{recordid}, #{exrecallcount}, #{pulltime}, #{deptcode}, #{labelstatus}, #{delFlag}, #{updateBy}, #{updateTime}, #{createBy}, #{createTime}, #{isupload}, #{uploadTime}, #{orgid}, #{pid}, #{guid}, #{textParam}, #{serviceform}, #{bedNo}, #{sendType}, #{taskName}, #{taskDesc}, #{operator}, #{operatorNo}, #{hospType}, #{hospno}, #{wechat}, #{roomno}, #{admindate}, #{deptname}, #{diagname}, #{libtemplateid}, #{libtemplatename}, #{patid}, #{openid}, update service_subtask sendname = #{sendname}, phone = #{phone}, sex = #{sex}, age = #{age}, sfzh = #{sfzh}, addr = #{addr}, senderdetail = #{senderdetail}, type = #{type}, taskid = #{taskid}, templateid = #{templateid}, templatename = #{templatename}, senddate = #{senddate}, senduuid = #{senduuid}, result = #{result}, finishtime = #{finishtime}, recordid = #{recordid}, exrecallcount = #{exrecallcount}, pulltime = #{pulltime}, 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}, bed_no = #{bedNo}, send_type = #{sendType}, task_name = #{taskName}, task_desc = #{taskDesc}, operator_no = #{operatorNo}, operator = #{operator}, hosp_type = #{hospType}, hospno = #{hospno}, wechat = #{wechat}, roomno = #{roomno}, admindate = #{admindate}, deptname = #{deptname}, diagname = #{diagname}, libtemplateid = #{libtemplateid}, libtemplatename = #{libtemplatename}, patid = #{patid}, openid = #{openid}, where id = #{id} update service_subtask sendname = #{sendname}, phone = #{phone}, sex = #{sex}, age = #{age}, sfzh = #{sfzh}, addr = #{addr}, senderdetail = #{senderdetail}, type = #{type}, taskid = #{taskid}, templateid = #{templateid}, templatename = #{templatename}, senddate = #{senddate}, senduuid = #{senduuid}, result = #{result}, finishtime = #{finishtime}, recordid = #{recordid}, exrecallcount = #{exrecallcount}, pulltime = #{pulltime}, 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}, bed_no = #{bedNo}, send_type = #{sendType}, task_name = #{taskName}, task_desc = #{taskDesc}, operator_no = #{operatorNo}, operator = #{operator}, hosp_type = #{hospType}, hospno = #{hospno}, wechat = #{wechat}, roomno = #{roomno}, admindate = #{admindate}, deptname = #{deptname}, diagname = #{diagname}, libtemplateid = #{libtemplateid}, libtemplatename = #{libtemplatename}, patid = #{patid}, openid = #{openid}, where patid = #{patid} and taskid = #{taskid} update service_subtask del_flag =1 where id = #{id} update service_subtask del_flag =1 where patid = #{patid} and taskid = #{taskid}