From eb69f24cec477263ae191b18176306d92ddfb518 Mon Sep 17 00:00:00 2001 From: SonderTara Date: Sat, 11 Jun 2022 16:19:48 +0800 Subject: [PATCH] feat: version v0.1.0 --- README.md | 14 ++++++-------- build.gradle | 3 +-- docs/quick_start.md | 4 ++-- 3 files changed, 9 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index f8f716a..99a9437 100644 --- a/README.md +++ b/README.md @@ -27,14 +27,14 @@ Maven Project com.sondertara joya - 0.0.7.209 + 0.1.0 ``` Gradle Project ```groovy -implementation 'com.sondertara:joya:0.0.7.209' +implementation 'com.sondertara:joya:0.1.0' ``` ### 2.添加配置 @@ -257,19 +257,17 @@ public class Test { NativeSqlQuery query1 = NativeSqlQuery.builder() .select() .from(j -> j.join(UserPo::getId, UserExtendPo::getUserId)) - .where(w -> w - .eq(UserPo::getUserName, "张三")) + .where(w -> w.eq(UserPo::getUserName, "张三")) .build(); //对于冲突字段可以指定别名,如user表和user_extend表同时有 updateTime字段,可以通过指定别名来避免字段值覆盖 // SELECT t0.id,t0.user_name,t0.user_email,t0.user_phone,t0.update_time,t1.update_time AS modifyTime,t1.account_expired_time,t1.password_expired_time,t1.ext_data FROM user AS t0 JOIN user_extend AS t1 ON t0.id = t1.user_id WHERE t0.user_name = ?1 NativeSqlQuery query3 = NativeSqlQuery.builder() + .wrapColumn("t1.updateTime AS modifyTime") //将user_extend中重名的updateTime 指定为modifyTime .select()//查询全部字段 - .specificS("t1.updateTime AS modifyTime") //将user_extend中重名的updateTime 指定为modifyTime .from(j -> j.join(UserPo::getId, UserExtendPo::getUserId)) - .where(w -> w - .eq(UserPo::getUserName, "张三")) + .where(w -> w.eq(UserPo::getUserName, "张三")) .build(); } } @@ -386,7 +384,7 @@ PageResult pageResult=joyaRepository.queryPage(pageQueryParam,UserDTO.c .endsWith() // like '%a' .contains() // like '%a%' .startsWith() // like 'a%' - .specificS()) //指定特殊的查询语句 + .addCondition()) //指定特殊的查询语句 ``` where 查询语句默认是`AND`条件联接,可以选择`OR`条件联接 diff --git a/build.gradle b/build.gradle index 96aa40c..2545f88 100644 --- a/build.gradle +++ b/build.gradle @@ -30,7 +30,7 @@ allprojects { def isRelease = false group = 'com.sondertara' -version = '0.0.7.209' +version = '0.1.0' archivesBaseName = 'joya' sourceCompatibility = '1.8' @@ -75,7 +75,6 @@ dependencies { implementation 'com.sondertara:common-tara:0.1.0' compileOnly 'org.projectlombok:lombok:1.18.24' compileOnly 'com.oracle.database.jdbc:ojdbc8:21.5.0.0' - annotationProcessor 'org.projectlombok:lombok:1.18.24' } diff --git a/docs/quick_start.md b/docs/quick_start.md index e2cc6e4..de7fa27 100644 --- a/docs/quick_start.md +++ b/docs/quick_start.md @@ -9,14 +9,14 @@ Maven Project com.sondertara joya - 0.0.7.209 + 0.1.0 ``` Gradle Project ```groovy -implementation 'com.sondertara:joya:0.0.7.209' +implementation 'com.sondertara:joya:0.1.0' ``` ## 新项目集成 :id=new_project