查询所有的组织单元

来源:互联网 发布:网络上赌博被骗怎么办 编辑:程序博客网 时间:2024/05/01 20:59

    /**
     * 查询所有的员工
     * @return 返回RowSet集
     */
    protected IRowSet _getCtrlUnitOrderbyLevel(Context ctx) throws BOSException {
        synchronized(this){
            logger.info("查询所有的组织单元");
            return DbUtil.executeQuery(ctx, "select FID,FName_L2,FIsLeaf,FLevel,FParentID FROM T_ORG_Admin  order by FLevel");
        }
    }

//fid为id,fname_L2为名称,fisleaf为是否是末级节点,FLeavel为级别,FParentID为父类id