Skip to content

3.0.4 release

Compare
Choose a tag to compare
@zhou-hao zhou-hao released this 19 Dec 06:18
· 937 commits to master since this release
a82c50a
  1. 升级ezorm版本3.0.2
  2. 优化动态查询API

现在支持通过方法引用来描述字段了.比如:

User user = ....;
createQuery().where(user::getName).list();
//静态方法引用
createQuery().where(User::getName,name).list();

以及便捷的条件嵌套功能:

public List<DataBean> queryCurrentUserData(Authentication currentAuth,QueryParamEntity param){
//当前登录用户ID
 String currentUserId = currentAuth.getUser().getId();
//将前端传来的参数转为嵌套后再追加参数.
//如: name = ? or age > ? 转为 ( name = ? or age > ? ) and userId = ?
return param.toNestQuery()
          .and(DataBean.getUserId,currentUserId)
          .execute(service::query);
}
  1. 修复not in 查询报错的bug
  2. 增加双重验证功能 #103
  3. 增加 BloomFilter