Browse Source

将所有的主要输出删除

jxing 5 years ago
parent
commit
71939c720a

+ 0 - 1
datacenter/docs/relation_calc/Bd2Sp.md

@@ -26,7 +26,6 @@ try:
     with plpy.subtransaction():
         for table in list:
             str = "UPDATE {0} as zone SET building_id = floor.build_id from public.floor as floor where floor_id = floor.id and zone.project_id = $1 and floor_id is not null".format(table.strip())
-            plpy.info(str)
             plan = plpy.prepare(str, ["text"])
             data = plan.execute([project_id])
 except Exception as e:

+ 0 - 1
datacenter/docs/relation_calc/Eq2Fl.md

@@ -68,7 +68,6 @@ try:
                     plan = plpy.prepare("update equipment set floor_id = $1 where id = $2", ["text", "text"])
                     plan.execute([equip['floor_id'], equip['id']])
                 except Exception as ex:
-                    plpy.info(ex)
                     continue
 except Exception as e:
     plpy.warning(e)

+ 0 - 7
datacenter/docs/relation_calc/Eq2Sp.md

@@ -20,20 +20,16 @@ import json
 
 def is_in_meta_polygon(point, single_poly, radius):
     poly_len = len(single_poly)
-    plpy.info(poly_len)
     poly = []
     for i in range(poly_len):
         pair = single_poly[i]
         poly.append((pair["X"], pair["Y"]))
-        plpy.info(pair["X"])
-
     p = Path(poly)
     return p.contains_points([point], None, radius)
 
 
 def is_in_polygon(point, polygons):
     polygons_length = len(polygons)
-    plpy.info(polygons_length)
     if polygons_length == 0:
         return False
     for j in range(polygons_length):
@@ -64,8 +60,6 @@ def is_point_in_polygon(x, y, json_poly):
 # 将下面对数据库的操作作为一个事务, 出异常则自动rollback
 input_table_list = tables.split(',')
 output_table_list = out_tables.split(',')
-#if len(input_table_list) > 0
-    #plpy.info(input_table_list[0])
 with plpy.subtransaction():
     for i in range(0, len(input_table_list)):
         in_table_name = input_table_list[i]
@@ -90,7 +84,6 @@ with plpy.subtransaction():
             if len(spaces) == 0:
                 continue
             # 判断设备的bim_location是否在业务空间的outline内
-            # plpy.info("设备有{0}个, 业务空间有{1}个".format(len(equips), len(spaces)))
             for equip in equips:
                 for space in spaces:
                     try:

+ 1 - 1
datacenter/docs/relation_calc/Fl2Fl.md

@@ -26,7 +26,7 @@ try:
         plan2 = plpy.prepare("select f1.id as lid, f2.id as rid from floor f1 left join floor f2 on f1.model_id = f2.model_id where f1.id != f2.id and f1.project_id = $1 and f2.project_id = $1", ["text"])
         relation = plan2.execute([project_id])
         if len(relation) == 0:
-            plpy.info("计算出没有关系")
+            # plpy.info("计算出没有关系")
             return True
         for row in relation:
             plan3 = plpy.prepare("insert into r_fl_through_fl(floor_id, floor_other_id, project_id, sign) values($1, $2, $3, 2) ", ["text", "text", 'text'])