Browse Source

数据预处理,汇总章级数据,兼容存在未计入章级清单项,又不统计的情况

MaiXinRong 5 năm trước cách đây
mục cha
commit
91f0734771
1 tập tin đã thay đổi với 3 bổ sung1 xóa
  1. 3 1
      app/lib/rpt_data_analysis.js

+ 3 - 1
app/lib/rpt_data_analysis.js

@@ -431,7 +431,9 @@ const gatherChapter = {
             }
             if (d.b_code) {
                 const c = this._getGclChapter(gclChapter, d, 'b_code');
-                gatherData(c, d);
+                if (c) {
+                    gatherData(c, d);
+                }
             }
         }
         this._gatherRela(ctx, data, options.rela, gclChapter, otherChapter);