1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
@Operation(summary = "查询")
@GetMapping("")
public PageInfo<DemoVO> queryList(
@Parameter(description = "页码,不传查所有", example = "1") @Min(1) @RequestParam(required = false) Integer pageNum,
@Parameter(description = "每页数量,不传查所有", example = "10") @Min(1) @Max(100) @RequestParam(required = false) Integer pageSize,
@Parameter(description = "是否包含车队的预约记录, true:包含, false:不包含, 默认为true", example = "true") @RequestParam(required = false, defaultValue = "true") Boolean containFleet,
@Parameter(description = "名称", example = "zhangSan") @RequestParam(required = false) String name,
@Parameter(description = "上期结转电量", example = "1.0") @RequestParam(required = false) BigDecimal lastEle,
@Parameter(description = "开始日期", example = "1970-01-01") @RequestParam(required = false) LocalDate startDate,
@Parameter(description = "结束日期", example = "1970-01-01") @RequestParam(required = false) LocalDate endDate,
@Schema(description = "开始时间", example = "00:00:00", type = "string", format = "time") @RequestParam(required = false) LocalTime startTime,
@Schema(description = "结束时间", example = "00:00:00", type = "string", format = "time") @RequestParam(required = false) LocalTime endTime,
@Parameter(description = "开始日期时间", example = "1970-01-01T00:00:00Z") @RequestParam(required = false) ZonedDateTime startDateTime,
@Parameter(description = "结束日期时间", example = "1970-01-01T00:00:00Z") @RequestParam(required = false) ZonedDateTime endDateTime,
@Parameter(description = "用户活跃") @RequestParam(required = false) UserStatusEnum userStatus,
@Parameter(description = "用户类型") @RequestParam(required = false, name = "userType") List<String> userTypeList) {
List<DemoVO> demoVoList = demoService.list(pageNum, pageSize, name, startDate, endDate, startTime, endTime, startDateTime, endDateTime, userTypeList);
return new PageInfo<>(demoVoList);
}
|