--- src/main/resources/mybatis/mapper/main/adminMain-SQL.xml
+++ src/main/resources/mybatis/mapper/main/adminMain-SQL.xml
... | ... | @@ -63,7 +63,7 @@ |
63 | 63 |
SELECT ai.dates |
64 | 64 |
, array_agg(authrt_nm) AS authrt_nm |
65 | 65 |
, array_agg(COALESCE(ucs.cntn_nope, 0)) AS cntn_nope |
66 |
- FROM (SELECT generate_series((now() + '-10 days') , now(), '1 day'::interval)::date AS dates, authrt_cd, authrt_nm FROM authrt_info) AS ai |
|
66 |
+ 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 |
|
67 | 67 |
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 |
68 | 68 |
ON dates = ucs.cntn_date |
69 | 69 |
AND ai.authrt_cd = ucs.authrt_cd |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?