Explorar el Código

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

MaiXinRong hace 5 años
padre
commit
91f0734771
Se han modificado 1 ficheros con 3 adiciones y 1 borrados
  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);