mysql 限流 查询
select * from order where pid=1017 and addtime BETWEEN CONCAT( DATE_FORMAT(NOW(),'%Y-%m-%d'),' 00:00:00') AND
CONCAT( DATE_FORMAT(NOW(),'%Y-%m-%d'),' 23:59:59') group by ip having count(ip)>=10
select * from order where pid=1017 and addtime BETWEEN CONCAT( DATE_FORMAT(NOW(),'%Y-%m-%d'),' 00:00:00') AND
CONCAT( DATE_FORMAT(NOW(),'%Y-%m-%d'),' 23:59:59') group by ip having count(ip)>=10