From 1e42cd865621fe8ba119698f01c617bb5b5473fa Mon Sep 17 00:00:00 2001 From: yinzuomei <576302893@qq.com> Date: Tue, 20 Apr 2021 16:26:48 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8C=89=E5=A4=A9=E7=BB=9F=E8=AE=A1=EF=BC=9A?= =?UTF-8?q?=E7=BD=91=E6=A0=BC=E5=86=85=E5=90=84=E4=B8=AA=E5=88=86=E7=B1=BB?= =?UTF-8?q?=E4=B8=8B=E7=9A=84=E9=A1=B9=E7=9B=AE=E6=80=BB=E6=95=B0=EF=BC=8C?= =?UTF-8?q?sql=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../extract/FactOriginProjectCategoryDailyDao.xml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/extract/FactOriginProjectCategoryDailyDao.xml b/epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/extract/FactOriginProjectCategoryDailyDao.xml index 8115c5d1ce..1ed0c4d8c2 100644 --- a/epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/extract/FactOriginProjectCategoryDailyDao.xml +++ b/epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/evaluationindex/extract/FactOriginProjectCategoryDailyDao.xml @@ -32,7 +32,7 @@ c.DEL_FLAG = '0' AND c.CUSTOMER_ID = #{customerId} AND c.`LEVEL` = '2' - + AND p.GRID_ID != '' GROUP BY c.CUSTOMER_ID, c.CATEGORY_CODE, @@ -54,6 +54,7 @@ LEFT JOIN fact_origin_project_main_daily p ON ( c.PROJECT_Id = p.id and p.del_flag='0' AND p.GRID_ID != '') WHERE c.DEL_FLAG = '0' + AND p.GRID_ID != '' AND c.CUSTOMER_ID = #{customerId} GROUP BY c.CUSTOMER_ID, @@ -84,6 +85,7 @@ ) AND c.`LEVEL` = '2' + AND p.GRID_ID = '' GROUP BY c.CUSTOMER_ID, c.CATEGORY_CODE, c.`LEVEL`, p.AGENCY_ID, p.PID, P.PIDS UNION ALL SELECT @@ -103,6 +105,7 @@ p.AGENCY_ID = #{orgId} ) + AND p.GRID_ID = '' GROUP BY c.CUSTOMER_ID, left(c.CATEGORY_CODE, 4), c.`LEVEL`, p.PID, p.AGENCY_ID, P.PIDS