提交 | 用户 | 时间
|
71e81e
|
1 |
package ${package.Mapper}; |
懒 |
2 |
|
|
3 |
import ${package.Entity}.${entity}; |
|
4 |
import ${package.EntitySpecParams}.${entity}Param; |
|
5 |
import ${package.EntitySpecResult}.${entity}Result; |
|
6 |
import ${superMapperClassPackage}; |
|
7 |
import com.baomidou.mybatisplus.core.metadata.IPage; |
|
8 |
import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
|
9 |
import org.apache.ibatis.annotations.Param; |
|
10 |
|
|
11 |
import java.util.List; |
|
12 |
import java.util.Map; |
|
13 |
|
|
14 |
/** |
|
15 |
* <p> |
|
16 |
* $!{table.comment} Mapper 接口 |
|
17 |
* </p> |
|
18 |
* |
|
19 |
* @author ${author} |
|
20 |
* @since ${date} |
|
21 |
*/ |
|
22 |
#if(${kotlin}) |
|
23 |
interface ${table.mapperName} : ${superMapperClass}<${entity}> |
|
24 |
#else |
|
25 |
public interface ${table.mapperName} extends ${superMapperClass}<${entity}> { |
|
26 |
|
|
27 |
/** |
|
28 |
* 获取列表 |
|
29 |
* |
|
30 |
* @author ${author} |
|
31 |
* @Date ${date} |
|
32 |
*/ |
|
33 |
List<${entity}Result> customList(@Param("paramCondition") ${entity}Param paramCondition); |
|
34 |
|
|
35 |
/** |
|
36 |
* 获取map列表 |
|
37 |
* |
|
38 |
* @author ${author} |
|
39 |
* @Date ${date} |
|
40 |
*/ |
|
41 |
List<Map<String, Object>> customMapList(@Param("paramCondition") ${entity}Param paramCondition); |
|
42 |
|
|
43 |
/** |
|
44 |
* 获取分页实体列表 |
|
45 |
* |
|
46 |
* @author ${author} |
|
47 |
* @Date ${date} |
|
48 |
*/ |
|
49 |
Page<${entity}Result> customPageList(@Param("page") Page page, @Param("paramCondition") ${entity}Param paramCondition); |
|
50 |
|
|
51 |
/** |
|
52 |
* 获取分页map列表 |
|
53 |
* |
|
54 |
* @author ${author} |
|
55 |
* @Date ${date} |
|
56 |
*/ |
|
57 |
Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ${entity}Param paramCondition); |
|
58 |
|
|
59 |
} |
|
60 |
#end |