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}