@RequestMapping("node-onoffline-log-get")
    public RestfulResponse getNodeOnofflineLog(NodeOnOfflineLogPaginationReq request) {
        RestfulResponse response = new RestfulResponse();
        Long results = appContext.getBackendNodeOnOfflineLogAccess().count(request);
        response.setResults(results.intValue());
        if (results > 0) {
            List<NodeOnOfflineLog> rows = appContext.getBackendNodeOnOfflineLogAccess().select(request);
            response.setRows(rows);
        } else {
            response.setRows(new ArrayList<Object>(0));
        }
        response.setSuccess(true);
        return response;
    }
@author Robert HG (254963746@qq.com) on 5/11/15.
lts-admin/src/main/java/com/github/ltsopensource/admin/web/api/NodeApi.java