fix(services/download_total): fix download_total slow sql on `date >= $start and date <= $end`

Use `date in ($ranges)` instead.

Closes #540
Merge pull request #542 from cnpm/slow-sql

fix(services/download_total): fix download_total slow sql