id,
position_map_id,
area_id,
lane_id,
location_x,
location_y,
type,
data_json,
creator,
create_time,
updater,
update_time,
deleted,
tenant_id
insert into ware_position_map_item(position_map_id, area_id, lane_id, location_x, location_y, type, data_json,
creator, create_time, updater, update_time, deleted, tenant_id)
values (#{positionMapId}, #{areaId}, #{laneId}, #{locationX}, #{locationY}, #{type}, #{dataJson}, #{creator},
#{createTime}, #{updater}, #{updateTime}, #{deleted}, #{tenantId})
insert into ware_position_map_item(position_map_id, area_id, lane_id, location_x, location_y, type, data_json,
creator, create_time, updater, update_time, deleted, tenant_id)
values
(#{entity.positionMapId}, #{entity.areaId}, #{entity.laneId}, #{entity.locationX}, #{entity.locationY},
#{entity.type}, #{entity.dataJson}, #{entity.creator}, #{entity.createTime}, #{entity.updater},
#{entity.updateTime}, #{entity.deleted}, #{entity.tenantId})
insert into ware_position_map_item(position_map_id, area_id, lane_id, location_x, location_y, type, data_json,
creator, create_time, updater, update_time, deleted, tenant_id)
values
(#{entity.positionMapId}, #{entity.areaId}, #{entity.laneId}, #{entity.locationX}, #{entity.locationY},
#{entity.type}, #{entity.dataJson}, #{entity.creator}, #{entity.createTime}, #{entity.updater},
#{entity.updateTime}, #{entity.deleted}, #{entity.tenantId})
on duplicate key update
position_map_id = values(position_map_id),
area_id = values(area_id),
lane_id = values(lane_id),
location_x = values(location_x),
location_y = values(location_y),
type = values(type),
data_json = values(data_json),
creator = values(creator),
create_time = values(create_time),
updater = values(updater),
update_time = values(update_time),
deleted = values(deleted),
tenant_id = values(tenant_id)
update ware_position_map_item
position_map_id = #{positionMapId},
area_id = #{areaId},
lane_id = #{laneId},
location_x = #{locationX},
location_y = #{locationY},
type = #{type},
data_json = #{dataJson},
creator = #{creator},
create_time = #{createTime},
updater = #{updater},
update_time = #{updateTime},
deleted = #{deleted},
tenant_id = #{tenantId},
where id = #{id}
update ware_position_map_item
set area_id = null
where position_map_id = #{mapId}
and area_id = #{areaId}
update ware_position_map_item
set lane_id = null
where position_map_id = #{mapId}
and lane_id = #{laneId}
delete
from ware_position_map_item
where id = #{id}