From 4d181165fac62501a7e190f61281194f69a66d36 Mon Sep 17 00:00:00 2001 From: wuqun Date: Wed, 19 Oct 2022 10:27:17 +0800 Subject: [PATCH] =?UTF-8?q?(*)=E6=8E=A5=E5=8F=A3=E6=B7=BB=E5=8A=A0--?= =?UTF-8?q?=E8=8E=B7=E5=8F=96=E9=A1=B9=E7=9B=AE=E5=85=B3=E8=81=94=E7=9A=84?= =?UTF-8?q?=E5=B7=A5=E5=9C=B0=E4=B8=8B=E7=9A=84=E7=BB=93=E6=9E=84=E7=89=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/utils/dataRange.js | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/api/app/lib/utils/dataRange.js b/api/app/lib/utils/dataRange.js index cc0a332..ea1c4c6 100644 --- a/api/app/lib/utils/dataRange.js +++ b/api/app/lib/utils/dataRange.js @@ -136,10 +136,17 @@ module.exports = function (app, opts) { LEFT JOIN t_structuregroup_structure ON t_structuregroup_structure.structuregroup = t_project_structuregroup.structuregroup + LEFT JOIN + t_project_construction + ON t_project_construction.project = t_project.id + LEFT JOIN + t_structure_site + ON t_structure_site.siteid = t_project_construction.construction RIGHT JOIN t_structure ON t_structure.id = t_project_structure.structure OR t_structure.id = t_structuregroup_structure.structure + OR t_structure.id = t_structure_site.structid WHERE project_state != -1 AND