select taskid,
task_name,
appltype,
send_day,
long_task,
show_date,
compensate_date,
show_time_morn,
show_time_noon,
show_time_night,
libtemplateid,
libtemplatename,
stop_state,
text_param,
templateid,
templatename,
labelinfo,
count,
executed,
unexecuted,
fail,
checkuserid,
checkusername,
checktime,
type,
task_desc,
hosp_type,
typename,
deptcode,
deptname,
del_flag,
update_by,
update_time,
create_by,
create_time,
isupload,
upload_time,
pid,
guid,
preachform,
send_type,
send_state,
send_time_slot,
service_type,
kcb,
jsy,
leavehospitaldistrictcode,
leavehospitaldistrictname,
orgid,
nexttaskflag,
nexttaskid,
nexttaskname
from service_task
insert into service_task
task_name,
templateid,
templatename,
labelinfo,
count,
executed,
unexecuted,
fail,
checkuserid,
checkusername,
checktime,
type,
typename,
deptcode,
deptname,
del_flag,
update_by,
update_time,
create_by,
create_time,
isupload,
upload_time,
orgid,
pid,
guid,
preachform,
send_type,
send_state,
hosp_type,
task_desc,
libtemplateid,
libtemplatename,
send_time_slot,
stop_state,
show_date,
show_time_night,
show_time_noon,
show_time_morn,
text_param,
service_type,
long_task,
kcb,
jsy,
leavehospitaldistrictname,
leavehospitaldistrictcode,
compensate_date,
send_day,
appltype,
#{taskName},
#{templateid},
#{templatename},
#{labelinfo},
#{count},
#{executed},
#{unexecuted},
#{fail},
#{checkuserid},
#{checkusername},
#{checktime},
#{type},
#{typename},
#{deptcode},
#{deptname},
#{delFlag},
#{updateBy},
#{updateTime},
#{createBy},
#{createTime},
#{isupload},
#{uploadTime},
#{orgid},
#{nexttaskflag},
#{nexttaskid},
#{nexttaskname},
#{pid},
#{guid},
#{preachform},
#{sendType},
#{sendState},
#{hospType},
#{taskDesc},
#{libtemplateid},
#{libtemplatename},
#{sendTimeSlot},
#{stopState},
#{showDate},
#{showTimeNight},
#{showTimeNoon},
#{showTimeMorn},
#{textParam},
#{serviceType},
#{longTask},
#{kcb},
#{jsy},
#{leavehospitaldistrictname},
#{leavehospitaldistrictcode},
#{compensateDate}
#{sendDay},
#{appltype},
update service_task
task_name = #{taskName},
templateid = #{templateid},
templatename = #{templatename},
labelinfo = #{labelinfo},
count = #{count},
executed = #{executed},
unexecuted = #{unexecuted},
fail = #{fail},
checkuserid = #{checkuserid},
checkusername = #{checkusername},
checktime = #{checktime},
type = #{type},
typename = #{typename},
deptcode = #{deptcode},
deptname = #{deptname},
del_flag = #{delFlag},
update_by = #{updateBy},
update_time = #{updateTime},
create_by = #{createBy},
create_time = #{createTime},
isupload = #{isupload},
upload_time = #{uploadTime},
orgid = #{orgid},
nexttaskflag = #{nexttaskflag},
nexttaskid = #{nexttaskid},
nexttaskname = #{nexttaskname},
pid = #{pid},
guid = #{guid},
preachform = #{preachform},
send_type = #{sendType},
send_state = #{sendState},
hosp_type = #{hospType},
task_desc= #{taskDesc},
libtemplateid = #{libtemplateid},
libtemplatename = #{libtemplatename},
send_time_slot=#{sendTimeSlot},
stop_state=#{stopState},
show_date=#{showDate},
show_time_night=#{showTimeNight},
show_time_noon=#{showTimeNoon},
show_time_morn=#{showTimeMorn},
text_param=#{textParam},
service_type = #{serviceType},
long_task = #{longTask},
kcb = #{kcb},
jsy = #{jsy},
leavehospitaldistrictname = #{leavehospitaldistrictname},
leavehospitaldistrictcode = #{leavehospitaldistrictcode},
compensate_date = #{compensateDate}
send_day = #{sendDay}
appltype = #{appltype}
where taskid = #{taskid}
update service_task
del_flag =1
where taskid = #{taskid}
update service_task
del_flag =1
where taskid in
#{taskid}