kot-mybatis Mybatis 扩展工具 项目简介
kot-mybatis ,一款 mybatis 增加工具,简单易用,可以快速的帮助开发者提高效率,包含如下功能点:1、条件构造器,lambda 表达式@Test
public void findOne() {
final User user = User.builder().userName("A7").realName("林").userStatus(1).build();
final User result = userService.newQuery()
.fields(user::getId, user::getUserName, user::getPassword, user::getUnionId)
.eq(user::getId, 43175L)
.eq("UNION_ID", "c4f07e742cae46428e76421e33f24d10")
.orderBy("id desc")
.activeLike()
.findOne(user);
println(result);
}2、乐观锁3、关联查询4、多种主键策略生成器5、多数据源样例6、代码生成器,无需手动写
public void findOne() {
final User user = User.builder().userName("A7").realName("林").userStatus(1).build();
final User result = userService.newQuery()
.fields(user::getId, user::getUserName, user::getPassword, user::getUnionId)
.eq(user::getId, 43175L)
.eq("UNION_ID", "c4f07e742cae46428e76421e33f24d10")
.orderBy("id desc")
.activeLike()
.findOne(user);
println(result);
}2、乐观锁3、关联查询4、多种主键策略生成器5、多数据源样例6、代码生成器,无需手动写