select location_id, location_code, shelf_order, check_order, pick_order, location_use, pick_flag, is_open_kn_flag, location_type, location_scrap_type, location_attr, turn_demand, stock_env, warehouse_code, region_code, area_code, check_code, work_area, port1, port2, port3, volume_limit, weight_limit, box_limit, qty_limit, pallet_limit, length, width, height, x_coordinate, y_coordinate, z_coordinate, x_pixels, y_pixels, z_pixels, loc_row, layer_num, loc_column, bord, product_mix, batch_mix, ignore_id, active_flag, user_defined1, user_defined2, user_defined3, create_by, create_time, update_by, update_time, remark, factory_code, syntozk from base_location
insert into base_location
location_id,
location_code,
shelf_order,
check_order,
pick_order,
location_use,
pick_flag,
is_open_kn_flag,
location_type,
location_scrap_type,
location_attr,
turn_demand,
stock_env,
warehouse_code,
region_code,
area_code,
check_code,
work_area,
port1,
port2,
port3,
volume_limit,
weight_limit,
box_limit,
qty_limit,
pallet_limit,
length,
width,
height,
x_coordinate,
y_coordinate,
z_coordinate,
x_pixels,
y_pixels,
z_pixels,
loc_row,
layer_num,
loc_column,
bord,
product_mix,
batch_mix,
ignore_id,
active_flag,
user_defined1,
user_defined2,
user_defined3,
create_by,
create_time,
update_by,
update_time,
remark,
factory_code,
syntozk,
#{locationId},
#{locationCode},
#{shelfOrder},
#{checkOrder},
#{pickOrder},
#{locationUse},
#{pickFlag},
#{isOpenKnFlag},
#{locationType},
#{locationScrapType},
#{locationAttr},
#{turnDemand},
#{stockEnv},
#{warehouseCode},
#{regionCode},
#{areaCode},
#{checkCode},
#{workArea},
#{port1},
#{port2},
#{port3},
#{volumeLimit},
#{weightLimit},
#{boxLimit},
#{qtyLimit},
#{palletLimit},
#{length},
#{width},
#{height},
#{xCoordinate},
#{yCoordinate},
#{zCoordinate},
#{xPixels},
#{yPixels},
#{zPixels},
#{locRow},
#{layerNum},
#{locColumn},
#{bord},
#{productMix},
#{batchMix},
#{ignoreId},
#{activeFlag},
#{userDefined1},
#{userDefined2},
#{userDefined3},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{remark},
#{factoryCode},
#{syntozk},
update base_location
location_code = #{locationCode},
shelf_order = #{shelfOrder},
check_order = #{checkOrder},
pick_order = #{pickOrder},
location_use = #{locationUse},
pick_flag = #{pickFlag},
is_open_kn_flag = #{isOpenKnFlag},
location_type = #{locationType},
location_scrap_type = #{locationScrapType},
location_attr = #{locationAttr},
turn_demand = #{turnDemand},
stock_env = #{stockEnv},
warehouse_code = #{warehouseCode},
region_code = #{regionCode},
area_code = #{areaCode},
check_code = #{checkCode},
work_area = #{workArea},
port1 = #{port1},
port2 = #{port2},
port3 = #{port3},
volume_limit = #{volumeLimit},
weight_limit = #{weightLimit},
box_limit = #{boxLimit},
qty_limit = #{qtyLimit},
pallet_limit = #{palletLimit},
length = #{length},
width = #{width},
height = #{height},
x_coordinate = #{xCoordinate},
y_coordinate = #{yCoordinate},
z_coordinate = #{zCoordinate},
x_pixels = #{xPixels},
y_pixels = #{yPixels},
z_pixels = #{zPixels},
loc_row = #{locRow},
layer_num = #{layerNum},
loc_column = #{locColumn},
bord = #{bord},
product_mix = #{productMix},
batch_mix = #{batchMix},
ignore_id = #{ignoreId},
active_flag = #{activeFlag},
user_defined1 = #{userDefined1},
user_defined2 = #{userDefined2},
user_defined3 = #{userDefined3},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
remark = #{remark},
factory_code = #{factoryCode},
syntozk = #{syntozk},
where location_id = #{locationId}
delete from base_location where location_id = #{locationId}
delete from base_location where location_id in
#{locationId}