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
| package com.lf.server.mapper.all;
|
| import com.baomidou.mybatisplus.core.mapper.BaseMapper;
| import org.apache.ibatis.annotations.Param;
| import org.apache.ibatis.annotations.Select;
|
| import java.util.List;
|
| /**
| * 基础Mapper
| * @author WWW
| * @param <T> 泛型
| */
| public interface BasicMapper<T> extends BaseMapper<T> {
| /**
| * 模糊搜索字段
| *
| * @param tab 表名
| * @param field 字段
| * @param value 值
| * @return 结果列表
| */
| @Select("select ${field} from ${tab} where ${field} like #{value} order by ${field} limit 10")
| public List<String> selectFieldFuzzy(@Param("tab") String tab, @Param("field") String field, @Param("value") String value);
| }
|
|