select location_id, warehouse_id, location_code, loc_row, layer_num, loc_column, active_flag, manual_flag, qty_limit, instock_flag, outstock_flag, location_status, batch_mix, create_by, create_time, update_by, update_time, remark, del_flag, shelf_order, check_order, pick_order, pick_flag, is_open_kn_flag, location_scrap_type, volume_limit, weight_limit, length, width, height from wms_base_location
insert into wms_base_location
warehouse_id,
agv_position_code,
location_code,
loc_row,
layer_num,
loc_column,
active_flag,
manual_flag,
qty_limit,
instock_flag,
outstock_flag,
location_status,
batch_mix,
create_by,
create_time,
update_by,
update_time,
remark,
del_flag,
shelf_order,
check_order,
pick_order,
pick_flag,
is_open_kn_flag,
location_scrap_type,
volume_limit,
weight_limit,
length,
width,
height,
#{warehouseId},
#{agvPositionCode},
#{locationCode},
#{locRow},
#{layerNum},
#{locColumn},
#{activeFlag},
#{manualFlag},
#{qtyLimit},
#{instockFlag},
#{outstockFlag},
#{locationStatus},
#{batchMix},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
#{delFlag},
#{shelfOrder},
#{checkOrder},
#{pickOrder},
#{pickFlag},
#{isOpenKnFlag},
#{locationScrapType},
#{volumeLimit},
#{weightLimit},
#{length},
#{width},
#{height},
update wms_base_location
warehouse_id = #{warehouseId},
agv_position_code = #{agvPositionCode},
location_code = #{locationCode},
loc_row = #{locRow},
layer_num = #{layerNum},
loc_column = #{locColumn},
active_flag = #{activeFlag},
manual_flag = #{manualFlag},
qty_limit = #{qtyLimit},
instock_flag = #{instockFlag},
outstock_flag = #{outstockFlag},
location_status = #{locationStatus},
batch_mix = #{batchMix},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
del_flag = #{delFlag},
shelf_order = #{shelfOrder},
check_order = #{checkOrder},
pick_order = #{pickOrder},
pick_flag = #{pickFlag},
is_open_kn_flag = #{isOpenKnFlag},
location_scrap_type = #{locationScrapType},
volume_limit = #{volumeLimit},
weight_limit = #{weightLimit},
length = #{length},
width = #{width},
height = #{height},
where location_id = #{locationId}
delete from wms_base_location where location_id = #{locationId}
delete from wms_base_location where location_id in
#{locationId}