1
This commit is contained in:
parent
ff18d72cb1
commit
59e89c0d58
@ -38,9 +38,10 @@ public class DriveSchoolCarController extends BaseController
|
|||||||
* 查询车辆信息列表
|
* 查询车辆信息列表
|
||||||
*/
|
*/
|
||||||
@GetMapping("/list")
|
@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);
|
IPage<DriveSchoolCar> driveSchoolCarIPage = driveSchoolCarService.selectDriveSchoolCarList(page,driveSchoolCar);
|
||||||
return CommonResult.success(driveSchoolCarIPage);
|
return CommonResult.success(driveSchoolCarIPage);
|
||||||
//return getDataTable(list);
|
//return getDataTable(list);
|
||||||
|
@ -1,6 +1,7 @@
|
|||||||
package cn.iocoder.yudao.module.jx.domain;
|
package cn.iocoder.yudao.module.jx.domain;
|
||||||
|
|
||||||
import cn.iocoder.yudao.annotation.Excel;
|
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 cn.iocoder.yudao.module.jx.core.page.TenantBaDO;
|
||||||
import com.fasterxml.jackson.annotation.JsonFormat;
|
import com.fasterxml.jackson.annotation.JsonFormat;
|
||||||
import lombok.Data;
|
import lombok.Data;
|
||||||
@ -17,7 +18,7 @@ import java.util.Date;
|
|||||||
* @date 2024-05-08
|
* @date 2024-05-08
|
||||||
*/
|
*/
|
||||||
@Data
|
@Data
|
||||||
public class DriveSchoolCar extends TenantBaDO
|
public class DriveSchoolCar extends TenantBaseDO
|
||||||
{
|
{
|
||||||
private static final long serialVersionUID = 1L;
|
private static final long serialVersionUID = 1L;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user