select huiyuanid, count(distinct date)from huiyuan_table group by huiyuanid;
#统计某一个会员 select count(distinct date_add(打卡日期, '%Y-%m-%d')) 打卡次数 from huiyuan_table where huiyuanid = '2' and time >= '开始打卡日期' and time < '截止日期';