select id, address, code, device_count, guid, is_lock, manager, manager_phone, name, parent_id, phone, city_code, open_year, fit_year, floorage, employee, is_own_right, is_rent, is_only, build_year, place_type, build_height, social, natural_envir, type, create_time, modified_name, update_time, modified_id, path, vid, level, oid, parent_guid, deleted, sort, location, create_by, update_by
        from sys_org
    
    
    
    
    
    
        insert into sys_org
        
                    address,
                    
                    code,
                    
                    device_count,
                    
                    guid,
                    
                    is_lock,
                    
                    manager,
                    
                    manager_phone,
                    
                    name,
                    
                    parent_id,
                    
                    phone,
                    
                    city_code,
                    
                    open_year,
                    
                    fit_year,
                    
                    floorage,
                    
                    employee,
                    
                    is_own_right,
                    
                    is_rent,
                    
                    is_only,
                    
                    build_year,
                    
                    place_type,
                    
                    build_height,
                    
                    social,
                    
                    natural_envir,
                    
                    type,
                    
                    create_time,
                    
                    modified_name,
                    
                    update_time,
                    
                    modified_id,
                    
                    path,
                    
                    vid,
                    
                    level,
                    
                    oid,
                    
                    parent_guid,
                    
                    deleted,
                    
                    sort,
                    
                    location,
                    
                    create_by,
                    
                    update_by,
                    
        
        
                    #{address},
                    
                    #{code},
                    
                    #{deviceCount},
                    
                    #{guid},
                    
                    #{isLock},
                    
                    #{manager},
                    
                    #{managerPhone},
                    
                    #{name},
                    
                    #{parentId},
                    
                    #{phone},
                    
                    #{cityCode},
                    
                    #{openYear},
                    
                    #{fitYear},
                    
                    #{floorage},
                    
                    #{employee},
                    
                    #{isOwnRight},
                    
                    #{isRent},
                    
                    #{isOnly},
                    
                    #{buildYear},
                    
                    #{placeType},
                    
                    #{buildHeight},
                    
                    #{social},
                    
                    #{naturalEnvir},
                    
                    #{type},
                    
                    #{createTime},
                    
                    #{modifiedName},
                    
                    #{updateTime},
                    
                    #{modifiedId},
                    
                    #{path},
                    
                    #{vid},
                    
                    #{level},
                    
                    #{oid},
                    
                    #{parentGuid},
                    
                    #{deleted},
                    
                    #{sort},
                    
                    #{location},
                    
                    #{createBy},
                    
                    #{updateBy},
                    
        
    
    
        update sys_org
        
                    address =
                        #{address},
                    
                    code =
                        #{code},
                    
                    device_count =
                        #{deviceCount},
                    
                    guid =
                        #{guid},
                    
                    is_lock =
                        #{isLock},
                    
                    manager =
                        #{manager},
                    
                    manager_phone =
                        #{managerPhone},
                    
                    name =
                        #{name},
                    
                    parent_id =
                        #{parentId},
                    
                    phone =
                        #{phone},
                    
                    city_code =
                        #{cityCode},
                    
                    open_year =
                        #{openYear},
                    
                    fit_year =
                        #{fitYear},
                    
                    floorage =
                        #{floorage},
                    
                    employee =
                        #{employee},
                    
                    is_own_right =
                        #{isOwnRight},
                    
                    is_rent =
                        #{isRent},
                    
                    is_only =
                        #{isOnly},
                    
                    build_year =
                        #{buildYear},
                    
                    place_type =
                        #{placeType},
                    
                    build_height =
                        #{buildHeight},
                    
                    social =
                        #{social},
                    
                    natural_envir =
                        #{naturalEnvir},
                    
                    type =
                        #{type},
                    
                    create_time =
                        #{createTime},
                    
                    modified_name =
                        #{modifiedName},
                    
                    update_time =
                        #{updateTime},
                    
                    modified_id =
                        #{modifiedId},
                    
                    path =
                        #{path},
                    
                    vid =
                        #{vid},
                    
                    level =
                        #{level},
                    
                    oid =
                        #{oid},
                    
                    parent_guid =
                        #{parentGuid},
                    
                    deleted =
                        #{deleted},
                    
                    sort =
                        #{sort},
                    
                    location =
                        #{location},
                    
                    create_by =
                        #{createBy},
                    
                    update_by =
                        #{updateBy},
                    
        
        where id = #{id}
    
    
        delete
        from sys_org where id = #{id}
    
    
        delete from sys_org where id in
        
            #{id}