懒羊羊
2023-11-25 9bd5461a1387becd4da03158061a1ed17ddf6a6c
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
package ${package.Mapper};
 
import ${package.Entity}.${entity};
import ${package.EntitySpecParams}.${entity}Param;
import ${package.EntitySpecResult}.${entity}Result;
import ${superMapperClassPackage};
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
 * <p>
 * $!{table.comment} Mapper 接口
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
#if(${kotlin})
interface ${table.mapperName} : ${superMapperClass}<${entity}>
#else
public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
 
    /**
     * 获取列表
     *
     * @author ${author}
     * @Date ${date}
     */
    List<${entity}Result> customList(@Param("paramCondition") ${entity}Param paramCondition);
 
    /**
     * 获取map列表
     *
     * @author ${author}
     * @Date ${date}
     */
    List<Map<String, Object>> customMapList(@Param("paramCondition") ${entity}Param paramCondition);
 
    /**
     * 获取分页实体列表
     *
     * @author ${author}
     * @Date ${date}
     */
    Page<${entity}Result> customPageList(@Param("page") Page page, @Param("paramCondition") ${entity}Param paramCondition);
 
    /**
     * 获取分页map列表
     *
     * @author ${author}
     * @Date ${date}
     */
    Page<Map<String, Object>> customPageMapList(@Param("page") Page page, @Param("paramCondition") ${entity}Param paramCondition);
 
}
#end