This commit is contained in:
PQZ 2025-02-25 09:44:21 +08:00
parent ff18d72cb1
commit 59e89c0d58
2 changed files with 5 additions and 3 deletions

View File

@ -38,9 +38,10 @@ public class DriveSchoolCarController extends BaseController
* 查询车辆信息列表
*/
@GetMapping("/list")
public CommonResult<IPage<?>> list(DriveSchoolCar driveSchoolCar)
public CommonResult<IPage<?>> list(DriveSchoolCar driveSchoolCar,@RequestParam(name = "pageNum", defaultValue = "1") Integer pageNum,
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize)
{
Page<DriveSchoolCar> page = new Page<>(driveSchoolCar.getPageNum(), driveSchoolCar.getPageSize());
Page<DriveSchoolCar> page = new Page<>(pageNum, pageSize);
IPage<DriveSchoolCar> driveSchoolCarIPage = driveSchoolCarService.selectDriveSchoolCarList(page,driveSchoolCar);
return CommonResult.success(driveSchoolCarIPage);
//return getDataTable(list);

View File

@ -1,6 +1,7 @@
package cn.iocoder.yudao.module.jx.domain;
import cn.iocoder.yudao.annotation.Excel;
import cn.iocoder.yudao.framework.tenant.core.db.TenantBaseDO;
import cn.iocoder.yudao.module.jx.core.page.TenantBaDO;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
@ -17,7 +18,7 @@ import java.util.Date;
* @date 2024-05-08
*/
@Data
public class DriveSchoolCar extends TenantBaDO
public class DriveSchoolCar extends TenantBaseDO
{
private static final long serialVersionUID = 1L;