Commit d2e85d083e70458107eeee2faf7ff71be9d460c9

Authored by liquanyu
1 parent a33e4d0e6d

新曾高危优化

Showing 1 changed file with 2 additions and 3 deletions

platform-operate-api/src/main/java/com/lyms/platform/operate/web/facade/AntExRecordFacade.java View file @ d2e85d0
... ... @@ -825,6 +825,7 @@
825 825 int index = request.getPage() * request.getLimit() - request.getLimit();
826 826 int from = request.getPage() * request.getLimit();
827 827 System.out.println("index = " + index + " from = " + from);
  828 +
828 829 List<Map<String,Object>> pages = ids.subList(index,from);
829 830 if (CollectionUtils.isEmpty(pages))
830 831 {
831 832  
... ... @@ -838,11 +839,9 @@
838 839 }
839 840  
840 841 pageAntExRecordsQuery.setNeed("true");
841   - pageAntExRecordsQuery.setPage(request.getPage());
842   - pageAntExRecordsQuery.setLimit(request.getLimit());
843 842 pageAntExRecordsQuery.setIds(recordIds);
844 843 pageAntExRecordsQuery.setLevelId(request.getLevel());
845   -
  844 + System.out.println("ids = " + ids.size());
846 845  
847 846 List<AntExRecordModel> pageAntExRecords = recordService.queryAntExRecords(pageAntExRecordsQuery, Sort.Direction.DESC, "checkTime",ids.size());
848 847 if (CollectionUtils.isNotEmpty(pageAntExRecords))