日期筛选

This commit is contained in:
2025-02-21 09:59:01 +08:00
parent 240706c11c
commit df8345f504
6 changed files with 35 additions and 8 deletions

View File

@ -4,6 +4,7 @@ import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import com.ycwl.basic.model.common.BaseQueryParameterReq;
import com.ycwl.basic.model.pc.faceDetectLog.entity.FaceDetectLog;
import com.ycwl.basic.model.pc.faceDetectLog.req.FaceDetectLogReqQuery;
import com.ycwl.basic.service.pc.FaceDetectLogService;
import com.ycwl.basic.utils.ApiResponse;
import org.springframework.beans.factory.annotation.Autowired;
@ -21,9 +22,9 @@ public class FaceDetectLogController {
private FaceDetectLogService service;
@PostMapping("/page")
public ApiResponse<PageInfo<FaceDetectLog>> pageQuery(@RequestBody BaseQueryParameterReq req) {
public ApiResponse<PageInfo<FaceDetectLog>> pageQuery(@RequestBody FaceDetectLogReqQuery req) {
PageHelper.startPage(req.getPageNum(), req.getPageSize());
List<FaceDetectLog> list = service.listByTimeDesc();
List<FaceDetectLog> list = service.listByTimeDesc(req);
PageInfo<FaceDetectLog> pageInfo = new PageInfo<>(list);
return ApiResponse.success(pageInfo);
}