package com.dl.demo.mapper; import com.baomidou.mybatisplus.core.conditions.Wrapper; import com.baomidou.mybatisplus.core.metadata.IPage; import com.baomidou.mybatisplus.core.toolkit.Constants; import com.baomidou.mybatisplus.extension.plugins.pagination.Page; import com.dl.common.annotation.DataColumn; import com.dl.common.annotation.DataPermission; import com.dl.common.core.mapper.BaseMapperPlus; import com.dl.demo.domain.TestDemo; import com.dl.demo.domain.vo.TestDemoVo; import org.apache.ibatis.annotations.Param; import java.util.Collection; import java.util.List; /** * 测试单表Mapper接口 * * @author Lion Li * @date 2021-07-26 */ public interface TestDemoMapper extends BaseMapperPlus { @DataPermission({ @DataColumn(key = "deptName", value = "dept_id"), @DataColumn(key = "userName", value = "user_id") }) Page customPageList(@Param("page") Page page, @Param("ew") Wrapper wrapper); @Override @DataPermission({ @DataColumn(key = "deptName", value = "dept_id"), @DataColumn(key = "userName", value = "user_id") })

> P selectPage(P page, @Param(Constants.WRAPPER) Wrapper queryWrapper); @Override @DataPermission({ @DataColumn(key = "deptName", value = "dept_id"), @DataColumn(key = "userName", value = "user_id") }) List selectList(@Param(Constants.WRAPPER) Wrapper queryWrapper); @Override @DataPermission({ @DataColumn(key = "deptName", value = "dept_id"), @DataColumn(key = "userName", value = "user_id") }) int updateById(@Param(Constants.ENTITY) TestDemo entity); @Override @DataPermission({ @DataColumn(key = "deptName", value = "dept_id"), @DataColumn(key = "userName", value = "user_id") }) int deleteBatchIds(@Param(Constants.COLL) Collection idList); }