zhangyuan 3 years ago
parent
commit
985b257a17
  1. 4
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/stats/FactAgencyUserHouseDailyDao.xml
  2. 4
      epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/stats/FactGridUserHouseDailyDao.xml

4
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/stats/FactAgencyUserHouseDailyDao.xml

@ -49,6 +49,8 @@
FROM FROM
fact_agency_user_house_daily a fact_agency_user_house_daily a
LEFT JOIN dim_agency d ON d.id = a.AGENCY_ID LEFT JOIN dim_agency d ON d.id = a.AGENCY_ID
WHERE
d.DEL_FLAG = '0'
<if test="customerId != null and customerId != ''"> <if test="customerId != null and customerId != ''">
AND a.CUSTOMER_ID = #{customerId} AND a.CUSTOMER_ID = #{customerId}
AND d.CUSTOMER_ID = #{customerId} AND d.CUSTOMER_ID = #{customerId}
@ -100,6 +102,8 @@
FROM FROM
fact_agency_user_house_daily a fact_agency_user_house_daily a
LEFT JOIN dim_agency d ON d.id = a.AGENCY_ID LEFT JOIN dim_agency d ON d.id = a.AGENCY_ID
WHERE
d.DEL_FLAG = '0'
<if test="customerId != null and customerId != ''"> <if test="customerId != null and customerId != ''">
AND a.CUSTOMER_ID = #{customerId} AND a.CUSTOMER_ID = #{customerId}
AND d.CUSTOMER_ID = #{customerId} AND d.CUSTOMER_ID = #{customerId}

4
epmet-module/data-statistical/data-statistical-server/src/main/resources/mapper/stats/FactGridUserHouseDailyDao.xml

@ -48,6 +48,8 @@
FROM FROM
fact_grid_user_house_daily d fact_grid_user_house_daily d
LEFT JOIN dim_grid g ON g.id = d.GRID_ID LEFT JOIN dim_grid g ON g.id = d.GRID_ID
WHERE
g.DEL_FLAG = '0'
<if test="customerId != null and customerId != ''"> <if test="customerId != null and customerId != ''">
AND g.CUSTOMER_ID = #{customerId} AND g.CUSTOMER_ID = #{customerId}
AND d.CUSTOMER_ID = #{customerId} AND d.CUSTOMER_ID = #{customerId}
@ -90,6 +92,8 @@
fact_grid_user_house_daily d fact_grid_user_house_daily d
LEFT JOIN dim_grid g ON g.id = d.GRID_ID LEFT JOIN dim_grid g ON g.id = d.GRID_ID
LEFT JOIN dim_agency a ON a.id = d.PID LEFT JOIN dim_agency a ON a.id = d.PID
WHERE
g.DEL_FLAG = '0'
<if test="customerId != null and customerId != ''"> <if test="customerId != null and customerId != ''">
AND g.CUSTOMER_ID = #{customerId} AND g.CUSTOMER_ID = #{customerId}
AND d.CUSTOMER_ID = #{customerId} AND d.CUSTOMER_ID = #{customerId}

Loading…
Cancel
Save