forked from kidgrow-microservices-platform

侯瑞军
2021-03-31 90f2acaa6c61d5a60822d4fee5a44ec3c5404f67
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
package ${package}.${moduleName}.mapper;
 
import ${package}.${moduleName}.model.${className};
import com.kidgrow.db.mapper.SuperMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
 
import java.util.List;
import java.util.Map;
 
/**
 * 石家庄喜高科技有限责任公司 版权所有 © Copyright 2020<br>
 * @Description: ${comments}<br>
 * @Project: ${moduleCName}<br>
 * @CreateDate: Created in ${datetime} <br>
 * @Author: <a href="${email}">${author}</a>
 * @version ${moduleVersion}
 */
public interface ${className}Mapper extends SuperMapper<${className}> {
    /**
     * 分页查询${comments}列表
     * @param page
     * @param params
     * @return
     */
    List<${className}> findList(Page<${className}> page, @Param("p") Map<String, Object> params);
 
    /**
     * 根据${className}对象当做查询条件进行查询
     * @param
     * @return ${className}对象
     */
    ${className} findByObject(@Param("p") ${className} ${classname});
}