xiangpei
2025-04-18 0aa739db8268b442ab74634289ffed00124a976a
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
package ${package.Mapper};
 
import ${package.Entity}.${entity};
import com.baomidou.mybatisplus.core.metadata.IPage;
import ${superMapperClassPackage};
import ${package.Other}.vo.${voInfo.voName};
import ${package.Other}.form.${formInfo.formName};
import java.util.List;
#if(${mapperAnnotation})
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
#end
 
/**
 * $!{table.comment} Mapper 接口
 *
 * @author ${author}
 * @since ${date}
 */
#if(${mapperAnnotation})
@Mapper
#end
public interface ${table.mapperName} extends ${superMapperClass}<${entity}> {
 
    /**
     * id查找${table.comment}
     * @param id
     * @return
     */
    ${voInfo.voName} getById(Integer id);
 
    /**
    *  分页
    */
    IPage getPage(IPage page, @Param("query") ${entity}Query query);
 
}