modify the sql
Merge pull request #397 from jialinsun/master

cat-agent 重构，app linechart
Merge branch 'master' of github.com:dianping/cat
refactor the code
Merge pull request #398 from youyong205/master

refactor
重构app graph linechart