@@ -21,6 +21,7 @@ mvnw.cmd
*.iws
*.iml
*.ipr
+/toolset/codegen/src/main/resources/generateConfigration.xml
### 忽略子模块的文件 ###
**/*.ims
@@ -54,6 +54,12 @@ public interface BaseDAO<PK extends Serializable, T>{
* @return
*/
public List<T> findAll(Map<String, Object> params);
+ /**
+ * 通过参数查找所有结果集,也适合分页
+ * @param entity
+ * @return
+ */
+ public List<T> findList(T entity);
/**
* 通过参数查找结果集,适合分页场景
* @author pengdc
@@ -56,6 +56,13 @@ public interface BaseService<PK extends Serializable, T> {
+ * 通过对象信息查找结果集,也适合分页场景
+
@@ -89,6 +89,15 @@ public abstract class BaseServiceImpl<PK extends Serializable, T> implements Bas
return this.getDAO().findAll(params);
}
+ public List<T> findList(T entity) {
+ return this.getDAO().findList(entity);
+ }
* @param queryInfo
@@ -27,6 +27,11 @@
<groupId>com.yonge.cooleshow</groupId>
<artifactId>auth-api</artifactId>
</dependency>
+ <dependency>
+ <groupId>com.github.pagehelper</groupId>
+ <artifactId>pagehelper-spring-boot-starter</artifactId>
+ <version>1.2.7</version>
+ </dependency>
</dependencies>