[代码完善](v2.5): 部门查询优化

close https://github.com/elunez/eladmin/issues/428
pull/459/head
ZhengJie 2020-08-02 15:52:33 +08:00
parent 1cbbe38018
commit 31c9b9a01d
2 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ public class DeptServiceImpl implements DeptService {
if(dataScopeType.equals(DataScopeEnum.ALL.getValue())){
criteria.setPidIsNull(true);
}
List<Field> fields = QueryHelp.getAllFields(criteria.getClass(), new ArrayList<>());
List<Field> fields = QueryHelp.getAllFields(criteria.getClass());
List<String> fieldNames = new ArrayList<String>(){{ add("pidIsNull");add("enabled");}};
for (Field field : fields) {
//设置对象的访问权限保证对private的属性的访问

View File

@ -6,7 +6,7 @@ spring:
driverClassName: net.sf.log4jdbc.sql.jdbcapi.DriverSpy
url: jdbc:log4jdbc:mysql://localhost:3306/eladmin?serverTimezone=Asia/Shanghai&characterEncoding=utf8&useSSL=false
username: root
password: 59421
password: 123456
# 初始连接数
initial-size: 5
# 最小连接数