jxing 4 سال پیش
والد
کامیت
2613f91efd

+ 139 - 0
docs/setup/centos/app-server/centos-postgresql-plpython3.md

@@ -0,0 +1,139 @@
+# centos7/postgresql(安装pl/python3扩展插件, 编写pl/python3方法)
+
+
+## 安装python3
+
+    1. 安装相关包: 
+        yum install zlib-devel bzip2-devel openssl-devel ncurses-devel sqlite-devel readline-devel tk-devel gcc make
+        yum install libffi-devel -y
+        cd /usr/bin
+    
+    2. 备份旧python命令(软连接): 
+        mv python python.bak
+        cd
+    
+    3. 下载压缩包: wget https://www.python.org/ftp/python/3.7.3/Python-3.7.3.tar.xz
+    解压: tar -xvJf Python-3.7.3.tar.xz
+    
+    4. 编译安装:./configure --enable-shared --prefix=/usr/local/python3 --enable-optimizations LDFLAGS="-Wl,--rpath=/usr/local/python3/lib"
+        或编译安装(非linux版本, 此处不选用): ./configure --enable-shared --prefix=/usr/local  LDFLAGS="-R/usr/local/lib"
+    make && make install
+    cd /usr/bin
+    制作软连接: ln -s /usr/local/python3/bin/python3 /usr/bin/python
+    
+    5. 检查版本: python -V
+    因为yum使用python2, 所以修改yum使用python版本为2:
+    vi /usr/bin/yum
+    把#! /usr/bin/python修改为#! /usr/bin/python2
+    同理 vi /usr/libexec/urlgrabber-ext-down 文件里面的#! /usr/bin/python 也要修改为#! /usr/bin/python2
+    
+    这样python3版本就安装完成;同时python2也存在
+    python -V   版本3 
+    python2 -V 版本2
+    
+    
+## 编译安装postgresql(Centos7)
+
+    1. 编译环境和下载安装包
+        更新yum: yum update
+        安装wget: yum install wget
+        下载源码: wget https://ftp.postgresql.org/pub/source/v11.3/postgresql-11.3.tar.gz
+        解压: tar zxvf postgresql-11.3.tar.gz
+        安装编译需要的命令库: yum install gcc   yum install readline-devel    yum install zlib-devel
+       
+    2. 编译安装
+        ./configure --with-python
+        make (确保执行完最后一行出现All of PostgreSQL successfully made. Ready to install.)
+        make install (最后一行出现PostgreSQL installation complete.为正常安装完成)
+      
+    3. 创建用户并授权
+        useradd postgres
+        chown -R postgres:postgres /usr/local/pgsql
+        
+        
+    4. 配置环境变量
+        切换到用户: su - postgres
+        打开.bash_profile: vi ~/.bash_profile
+        
+![image](./img/plpython3_001.png)
+        
+        修改为如下:
+            PGHOME=/usr/local/pgsql
+            export PGHOME
+            PGDATA=/usr/local/pgsql/data
+            export PGDATA
+             
+            PATH=$PATH:$HOME/.local/bin:$HOME/bin:$PGHOME/bin
+            export PATH
+            
+        修改完执行: source ~/.bash_profile
+        
+    5. 初始化数据库
+        执行: initdb(初始化完毕后有提示开启服务的命令)
+        开启数据库服务: pg_ctl -D /usr/local/pgsql/data -l logfile start     (关闭 stop/重启restart)
+        查看版本: psql -V
+        进入控制台: psql
+        进入控制台后修改密码 \password postgres
+        
+    6. 配置连接规则
+        在/usr/local/pgsql/data下, 有两个配置文件需要修改:
+        postgresql.conf文件中, 需要配置
+        
+            listen_addresses = '*'     # 监听规则, *为监听所有
+            
+        pg_hba.conf文件中, 配置访问规则
+        最后面加入一行
+        
+            host   all    all    0.0.0.0/0   trust
+            
+        详细配置可参考: 
+        (https://www.cnblogs.com/flying-tiger/p/5983588.html)
+        官网: https://www.postgresql.org/docs/current/auth-pg-hba-conf.html
+        注: 比如对于IPv4地址来说, 172.20.143.89/32指定单个主机的IP,172.20.143.0/24代表一个小的子网。
+            对于IPv6地址来说,::1/128指定单个主机(这里是本机环回地址),fe80::7a31:c1ff:0000:0000/96 指定一个IPv6的子网。
+            0.0.0.0/0代表所有IPv4地址,::0/0代表所有IPv6地址。
+        配置完毕之后, 需要重启数据库服务方可生效.
+    
+    7. 启用并使用pl/python(plpython3u), create function
+        1). 使用数据库浏览工具(比如navicat, pgAdmin4)连接刚配置完成的数据库
+        2). 执行: create language plpython3u;  即创建对于python3的支持
+        3). 如果需要import的库不存在, 则可以在python3/bin目录下执行pip3命令安装需要的库
+            (例如: python pip3 install matplotlib 或./pip3 install matplotlib, 下面例子需要用到, 
+            安装一般在python3目录下的lib/python3.7/site-packages目录下, pip3 show matplotlib可查)
+        4). pip3 install matplotlib -i   
+        5). 可以创建一个数据库function, 判断一个点是否在一个由多个点依次顺时针组成的面内.
+        
+## 示例 (注意: 输入参数名不能有大写字母)
+    
+    CREATE OR REPLACE FUNCTION is_point_in_polygon(IN the_point jsonb, IN the_polygon jsonb) RETURNS boolean AS
+    $$
+    from matplotlib.path import Path
+    import json
+    
+    
+    points = []
+    poly = []
+    a_point = json.loads(the_point)
+    a_polygon = json.loads(the_polygon)
+    points.append(a_point["x"])
+    points.append(a_point["y"])
+    points = tuple(points)
+    
+    l = len(a_polygon)
+    for i in range(l):
+        ele = a_polygon[i]
+        single_point = []
+        single_point.append(ele["x"])
+        single_point.append(ele["y"])
+        poly.append(tuple(single_point))
+    p = Path(poly)
+    return p.contains_points([points])
+    $$
+    LANGUAGE 'plpython3u' VOLATILE;
+    
+    
+    验证
+    select is_point_in_polygon('{"x":1.2, "y":3}', '[{"x":1.1, "y":1.1},{"x":1.1, "y":4.1},{"x":4.1, "y":4.1},{"x":4.1, "y":1.1}]')
+    
+    select is_point_in_polygon('{"x":1.1, "y":3}', '[{"x":1.1, "y":1.1},{"x":1.1, "y":4.1},{"x":4.1, "y":4.1},{"x":4.1, "y":1.1}]')
+    

BIN
docs/setup/centos/app-server/img/plpython3_001.png


+ 540 - 0
docs/setup/centos/app-server/revit-check.md

@@ -0,0 +1,540 @@
+# RevitDoc--模型检查数据格式
+
+文档中单位统一使用公制,英制需转为公制使用
+
+    数据检查的总体格式
+ 
+    {
+        "Content":[{checkItem0},{checkItem1}...],
+        "FloorName":"D:\RevitWorkSpace\Pj1101080004\Bd110108000438d0a8c0d6e843ef85d739e91f1c9db6\Fl11010800043637f04b70834f2dbe0b82eb39068a04.rvt",
+        "Result":"Success"
+    }
+补充:ResultMsg为null或”“时不显示
+
+## 楼层平面图命名规范检查
+    输入:Revit模型文件地址 ***\F1.rvt
+    输出:
+
+    {
+        "Name":"SagaCheck",
+        "Content":[
+            {
+                "PlanName":"F1-saga",
+                "Result":"Success"
+            }
+        ],
+        "Result":"Success"
+    }
+    
+| 名称              | 解释           | 示例                      |
+|-------------------|----------------|---------------------------|
+| Content.PlanName  | 楼层平面图名称 | F1-saga                   |
+| Content.Result    | 检查结果       | 可选:“Success”,"Failure" |
+| Content.ResultMsg | 提示信息       | 为""或null,不显示此项    |
+| Name              | 检查项名称     | "SagaCheck"               |
+| ResultMsg         | 提示信息       | 为""或null,不显示此项    |
+| Result            | 结果           | “Success”,"Failure"       |
+
+## 项目长度单位检查
+
+    输入:Revit模型文件地址 ***\F1.rvt
+    输出:
+    {
+        "Name":"UnitCheck",
+        "Content":[
+            {
+                "Unit":"DUT_MILLIMETERS",
+                "Result":"Success",
+                "ResultMsg":""
+            }
+        ],
+        "Result":"Success"
+    }
+
+| 名称              | 解释         | 示例                      |
+|-------------------|--------------|---------------------------|
+| Content.FloorUnit | 项目长度单位 | mm                        |
+| Content.Result    | 检查结果     | 可选:“Success”,"Failure" |
+| Content.ResultMsg | 提示信息     | 为""或null,不显示此项    |
+| Name              | 检查项名称   | "UnitCheck"               |
+| ResultMsg         | 提示信息     | 为""或null,不显示此项    |
+| Result            | 结果         | “Success”,"Failure"       |
+| Result            | 结果         | “Success”                 |
+
+## 轴网检查
+    所需要的数据,在提取时提取。
+
+    输入:Revit模型文件地址 ***\F1.rvt
+    输出:
+    {
+        "Contents":[
+            {
+                "GridType":"Arc",
+                "GridStart":"688.217416431504, 53.8058987149525, 0",
+                "GridEnd":"688.217416431504, 53.8058987149525, 0",
+                "GridMiddle":"688.217416431504, 53.8058987149525, 0"
+            }
+        ]
+    }
+| 名称               | 解释       | 示例                                    |
+|--------------------|------------|-----------------------------------------|
+| FloorName          | 楼层名称   | PjXXX_001                               |
+| Content.GridType   | 轴网类型   | Arc,Line                                |
+| Content.GridStart  | 轴网起点   | ”688.217416431504, 53.8058987149525, 0“ |
+| Content.GridEnd    | 轴网终点   | ”688.217416431504, 53.8058987149525, 0“ |
+| Content.GridMiddle | 轴网中心点 | ”688.217416431504, 53.8058987149525, 0“ |
+| ResultMsg          | 提示信息   | “”                                      |
+| Result             | 结果       | “Success”                               |
+
+
+## 设备族编码检查
+
+    输入:Revit模型文件地址 ***\F1.rvt
+    输出:
+    {
+        "Name":"FamilyNameCheck",
+        "Content":[
+            {
+                "FamilyName":"ATFC-带回风箱的风机盘管",
+                "Result":"Success"
+            },
+            ...
+        ],
+        "ReferenceSheet":"参考-revit分类",
+        "Result":"Success"
+    }
+    
+| 名称               | 解释       | 示例                      |
+|--------------------|------------|---------------------------|
+| Content.FamilyName | 族名称     | ATFC-带回风箱的风机盘管   |
+| Content.Result     | 检查结果   | 可选:“Success”,"Failure" |
+| Content.ResultMsg  | 提示信息   | 为""或null,不显示此项    |
+| Name               | 检查项名称 | "FamilyNameCheck"         |
+| ResultMsg          | 提示信息   | 为""或null,不显示此项    |
+| Result             | 结果       | “Success”,"Failure"       |
+| Result             | 结果       | “Success”                 |
+
+##柱边界检查
+
+    输入:Revit模型文件地址 ***\F1.rvt
+    输出:
+    {
+        "Name":"ColumnCheck",
+        "Content":[
+            {
+                "Id":"316183",
+                "FamilyName":"混凝土 - 矩形 - 柱",
+                "Result":"Success"
+            },
+            ...
+        ],
+        "Result":"Success"
+    }
+    
+| 名称               | 解释        | 示例                      |
+|--------------------|-------------|---------------------------|
+| Content.FamilyName | 柱名称      | 混凝土 - 矩形 - 柱        |
+| Content.BIMID      | Revit实例Id | 316183                    |
+| Content.Result     | 检查结果    | 可选:“Success”,"Failure" |
+| Content.ResultMsg  | 提示信息    | 为""或null,不显示此项    |
+| Name               | 检查项名称  | "ColumnCheck"             |
+| ResultMsg          | 提示信息    | 为""或null,不显示此项    |
+| Result             | 结果        | “Success”,"Failure"       |
+
+## 部件所在位置检查
+
+    输入:Revit模型文件地址 ***\F1.rvt
+    输出:
+    {
+        "Name":"EquipPartLocationCheck",
+        "Content":[
+            {
+                "PartFamilyName":"TDLSDW-低压配电抽屉",
+                "Result":"Success",
+                "ResultMsg":"通过"
+            }
+        ]
+    }
+| 名称                   | 解释       | 示例                      |
+|------------------------|------------|---------------------------|
+| Content.PartFamilyName | 部件族名称 | TDLSDW-低压配电抽屉       |
+| Content.Result         | 检查结果   | 可选:“Success”,"Failure" |
+| Content.ResultMsg      | 提示信息   | 为""或null,不显示此项    |
+| Name                   | 检查项名称 | "EquipPartLocationCheck"  |
+| ResultMsg              | 提示信息   | 为""或null,不显示此项    |
+| Result                 | 结果       | “Success”,"Failure"       |
+| Result                 | 结果       | “Success”,"Failure"       |
+## 连接件检查
+    输入:Revit模型文件地址 ***\F1.rvt
+    输出:
+    {
+        "Name":"ConnectorCheck",
+        "Content":[
+            {
+                "Id":"363043",
+                "FamilyName":"ATFC-带回风箱的风机盘管",
+                "Type":"设备",
+                "ResultMsg":"发现 水管连接件未连接;发现 风管连接件未连接;",
+                "Result":"Failure"
+            },
+            ...
+        ],
+        "ReferenceSheet":"参考-连接件对照表",
+        "Result":"Success"
+    }
+| 名称               | 解释        | 示例                      |
+|--------------------|-------------|---------------------------|
+| Content.Id         | Revit实例Id | 363043                    |
+| Content.FamilyName | 构件族名称  | 混凝土 - 矩形 - 柱        |
+| Content.Type       | 构件类型    | 设备,部件                 |
+| Content.Result     | 检查结果    | 可选:“Success”,"Failure" |
+| Content.ResultMsg  | 提示信息    | 为""或null,不显示此项    |
+| Name               | 检查项名称  | "ConnectorCheck"          |
+| ReferenceSheet     | 关联表      | 参考-连接件对照表         |
+| ResultMsg          | 提示信息    | 为""或null,不显示此项    |
+| Result             | 结果        | “Success”,"Failure"       |
+
+## 构件范围检查
+    输入:Revit模型文件地址 ***\F1.rvt
+    输出:
+    {
+        "Redundant":500,
+        "BaseLevel":0,
+        "TopLevels":"4500",
+        "Name":"ElementRangeCheck",
+        "Content":[
+            {
+                "Id":"316183",
+                "FamilyName":"混凝土 - 矩形 - 柱",
+                "Type":"柱",
+                "HeightRange":"0,4500",
+                "ResultMsg":"",
+                "Result":"Success"
+            },
+            ...
+        ],
+        "Result":"Success"
+    }
+
+| 名称                | 解释                                                   | 示例                          |
+|---------------------|--------------------------------------------------------|-------------------------------|
+| Content.Id          | Revit实例Id                                            | 316183                        |
+| Content.FamilyName  | 构件族名称                                             | 混凝土 - 矩形 - 柱            |
+| Content.Type        | 构件类型                                               | 柱,墙,空间,设备,部件,信标 |
+| Content.HeightRange | 高度范围                                               | "0,4500"                      |
+| Content.Result      | 检查结果                                               | 可选:“Success”,"Failure"     |
+| Content.ResultMsg   | 提示信息                                               | 为""或null,不显示此项        |
+| Name                | 检查项名称                                             | "ElementRangeCheck"           |
+| Redundant           | 构建检查的冗余值                                       | 500                           |
+| BaseLevel           | 当前层标记                                             | 0                             |
+| TopLevels           | 顶部标记集合,可能包含多个夹层和上一层,多个使用;分割 | "4500"                        |
+| ResultMsg           | 提示信息                                               | 为""或null,不显示此项        |
+| Result              | 结果                                                   | “Success”,"Failure"           |
+## 系统类型名称检查
+    输入:Revit模型文件地址 ***\F1.rvt
+    输出:
+    {
+        "Name":"SystemNameCheck",
+        "Content":[
+            {
+                "SystemName":"送风",
+                "SystemType":"风管系统",
+                "ResultMsg":"未知的系统名称,请按照系统类型命名规范修改",
+                "Result":"Failure"
+            },
+    ...
+        ],
+        "ReferenceSheet":"参考-可识别的系统名称",
+        "Result":"Success"
+    }
+| 名称               | 解释       | 示例                      |
+|--------------------|------------|---------------------------|
+| Content.Systemname | 系统名称   | 雨水管                    |
+| Content.Type       | 构件类型   | 管道系统;风管系统        |
+| Content.Result     | 检查结果   | 可选:“Success”,"Failure" |
+| Content.ResultMsg  | 提示信息   | 为""或null,不显示此项    |
+| Name               | 检查项名称 | "SystemNameCheck"         |
+| ReferenceSheet     | 关联表     | 参考-可识别的系统名称     |
+| ResultMsg          | 提示信息   | 为""或null,不显示此项    |
+| Result             | 结果       | “Success”,"Failure"       |
+## 未在空间中的设备
+    输入:Revit模型文件地址 ***\F1.rvt
+    输出:
+    {
+        "Name":"EquipInSpaceCheck",
+        "Content":[
+            {
+                "Id":"363043",
+                "FamilyName":"ATFC-带回风箱的风机盘管",
+                "SpaceId":"445757",
+                "Result":"Success"
+            },
+            ...
+        ],
+        "Result":"Success"
+    }
+| 名称               | 解释         | 示例                      |
+|--------------------|--------------|---------------------------|
+| Content.Familyname | 族名称       | FSCP-消火栓起泵按钮       |
+| Content.Id         | Revit实例Id  | 1530697                   |
+| Content.SpaceId    | 关联空间的Id | 445757                    |
+| Content.Result     | 检查结果     | 可选:“Success”,"Failure" |
+| Content.ResultMsg  | 提示信息     | 为""或null,不显示此项    |
+| Name               | 检查项名称   | "EquipInSpaceCheck"       |
+| ResultMsg          | 提示信息     | 为""或null,不显示此项    |
+| Result             | 结果         | “Success”,"Failure"       |
+
+## 管网及相关设备检查
+    输入:Revit模型文件地址 ***\F1.rvt
+    输出:
+    {
+        "Name":"SystemReferEquipCheck",
+        "Content":[
+            {
+                "Id":"363043",
+                "FamilyName":"ATFC-带回风箱的风机盘管",
+                "PassSystems":"",
+                "UnPassSystems":"送风、回风",
+                "ResultMsg":"连接件所连接的管道系统与规范不一致,请检查",
+                "Result":"Failure"
+            },
+            ...
+        ],
+        "ReferenceSheet":"参考-管网及相关设备",
+        "Result":"Success"
+    }
+| 名称                  | 解释                 | 示例                      |
+|-----------------------|----------------------|---------------------------|
+| Content.Id            | Revit实例Id          | 1530697                   |
+| Content.Familyname    | 族名称               | FSCP-消火栓起泵按钮       |
+| Content.PassSystems   | 通过检查的管网系统   | 循环供水、湿式消防系统    |
+| Content.UnPassSystems | 未通过检查的管网系统 | 其他                      |
+| Content.Result        | 检查结果             | 可选:“Success”,"Failure" |
+| Content.ResultMsg     | 提示信息             | 为""或null,不显示此项    |
+| Name                  | 检查项名称           | "SystemReferEquipCheck"   |
+| ResultMsg             | 提示信息             | 为""或null,不显示此项    |
+| Result                | 结果                 | “Success”,"Failure"       |
+## Revit族参数完整性检查
+    输入:Revit模型文件地址 ***\F1.rvt
+    输出:
+    {
+        "Name":"ParameterIntegrityCheck",
+        "Content":[
+            {
+                "Id":"363043",
+                "FamilyName":"ATFC-带回风箱的风机盘管",
+                "ResultMsg":"缺失的参数为:设备本地名称、设备本地编码",
+                "Result":"Failure"
+            },
+           ...
+        ],
+        "Result":"Success"
+    }
+| 名称               | 解释        | 示例                             |
+|--------------------|-------------|----------------------------------|
+| Content.Id         | Revit实例Id | 1530697                          |
+| Content.Familyname | 族名称      | VTIO-送风散流器 - 方形(200x200) |
+| Content.Result     | 检查结果    | 可选:“Success”,"Failure"        |
+| Content.ResultMsg  | 提示信息    | 为""或null,不显示此项           |
+| Name               | 检查项名称  | "ParameterIntegrityCheck"        |
+| ResultMsg          | 提示信息    | 为""或null,不显示此项           |
+| Result             | 结果        | “Success”,"Failure"              |
+
+## 管段检查
+    输入:Revit模型文件地址 ***\F1.rvt
+    输出:
+    {
+        "Name":"PipeCheck",
+        "Content":[
+            {
+                "Id":"363043",
+                "SystemName":"给水管",
+                "ResultMsg":"末端未连接任何设备,请检查",
+                "Result":"Failure"
+            }
+        ],
+        "Result":"Success"
+    }
+| 名称               | 解释           | 示例                      |
+|--------------------|----------------|---------------------------|
+| Content.Id         | Revit实例Id    | 1530697                   |
+| Content.SystemName | 管道系统的名称 | 给水管                    |
+| Content.Result     | 检查结果       | 可选:“Success”,"Failure" |
+| Content.ResultMsg  | 提示信息       | 为""或null,不显示此项    |
+| Name               | 检查项名称     | PipeCheck Pip""           |
+| ResultMsg          | 提示信息       | 为""或null,不显示此项    |
+| Result             | 结果           | “Success”,"Failure"       |
+
+
+## xyz坐标重叠检查
+    输入:Revit模型文件地址 ***\F1.rvt
+    输出:
+    {
+        "Name":"XYZOverlapCheck",
+        "Content":[
+            {
+                "Id":"363043",
+                "FamilyName":"ATFC-带回风箱的风机盘管",
+                "ResultMsg":"与340021的坐标发生重叠,请检查",
+                "Result":"Failure"
+            },
+           ...
+        ],
+        "Result":"Success"
+    }
+
+| 名称               | 解释        | 示例                             |
+|--------------------|-------------|----------------------------------|
+| Content.Id         | Revit实例Id | 1530697                          |
+| Content.Familyname | 族名称      | VTIO-送风散流器 - 方形(200x200) |
+| Content.Result     | 检查结果    | 可选:“Success”,"Failure"        |
+| Content.ResultMsg  | 提示信息    | 为""或null,不显示此项           |
+| Name               | 检查项名称  | "XYZOverlapCheck"                |
+| ResultMsg          | 提示信息    | 为""或null,不显示此项           |
+| Result             | 结果        | “Success”,"Failure"              |
+
+## 完整示例
+    {
+        "FloorName":"F1.rvt",
+        "Result":"Success",
+        "ResultMsg":"",
+        "Content":[
+            {
+                "Name":"SagaCheck",
+                "Content":[
+                    {
+                        "PlanName":"F1-saga",
+                        "Result":"Success",
+                        "ResultMsg":""
+                    }
+                ]
+            },
+            {
+                "Name":"UnitCheck",
+                "Content":[
+                    {
+                        "Unit":"mm",
+                        "Result":"Success",
+                        "ResultMsg":""
+                    }
+                ]
+            },
+            {
+                "Name":"FamilyNameCheck",
+                "Content":[
+                    {
+                        "FamilyName":"弯头 - ISBIM",
+                        "Result":"Failure",
+                        "ResultMsg":"请检查族名称编码是否符合要求"
+                    }
+                ]
+            },
+            {
+                "Name":"EquipPartLocationCheck",
+                "Content":[
+                    {
+                        "PartId":"720828",
+                        "PartFamilyName":"TDLSDW-低压配电抽屉",
+                        "RefId":"720899",
+                        "Result":"Success",
+                        "ResultMsg":"通过"
+                    }
+                ]
+            },
+            {
+                "Name":"ColumnCheck",
+                "Content":[
+                    {
+                        "Id":"628267",
+                        "FamilyName":"钢管混凝土柱 - 矩形",
+                        "Result":"Success",
+                        "ResultMsg":"通过"
+                    }
+                ]
+            },
+            {
+                "Name":"ElementRangeCheck",
+                "Redundant":500,
+                "BaseLevel":0,
+                "TopLevels":"6;9;10",
+                "Content":[
+                    {
+                        "Id":"720828",
+                        "FamilyName":"VTSF-混流式风机",
+                        "Type":"设备",
+                        "HeightRange":"3,10",
+                        "Result":"Success",
+                        "ResultMsg":"通过"
+                    }
+                ]
+            },
+            {
+                "Name":"ConnectorCheck",
+                "Content":[
+                    {
+                        "Id":"628267",
+                        "FamilyName":"VTSF-混流式风机",
+                        "Result":"Failure",
+                        "ResultMsg":"发现 风管连接件未连接;"
+                    }
+                ]
+            },
+            {
+                "Name":"SystemNameCheck",
+                "Content":[
+                    {
+                        "SystemName":"回风风管",
+                        "SystemType":"风管系统",
+                        "Result":"Success",
+                        "ResultMsg":"通过"
+                    }
+                ]
+            },
+            {
+                "Name":"EquipInSpaceCheck",
+                "Content":[
+                    {
+                        "Id":"1530269",
+                        "FamilyName":"EGCR-门禁-带键盘读卡器",
+                        "Result":"Failure",
+                        "ResultMsg":"请检查设备是否在空间中"
+                    }
+                ]
+            },
+            {
+                "Name":"SystemReferEquipCheck",
+                "Content":[
+                    {
+                        "Id":"1530269",
+                        "FamilyName":"EGCR-门禁-带键盘读卡器",
+                        "PassSystems":"冷却水供水管 4,冷却水回水管 2",
+                        "UnPassSystems":"冷冻水回水管 2,冷冻水供水管 8",
+                        "Result":"Success",
+                        "ResultMsg":"通过"
+                    }
+                ]
+            },
+            {
+                "Name":"ParameterIntegrityCheck",
+                "Content":[
+                    {
+                        "FamilyName":"EGCR-门禁-带键盘读卡器",
+                        "Result":"Success",
+                        "ResultMsg":"通过"
+                    }
+                ]
+            },
+            {
+                "Name":"PipeCheck",
+                "Content":[
+                    {
+                        "Id":"363043",
+                        "SystemName":"给水管",
+                        "ResultMsg":"末端未连接任何设备,请检查",
+                        "Result":"Failure"
+                    }
+                ],
+                "Result":"Success"
+            }
+        ]
+    }

+ 1 - 1
docs/setup/centos/app-server/revit-format.md

@@ -1,4 +1,4 @@
-RevitDoc--提取数据格式
+#RevitDoc--提取数据格式
 
 
 

+ 1 - 1
docs/setup/centos/app-server/revit-service.md

@@ -5,7 +5,7 @@
     1. DotNetty进行网络传输
     2. protobuf进行通信编码解码
     3. NHibernate做(mysql)数据持久层
-    
+    4. 消息驱动
     
     
     

+ 3 - 1
docs/setup/index.js

@@ -37,7 +37,9 @@ const content = [
                     ["/setup/centos/app-server/dataplatform-sync", "数据同步服务dataplatform-sync"],
                     ["/setup/centos/app-server/MBI", "MBI操作流程(孟向歌)"],
                     ["/setup/centos/app-server/revit-format", "revit导出数据格式"],
-                    ["/setup/centos/app-server/revit-service", "revit服务"]
+                    ["/setup/centos/app-server/revit-service", "revit服务"],
+                    ["/setup/centos/app-server/revit-check", "模型检查数据格式"],
+                    ["/setup/centos/app-server/centos-postgresql-plpython3", "centos7 编译安装postgresql"]
                 ]
             }
         ]