Browse Source

修改level检查的返回数据结构

jxing 5 years ago
parent
commit
37501a01df
1 changed files with 4 additions and 0 deletions
  1. 4 0
      src/level/check_level.py

+ 4 - 0
src/level/check_level.py

@@ -110,7 +110,11 @@ def check_level_reasonable(model_list, level_data):
     for floor_row in model_list:
         model_id = floor_row.get('fid')
         if model_id in error:
+            floor_row['has_error'] = True
             floor_row['error'] = '标高冲突'
+        else:
+            floor_row['has_error'] = False
+            floor_row['error'] = None
     if len(error) == 0:
         return True
     return False