Compare commits

..

2 Commits

Author SHA1 Message Date
PQZ
254c983fdf Merge branch 'master' of http://122.51.230.86:3000/dianliang/lanan-system 2024-08-30 17:24:09 +08:00
PQZ
db3ed34747 1 2024-08-30 17:23:47 +08:00
6 changed files with 21 additions and 3 deletions

View File

@ -28,6 +28,12 @@ public class DriveSchoolCourseController extends BaseController
@GetMapping("/list")
public CommonResult<IPage<?>> list(DriveSchoolCourse driveSchoolCourse)
{
if(null == driveSchoolCourse.getPageNum()){
driveSchoolCourse.setPageNum(1);
}
if (null == driveSchoolCourse.getPageSize()){
driveSchoolCourse.setPageSize(100);
}
Page<DriveSchoolCourse> page = new Page<>(driveSchoolCourse.getPageNum(), driveSchoolCourse.getPageSize());
IPage<DriveSchoolCourse> driveSchoolCourseIPage = driveSchoolCourseService.selectDriveSchoolCourseList(driveSchoolCourse, page);
return CommonResult.success(driveSchoolCourseIPage);

View File

@ -29,6 +29,12 @@ public class DriveSchoolDynamicController extends BaseController
@GetMapping("/list")
public CommonResult<IPage<?>> list(DriveSchoolDynamic driveSchoolDynamic)
{
if(null == driveSchoolDynamic.getPageNum()){
driveSchoolDynamic.setPageNum(1);
}
if (null == driveSchoolDynamic.getPageSize()){
driveSchoolDynamic.setPageSize(100);
}
Page<DriveSchoolDynamic> page = new Page<>(driveSchoolDynamic.getPageNum(), driveSchoolDynamic.getPageSize());
IPage<DriveSchoolDynamic> driveSchoolDynamicIPage = driveSchoolDynamicService.selectDriveSchoolDynamicList(driveSchoolDynamic, page);
return CommonResult.success(driveSchoolDynamicIPage);

View File

@ -42,6 +42,12 @@ public class DriveSchoolInfoController extends BaseController
@GetMapping("/list")
public CommonResult<IPage<?>> list(DriveSchoolInfo driveSchoolInfo)
{
if(null == driveSchoolInfo.getPageNum()){
driveSchoolInfo.setPageNum(1);
}
if (null == driveSchoolInfo.getPageSize()){
driveSchoolInfo.setPageSize(100);
}
Page<DriveSchoolInfo> page = new Page<>(driveSchoolInfo.getPageNum(), driveSchoolInfo.getPageSize());
IPage<DriveSchoolInfo> driveSchoolInfoIPage = driveSchoolInfoService.selectDriveSchoolInfoList(driveSchoolInfo, page);
return CommonResult.success(driveSchoolInfoIPage);

View File

@ -51,7 +51,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
<include refid="selectDriveSchoolInfoVo"/>
<where>
deleted = 0
<if test="id != null "> and id = #{id}</if>
<if test="entity.id != null "> and id = #{entity.id}</if>
<if test="entity.deptId != null "> and dept_id = #{entity.deptId}</if>
<if test="entity.schoolName != null and entity.schoolName != ''"> and school_name like concat('%', #{entity.schoolName}, '%')</if>
<if test="entity.leaderName != null and entity.leaderName != ''"> and leader_name like concat('%', #{entity.leaderName}, '%')</if>