select area_id, area_code, area_desc, region_code, wh_code, instock_tran_loc, outstock_tran_loc, pick_tran_loc, ex_sign_loc_no, frozen_loc_no, sap_send_spot, area_point, use_tray, tray_mix, instorage_strategy, outstorage_strategy, force_outstorage, loc_pick_flag, allocation_rule, gather_loc_type, priority, user_defined1, user_defined2, user_defined3, create_by, create_time, update_by, update_time, active_flag, remark, factory_code,del_flag from base_area
insert into base_area
area_code,
area_desc,
region_code,
wh_code,
instock_tran_loc,
outstock_tran_loc,
pick_tran_loc,
ex_sign_loc_no,
frozen_loc_no,
sap_send_spot,
area_point,
use_tray,
tray_mix,
instorage_strategy,
outstorage_strategy,
force_outstorage,
loc_pick_flag,
allocation_rule,
gather_loc_type,
priority,
user_defined1,
user_defined2,
user_defined3,
create_by,
create_time,
update_by,
update_time,
active_flag,
remark,
factory_code,
#{areaCode},
#{areaDesc},
#{regionCode},
#{whCode},
#{instockTranLoc},
#{outstockTranLoc},
#{pickTranLoc},
#{exSignLocNo},
#{frozenLocNo},
#{sapSendSpot},
#{areaPoint},
#{useTray},
#{trayMix},
#{instorageStrategy},
#{outstorageStrategy},
#{forceOutstorage},
#{locPickFlag},
#{allocationRule},
#{gatherLocType},
#{priority},
#{userDefined1},
#{userDefined2},
#{userDefined3},
#{createBy},
#{createTime},
#{updateBy},
#{updateTime},
#{activeFlag},
#{remark},
#{factoryCode},
update base_area
area_code = #{areaCode},
area_desc = #{areaDesc},
region_code = #{regionCode},
wh_code = #{whCode},
instock_tran_loc = #{instockTranLoc},
outstock_tran_loc = #{outstockTranLoc},
pick_tran_loc = #{pickTranLoc},
ex_sign_loc_no = #{exSignLocNo},
frozen_loc_no = #{frozenLocNo},
sap_send_spot = #{sapSendSpot},
area_point = #{areaPoint},
use_tray = #{useTray},
tray_mix = #{trayMix},
instorage_strategy = #{instorageStrategy},
outstorage_strategy = #{outstorageStrategy},
force_outstorage = #{forceOutstorage},
loc_pick_flag = #{locPickFlag},
allocation_rule = #{allocationRule},
gather_loc_type = #{gatherLocType},
priority = #{priority},
user_defined1 = #{userDefined1},
user_defined2 = #{userDefined2},
user_defined3 = #{userDefined3},
create_by = #{createBy},
create_time = #{createTime},
update_by = #{updateBy},
update_time = #{updateTime},
active_flag = #{activeFlag},
remark = #{remark},
factory_code = #{factoryCode},
where area_id = #{areaId}
and del_flag = '0'
update base_area
set del_flag = '1'
where area_id = #{areaId}
update base_area
set del_flag = '1'
where area_id in
#{areaId}