@Override
    public List<JobClientMDataPo> querySum(MDataPaginationReq request) {
        return new SelectSql(getSqlTemplate())
                .select()
                .columns("timestamp",
                        "SUM(submit_success_num) AS submit_success_num",
                        "SUM(submit_failed_num) AS submit_failed_num",
                        "SUM(fail_store_num) AS fail_store_num",
                        "SUM(submit_fail_store_num) AS submit_fail_store_num",
                        "SUM(handle_feedback_num) AS handle_feedback_num")
                .from()
                .table(getTableName())
                .whereSql(buildWhereSql(request))
                .groupBy(" timestamp ASC ")
                .limit(request.getStart(), request.getLimit())
                .list(RshHandler.JOB_CLIENT_SUM_M_DATA_RSH);
    }
@author Robert HG (254963746@qq.com) on 3/12/16.
lts-admin/src/main/java/com/github/ltsopensource/admin/access/mysql/MysqlBackendJobClientMAccess.java