查未来时间段
SELECT * FROM sp_green_food WHERE DATEDIFF(end_date,NOW())<90 AND DATEDIFF(end_date,NOW())>=30
查过去时间段
a.end_date between date_sub(now(),interval ${start} DAY) and date_sub(now(),interval ${end} DAY)
查未来时间段
SELECT * FROM sp_green_food WHERE DATEDIFF(end_date,NOW())<90 AND DATEDIFF(end_date,NOW())>=30
查过去时间段
a.end_date between date_sub(now(),interval ${start} DAY) and date_sub(now(),interval ${end} DAY)