and params['card_content_type'] in ('diary','question','answer','qa','topic','user_post','doctor_post','service')
and params['in_page_pos']!='seckill'
group by concat_ws('-',substr(partition_date,1,4),substr(partition_date,5,2),substr(partition_date,7,2))
,cl_id
,case when params['card_content_type'] in ('diary','topic') and (params['redirect_content_type'] not in ('service') or params['redirect_content_type'] is null) then '日记'