select area_id, area_code, area_name, location_id, area, max_loa, position_x, position_y, position_z, enable_flag, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time from wm_storage_area insert into wm_storage_area area_code, area_name, location_id, area, max_loa, position_x, position_y, position_z, enable_flag, remark, attr1, attr2, attr3, attr4, create_by, create_time, update_by, update_time, #{areaCode}, #{areaName}, #{locationId}, #{area}, #{maxLoa}, #{positionX}, #{positionY}, #{positionZ}, #{enableFlag}, #{remark}, #{attr1}, #{attr2}, #{attr3}, #{attr4}, #{createBy}, #{createTime}, #{updateBy}, #{updateTime}, update wm_storage_area area_code = #{areaCode}, area_name = #{areaName}, location_id = #{locationId}, area = #{area}, max_loa = #{maxLoa}, position_x = #{positionX}, position_y = #{positionY}, position_z = #{positionZ}, enable_flag = #{enableFlag}, remark = #{remark}, attr1 = #{attr1}, attr2 = #{attr2}, attr3 = #{attr3}, attr4 = #{attr4}, create_by = #{createBy}, create_time = #{createTime}, update_by = #{updateBy}, update_time = #{updateTime}, where area_id = #{areaId} delete from wm_storage_area where area_id = #{areaId} delete from wm_storage_area where area_id in #{areaId} delete from wm_storage_area where location_id in ( select location_id from wm_storage_location where warehouse_id = #{warehouseId}) delete form wm_storage_area where location_id = #{locationId}