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<TestDemoMapper, TestDemo, TestDemoVo> {
|
|
@DataPermission({
|
@DataColumn(key = "deptName", value = "dept_id"),
|
@DataColumn(key = "userName", value = "user_id")
|
})
|
Page<TestDemoVo> customPageList(@Param("page") Page<TestDemo> page, @Param("ew") Wrapper<TestDemo> wrapper);
|
|
@Override
|
@DataPermission({
|
@DataColumn(key = "deptName", value = "dept_id"),
|
@DataColumn(key = "userName", value = "user_id")
|
})
|
<P extends IPage<TestDemo>> P selectPage(P page, @Param(Constants.WRAPPER) Wrapper<TestDemo> queryWrapper);
|
|
@Override
|
@DataPermission({
|
@DataColumn(key = "deptName", value = "dept_id"),
|
@DataColumn(key = "userName", value = "user_id")
|
})
|
List<TestDemo> selectList(@Param(Constants.WRAPPER) Wrapper<TestDemo> 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);
|
}
|