1
This commit is contained in:
parent
0221b1073a
commit
9e9c793a90
@ -45,6 +45,12 @@ public class DriveSchoolSwiperController extends BaseController
|
|||||||
@GetMapping("/pclist")
|
@GetMapping("/pclist")
|
||||||
@PermitAll
|
@PermitAll
|
||||||
public CommonResult pclist(DriveSchoolSwiper driveSchoolSwiper) {
|
public CommonResult pclist(DriveSchoolSwiper driveSchoolSwiper) {
|
||||||
|
if(driveSchoolSwiper.getPageNum() == null) {
|
||||||
|
driveSchoolSwiper.setPageNum(1);
|
||||||
|
}
|
||||||
|
if(driveSchoolSwiper.getPageSize() == null) {
|
||||||
|
driveSchoolSwiper.setPageSize(100);
|
||||||
|
}
|
||||||
Page<DriveSchoolSwiper> page = new Page<>(driveSchoolSwiper.getPageNum(), driveSchoolSwiper.getPageSize());
|
Page<DriveSchoolSwiper> page = new Page<>(driveSchoolSwiper.getPageNum(), driveSchoolSwiper.getPageSize());
|
||||||
IPage<DriveSchoolSwiper> driveSchoolSeparateIPage = driveSchoolSwiperService.selectDriveSchoolSwiperPclist(driveSchoolSwiper, page);
|
IPage<DriveSchoolSwiper> driveSchoolSeparateIPage = driveSchoolSwiperService.selectDriveSchoolSwiperPclist(driveSchoolSwiper, page);
|
||||||
|
|
||||||
|
@ -8,7 +8,7 @@ import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
|||||||
import com.baomidou.mybatisplus.core.metadata.IPage;
|
import com.baomidou.mybatisplus.core.metadata.IPage;
|
||||||
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
|
||||||
import org.apache.ibatis.annotations.Mapper;
|
import org.apache.ibatis.annotations.Mapper;
|
||||||
import org.springframework.data.repository.query.Param;
|
import org.apache.ibatis.annotations.Param;
|
||||||
|
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -111,23 +111,23 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN"
|
|||||||
FROM drive_school_swiper
|
FROM drive_school_swiper
|
||||||
<where>
|
<where>
|
||||||
deleted = 0
|
deleted = 0
|
||||||
<if test="driveSchoolSwiper != null">
|
|
||||||
<if test="driveSchoolSwiper.swiperName != null and driveSchoolSwiper.swiperName != ''">
|
<if test="entity.swiperName != null and entity.swiperName != ''">
|
||||||
AND swiper_name LIKE CONCAT('%', #{driveSchoolSwiper.swiperName}, '%')
|
AND swiper_name LIKE CONCAT('%', #{entity.swiperName}, '%')
|
||||||
</if>
|
</if>
|
||||||
<if test="driveSchoolSwiper.swiperPicture != null and driveSchoolSwiper.swiperPicture != ''">
|
<if test="entity.swiperPicture != null and entity.swiperPicture != ''">
|
||||||
AND swiper_picture = #{driveSchoolSwiper.swiperPicture}
|
AND swiper_picture = #{entity.swiperPicture}
|
||||||
</if>
|
</if>
|
||||||
<if test="driveSchoolSwiper.jumpUrl != null and driveSchoolSwiper.jumpUrl != ''">
|
<if test="entity.jumpUrl != null and entity.jumpUrl != ''">
|
||||||
AND jump_url = #{driveSchoolSwiper.jumpUrl}
|
AND jump_url = #{entity.jumpUrl}
|
||||||
</if>
|
</if>
|
||||||
<if test="driveSchoolSwiper.deptId != null">
|
<if test="entity.deptId != null">
|
||||||
AND dept_id = #{driveSchoolSwiper.deptId}
|
AND dept_id = #{entity.deptId}
|
||||||
</if>
|
</if>
|
||||||
<if test="driveSchoolSwiper.listOrder != null">
|
<if test="entity.listOrder != null">
|
||||||
AND list_order = #{driveSchoolSwiper.listOrder}
|
AND list_order = #{entity.listOrder}
|
||||||
</if>
|
</if>
|
||||||
</if>
|
|
||||||
|
|
||||||
</where>
|
</where>
|
||||||
ORDER BY list_order ASC
|
ORDER BY list_order ASC
|
||||||
|
@ -303,6 +303,9 @@ yudao:
|
|||||||
- /app-api/** #小程序端接口,不区分租户
|
- /app-api/** #小程序端接口,不区分租户
|
||||||
- /repair/tickets/print/**
|
- /repair/tickets/print/**
|
||||||
- /admin-api/repair/tickets/print/**
|
- /admin-api/repair/tickets/print/**
|
||||||
|
- /admin-api/jx/auth/**
|
||||||
|
- /admin-api/jx/**
|
||||||
|
- /admin-api/jx/auth/getAppInfo
|
||||||
ignore-tables:
|
ignore-tables:
|
||||||
- system_tenant
|
- system_tenant
|
||||||
- system_tenant_package
|
- system_tenant_package
|
||||||
|
Loading…
Reference in New Issue
Block a user