zxl
5 天以前 2701dca44e1972afe9956ced2f949d2998c1bb4b
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
package cn.lili.modules.page.mapper;
 
import cn.lili.modules.page.entity.dos.PageData;
import cn.lili.modules.page.entity.vos.PageDataListVO;
import cn.lili.modules.page.entity.vos.PageDataVO;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
 
/**
 * 楼层装修设置数据处理层
 *
 * @author paulGao
 * @since 2020/12/7 11:26
 */
public interface PageDataMapper extends BaseMapper<PageData> {
 
    /**
     * 获取页面数据VO
     *
     * @param queryWrapper 查询条件
     * @return 页面数据VO
     */
    @Select("SELECT page_data FROM li_page_data ${ew.customSqlSegment}")
    PageDataVO getPageData(@Param(Constants.WRAPPER) Wrapper<PageDataVO> queryWrapper);
 
    /**
     * 获取页面数量
     *
     * @param queryWrapper 查询条件
     * @return 页面数量
     */
    @Select("SELECT COUNT(id) FROM li_page_data ${ew.customSqlSegment}")
    Integer getPageDataNum(@Param(Constants.WRAPPER) Wrapper<PageData> queryWrapper);
 
    /**
     * 获取页面数据分页
     *
     * @param page         页面
     * @param queryWrapper 查询条件
     * @return 页面数据分页
     */
    @Select("SELECT id,name,page_show FROM li_page_data ${ew.customSqlSegment}")
    IPage<PageDataListVO> getPageDataList(IPage<PageDataListVO> page, @Param(Constants.WRAPPER) Wrapper<PageDataListVO> queryWrapper);
 
}