select task_no, business_type, wh_type_from, wh_no_from, wh_type_to, wh_no_to, sys_name, device_name, batch_no, batch_order_no, location_from, area_from, location_to, area_to, priority, state, remark, create_user, create_date, update_user, update_date, task_type, shop_id, start_time, end_time, parent_task, ext_param, ext1, ext2, ext3, ext4, ext5, ext6, ext7, ext8, agv_no, before_task from wcs_task
insert into wcs_task
task_no,
business_type,
wh_type_from,
wh_no_from,
wh_type_to,
wh_no_to,
sys_name,
device_name,
batch_no,
batch_order_no,
location_from,
area_from,
location_to,
area_to,
priority,
state,
remark,
create_user,
create_date,
update_user,
update_date,
task_type,
shop_id,
start_time,
end_time,
parent_task,
ext_param,
ext1,
ext2,
ext3,
ext4,
ext5,
ext6,
ext7,
ext8,
agv_no,
before_task,
#{taskNo},
#{businessType},
#{whTypeFrom},
#{whNoFrom},
#{whTypeTo},
#{whNoTo},
#{sysName},
#{deviceName},
#{batchNo},
#{batchOrderNo},
#{locationFrom},
#{areaFrom},
#{locationTo},
#{areaTo},
#{priority},
#{state},
#{remark},
#{createUser},
#{createDate},
#{updateUser},
#{updateDate},
#{taskType},
#{shopId},
#{startTime},
#{endTime},
#{parentTask},
#{extParam},
#{ext1},
#{ext2},
#{ext3},
#{ext4},
#{ext5},
#{ext6},
#{ext7},
#{ext8},
#{agvNo},
#{beforeTask},
update wcs_task
business_type = #{businessType},
wh_type_from = #{whTypeFrom},
wh_no_from = #{whNoFrom},
wh_type_to = #{whTypeTo},
wh_no_to = #{whNoTo},
sys_name = #{sysName},
device_name = #{deviceName},
batch_no = #{batchNo},
batch_order_no = #{batchOrderNo},
location_from = #{locationFrom},
area_from = #{areaFrom},
location_to = #{locationTo},
area_to = #{areaTo},
priority = #{priority},
state = #{state},
remark = #{remark},
create_user = #{createUser},
create_date = #{createDate},
update_user = #{updateUser},
update_date = #{updateDate},
task_type = #{taskType},
shop_id = #{shopId},
start_time = #{startTime},
end_time = #{endTime},
parent_task = #{parentTask},
ext_param = #{extParam},
ext1 = #{ext1},
ext2 = #{ext2},
ext3 = #{ext3},
ext4 = #{ext4},
ext5 = #{ext5},
ext6 = #{ext6},
ext7 = #{ext7},
ext8 = #{ext8},
agv_no = #{agvNo},
before_task = #{beforeTask},
where task_no = #{taskNo}
delete from wcs_task where task_no = #{taskNo}
delete from wcs_task where task_no in
#{taskNo}