2021-05-30 02:25:14 +08:00
|
|
|
package com.ruoyi.demo.mapper;
|
|
|
|
|
2021-12-13 03:49:05 +00:00
|
|
|
import com.baomidou.mybatisplus.core.conditions.Wrapper;
|
|
|
|
import com.baomidou.mybatisplus.core.toolkit.Constants;
|
|
|
|
import com.ruoyi.common.annotation.DataColumn;
|
|
|
|
import com.ruoyi.common.annotation.DataPermission;
|
2021-06-18 15:32:23 +08:00
|
|
|
import com.ruoyi.common.core.mybatisplus.core.BaseMapperPlus;
|
2021-06-10 21:18:58 +08:00
|
|
|
import com.ruoyi.demo.domain.TestTree;
|
2021-12-13 03:49:05 +00:00
|
|
|
import org.apache.ibatis.annotations.Param;
|
|
|
|
|
|
|
|
import java.io.Serializable;
|
|
|
|
import java.util.Collection;
|
|
|
|
import java.util.List;
|
2021-05-30 02:25:14 +08:00
|
|
|
|
|
|
|
/**
|
|
|
|
* 测试树表Mapper接口
|
|
|
|
*
|
|
|
|
* @author Lion Li
|
2021-07-26 13:13:46 +08:00
|
|
|
* @date 2021-07-26
|
2021-05-30 02:25:14 +08:00
|
|
|
*/
|
|
|
|
public interface TestTreeMapper extends BaseMapperPlus<TestTree> {
|
|
|
|
|
2021-12-13 03:49:05 +00:00
|
|
|
@Override
|
|
|
|
@DataPermission({
|
|
|
|
@DataColumn(key = "deptName", value = "dept_id"),
|
|
|
|
@DataColumn(key = "userName", value = "user_id")
|
|
|
|
})
|
|
|
|
List<TestTree> selectList(@Param(Constants.WRAPPER) Wrapper<TestTree> queryWrapper);
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@DataPermission({
|
|
|
|
@DataColumn(key = "deptName", value = "dept_id"),
|
|
|
|
@DataColumn(key = "userName", value = "user_id")
|
|
|
|
})
|
|
|
|
int updateById(@Param(Constants.ENTITY) TestTree entity);
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@DataPermission({
|
|
|
|
@DataColumn(key = "deptName", value = "dept_id"),
|
|
|
|
@DataColumn(key = "userName", value = "user_id")
|
|
|
|
})
|
|
|
|
int deleteBatchIds(@Param(Constants.COLLECTION) Collection<? extends Serializable> idList);
|
2021-05-30 02:25:14 +08:00
|
|
|
}
|