Authored by jack

去掉分页

@@ -101,7 +101,7 @@ public class RabbitmqCtrl { @@ -101,7 +101,7 @@ public class RabbitmqCtrl {
101 101
102 DEBUG.info("Query the queues of mo {}", request.getMoId()); 102 DEBUG.info("Query the queues of mo {}", request.getMoId());
103 103
104 - BaseResponse<PageResponse<QueueInfo>> baseResponse = new BaseResponse(); 104 + BaseResponse baseResponse = new BaseResponse();
105 105
106 QueueView oneView = InterVar.queueViewMaps.get(Integer.parseInt(request.getMoId())); 106 QueueView oneView = InterVar.queueViewMaps.get(Integer.parseInt(request.getMoId()));
107 107
@@ -123,7 +123,7 @@ public class RabbitmqCtrl { @@ -123,7 +123,7 @@ public class RabbitmqCtrl {
123 } 123 }
124 } 124 }
125 125
126 - List<QueueInfo> selectedList = new ArrayList<>(); 126 + /*List<QueueInfo> selectedList = new ArrayList<>();
127 127
128 int start = (request.getCurrentPage() - 1) * request.getPageSize(); 128 int start = (request.getCurrentPage() - 1) * request.getPageSize();
129 129
@@ -134,9 +134,9 @@ public class RabbitmqCtrl { @@ -134,9 +134,9 @@ public class RabbitmqCtrl {
134 for (int i = 0; i < realCount; i++) { 134 for (int i = 0; i < realCount; i++) {
135 135
136 selectedList.add(queuesList.get(start + i)); 136 selectedList.add(queuesList.get(start + i));
137 - } 137 + }*/
138 138
139 - PageResponse<QueueInfo> response = new PageResponse<>(); 139 + /*PageResponse<QueueInfo> response = new PageResponse<>();
140 140
141 response.setCurrentPage(request.getCurrentPage()); 141 response.setCurrentPage(request.getCurrentPage());
142 142
@@ -144,11 +144,11 @@ public class RabbitmqCtrl { @@ -144,11 +144,11 @@ public class RabbitmqCtrl {
144 144
145 response.setPageSize(request.getPageSize()); 145 response.setPageSize(request.getPageSize());
146 146
147 - response.setTotalPage(queuesList.size() / request.getPageSize() + 1); 147 + response.setTotalPage(queuesList.size() / request.getPageSize() + 1);*/
148 148
149 - response.setRows(selectedList); 149 +/* response.setRows(selectedList);*/
150 150
151 - baseResponse.setData(response); 151 + baseResponse.setData(queuesList);
152 } 152 }
153 153
154 return baseResponse; 154 return baseResponse;