d21ad464ff9a349382cd58e2b001595f3b46a2cf.svn-base 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. package org.jeecg.modules.demo.bussMapQuery.controller;
  2. import java.util.Collections;
  3. import java.util.List;
  4. public class QueryResult {
  5. protected List<QueryRecord> records;
  6. protected int total;
  7. protected int size;
  8. protected int current;
  9. public QueryResult(){
  10. this.records = Collections.emptyList();
  11. this.total = 0;
  12. this.size = 10;
  13. this.current = 1;
  14. }
  15. public QueryResult(List<QueryRecord> records, int total, int size, int current) {
  16. this.records = records;
  17. this.total = total;
  18. this.size = size;
  19. this.current = current;
  20. }
  21. public List<QueryRecord> getRecords() {
  22. return records;
  23. }
  24. public void setRecords(List<QueryRecord> records) {
  25. this.records = records;
  26. }
  27. public int getTotal() {
  28. return total;
  29. }
  30. public void setTotal(int total) {
  31. this.total = total;
  32. }
  33. public int getSize() {
  34. return size;
  35. }
  36. public void setSize(int size) {
  37. this.size = size;
  38. }
  39. public int getCurrent() {
  40. return current;
  41. }
  42. public void setCurrent(int current) {
  43. this.current = current;
  44. }
  45. }