ads367 / yj_portal star
박정하 박정하 07-02
240702 박정하 관리자 메인 페이지 방문자 접속 통계 수정
@77e12654069e981d74a9068733c524a8682bae3b
src/main/resources/mybatis/mapper/main/adminMain-SQL.xml
--- src/main/resources/mybatis/mapper/main/adminMain-SQL.xml
+++ src/main/resources/mybatis/mapper/main/adminMain-SQL.xml
@@ -63,7 +63,7 @@
         SELECT ai.dates
              , array_agg(authrt_nm) AS authrt_nm
              , array_agg(COALESCE(ucs.cntn_nope, 0)) AS cntn_nope
-        FROM (SELECT generate_series((now() + '-10 days') , now(), '1 day'::interval)::date AS dates, authrt_cd, authrt_nm FROM authrt_info) AS ai
+        FROM (SELECT generate_series((now() + '-10 days') , now(), '1 day'::interval)::date AS dates, authrt_cd, authrt_nm FROM authrt_info WHERE use_yn = 'Y') AS ai
         LEFT JOIN (SELECT authrt_cd, to_date(concat(cntn_yr,cntn_mm,cntn_day), 'YYYYMMDD') AS cntn_date, cntn_nope FROM user_cntn_stats) AS ucs
         ON dates = ucs.cntn_date
         AND ai.authrt_cd = ucs.authrt_cd
Add a comment
List