select * from t_class_info where place_id = 10 and date_format(now(),'%Y-%m-%d-%H-%i-%S')>=begin_date and date_format(now(),'%Y-%m-%d-%H-%i-%S')<=date_add(end_date, interval '1 00:00:00' day_second)
参考:
select * from t_class_info where place_id = 10 and date_format(now(),'%Y-%m-%d-%H-%i-%S')>=begin_date and date_format(now(),'%Y-%m-%d-%H-%i-%S')<=date_add(end_date, interval '1 00:00:00' day_second)
参考: