id,
robot_task_id,
task_type,
release_type,
take_type,
release_id,
take_id,
from_location_no,
from_location_id,
to_location_no,
to_location_id,
robot_no,
robot_action,
task_status,
task_stage,
start_time,
end_time,
creator,
create_time,
updater,
update_time,
deleted,
tenant_id,
from_location_storey,
to_location_storey,
priority
insert into robot_task_detail(robot_task_id, task_type, release_type, take_type, release_id, take_id,
from_location_no, from_location_id, to_location_no, to_location_id, robot_no,
robot_action, task_status, task_stage, start_time, end_time, creator, create_time,
updater, update_time, deleted, tenant_id)
values (#{robotTaskId}, #{taskType}, #{releaseType}, #{takeType}, #{releaseId}, #{takeId}, #{fromLocationNo},
#{fromLocationId}, #{toLocationNo}, #{toLocationId}, #{robotNo}, #{robotAction}, #{taskStatus},
#{taskStage}, #{startTime}, #{endTime}, #{creator}, #{createTime}, #{updater}, #{updateTime},
#{deleted}, #{tenantId})
insert into robot_task_detail(robot_task_id, task_type, release_type, take_type, release_id, take_id,
from_location_no, from_location_id, to_location_no, to_location_id, robot_no,from_location_storey,
to_location_storey,priority)
values
(#{entity.robotTaskId}, #{entity.taskType}, #{entity.releaseType}, #{entity.takeType}, #{entity.releaseId},
#{entity.takeId}, #{entity.fromLocationNo}, #{entity.fromLocationId}, #{entity.toLocationNo},
#{entity.toLocationId}, #{entity.robotNo}, #{entity.fromLocationStorey}, #{entity.toLocationStorey}
, #{entity.priority})
update robot_task_detail
robot_task_id = #{robotTaskId},
task_type = #{taskType},
release_type = #{releaseType},
take_type = #{takeType},
release_id = #{releaseId},
take_id = #{takeId},
from_location_no = #{fromLocationNo},
from_location_id = #{fromLocationId},
to_location_no = #{toLocationNo},
to_location_id = #{toLocationId},
robot_no = #{robotNo},
robot_action = #{robotAction},
task_status = #{taskStatus},
task_stage = #{taskStage},
start_time = #{startTime},
end_time = #{endTime},
creator = #{creator},
create_time = #{createTime},
updater = #{updater},
update_time = #{updateTime},
deleted = #{deleted},
where id = #{id}
delete
from robot_task_detail
where id = #{id}