|
|
@ -29,7 +29,8 @@ |
|
|
|
g.UPDATED_TIME AS "updatedTime", |
|
|
|
if(exists( select gr.id from guide_reader gr |
|
|
|
where gr.del_flag='0' |
|
|
|
and gr.GUIDE_ID=g.id),1,0) AS readFlag |
|
|
|
and gr.GUIDE_ID=g.id |
|
|
|
and gr.USER_ID = #{userId}),1,0) AS readFlag |
|
|
|
FROM |
|
|
|
guide g |
|
|
|
INNER JOIN guide_category gc ON g.CATEGORY_CODE = gc.CATEGORY_CODE AND gc.DEL_FLAG = 0 AND gc.CUSTOMER_ID = #{customerId} |
|
|
|