From 985b257a179dad4abe3d5dd98fe9780eaf5d7b71 Mon Sep 17 00:00:00 2001 From: zhangyuan Date: Mon, 30 May 2022 17:19:12 +0800 Subject: [PATCH] bug --- .../resources/mapper/stats/FactAgencyUserHouseDailyDao.xml | 4 ++++ .../main/resources/mapper/stats/FactGridUserHouseDailyDao.xml | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/stats/FactAgencyUserHouseDailyDao.xml b/epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/stats/FactAgencyUserHouseDailyDao.xml index dea7c44ca8..f5ed40e7ca 100644 --- a/epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/stats/FactAgencyUserHouseDailyDao.xml +++ b/epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/stats/FactAgencyUserHouseDailyDao.xml @@ -49,6 +49,8 @@ FROM fact_agency_user_house_daily a LEFT JOIN dim_agency d ON d.id = a.AGENCY_ID + WHERE + d.DEL_FLAG = '0' AND a.CUSTOMER_ID = #{customerId} AND d.CUSTOMER_ID = #{customerId} @@ -100,6 +102,8 @@ FROM fact_agency_user_house_daily a LEFT JOIN dim_agency d ON d.id = a.AGENCY_ID + WHERE + d.DEL_FLAG = '0' AND a.CUSTOMER_ID = #{customerId} AND d.CUSTOMER_ID = #{customerId} diff --git a/epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/stats/FactGridUserHouseDailyDao.xml b/epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/stats/FactGridUserHouseDailyDao.xml index 301d4e8dfa..d7765a73ef 100644 --- a/epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/stats/FactGridUserHouseDailyDao.xml +++ b/epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/stats/FactGridUserHouseDailyDao.xml @@ -48,6 +48,8 @@ FROM fact_grid_user_house_daily d LEFT JOIN dim_grid g ON g.id = d.GRID_ID + WHERE + g.DEL_FLAG = '0' AND g.CUSTOMER_ID = #{customerId} AND d.CUSTOMER_ID = #{customerId} @@ -90,6 +92,8 @@ fact_grid_user_house_daily d LEFT JOIN dim_grid g ON g.id = d.GRID_ID LEFT JOIN dim_agency a ON a.id = d.PID + WHERE + g.DEL_FLAG = '0' AND g.CUSTOMER_ID = #{customerId} AND d.CUSTOMER_ID = #{customerId}