소스 검색

扫码记录,分页查询

wanghaicheng 5 년 전
부모
커밋
fd55327940
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      lift-business-service/src/main/java/cn/com/ty/lift/business/maintenance/controller/ScanRecordController.java

+ 1 - 1
lift-business-service/src/main/java/cn/com/ty/lift/business/maintenance/controller/ScanRecordController.java

@@ -96,7 +96,7 @@ public class ScanRecordController {
      */
     @PostMapping("record/list")
     public RestResponse<?> list(@RequestBody ScanRecordRequest record) {
-        Page<ScanRecord> scanRecordPage = new Page<>(record.getPageNum(), record.getPageNum());
+        IPage<ScanRecord> scanRecordPage = new Page<>(record.getPageNum(), record.getPageSize());
         IPage<ScanRecord> page = scanRecordService.page(scanRecordPage, Wrappers
                 .<ScanRecord>query()
                 .eq(record.getOpenId() != null, "open_id", record.getOpenId()));