fastquery 1.0.12 发布了,更新如下: 通过注解方式简化动态条件查询: @Query("select no, name, sex from Student #{#where} order by age desc") // 增加若干个条件 @Condition("no like ?1") // ?1的值,如果是null, 该行条件将不参与运算 @Condition("and name like ?2") // 参数 ?2,如果接收到的值为null,该条件不参与运算 // 通过 ignoreNull=false 开启条件值即使是null也参与运算 @Condition(value = "and age > ?3",ignoreNull=false) //?3收到null,该条件也参与运算 @Condition("or dept in(?4,?5,?6)") //第4个或第5个或第6个参数,传递null值,该行条件将不参与运算 @Condition("and name not like ?7") @Condition("or age between ?8 and ?9") Student[] findAllStudent(... args ...); 详细文档请参阅: https://git.oschina.net/xixifeng.com/fastquery https://github.com/xixifeng/fastquery 地球人都知道,开源中国秉承自由、开放、分享的精神,本项目每次升级之后,代码和文档手册都会在第一时间完全开源,以供大家查阅、批评、指正。笔者技术水平有限,bug或不周之处在所难免,所以,遇到有问题或更好的建议时,还请大家通过码云issue来向我们反馈。 fastquery 1.0.12 发布,Java 8 简单的数据持久层下载地址