diff --git a/README.md b/README.md index dddac36..fca2b9d 100644 --- a/README.md +++ b/README.md @@ -27,14 +27,14 @@ Maven Project com.sondertara joya - 0.0.7.201 + 0.0.7.202 ``` Gradle Project ```groovy -implementation 'com.sondertara:joya:0.0.7.201' +implementation 'com.sondertara:joya:0.0.7.202' ``` ### 2.添加配置 diff --git a/build.gradle b/build.gradle index 357aef8..0ead99f 100644 --- a/build.gradle +++ b/build.gradle @@ -12,7 +12,7 @@ allprojects { def isRelease = false group = 'com.sondertara' -version = '0.0.7.201' +version = '0.0.7.202' archivesBaseName = 'joya' sourceCompatibility = '1.8' diff --git a/docs/quick_start.md b/docs/quick_start.md index 97ed65d..0d3e467 100644 --- a/docs/quick_start.md +++ b/docs/quick_start.md @@ -9,14 +9,14 @@ Maven Project com.sondertara joya - 0.0.7.201 + 0.0.7.202 ``` Gradle Project ```groovy -implementation 'com.sondertara:joya:0.0.7.201' +implementation 'com.sondertara:joya:0.0.7.202' ``` ## 新项目集成 :id=new_project diff --git a/src/main/java/com/sondertara/joya/core/query/NativeSqlQuery.java b/src/main/java/com/sondertara/joya/core/query/NativeSqlQuery.java index 0f7c2e6..77061c9 100644 --- a/src/main/java/com/sondertara/joya/core/query/NativeSqlQuery.java +++ b/src/main/java/com/sondertara/joya/core/query/NativeSqlQuery.java @@ -397,7 +397,7 @@ public NativeSqlQueryBuilder orderBy(TaraFunction fn, OrderParam.Order * 排序参数如果是前端传进来,用QueryRequest接收的 ===> nativeSql.orderBy( queryRequest.getOrderBy(表别名) ) * 手写逻辑指定排序字段 ==> nativeSql.orderBy("su.age asc") */ - public void orderBy(String... orderBySegment) { + public NativeSqlQueryBuilder orderBy(String... orderBySegment) { if (null != orderBySegment && orderBySegment.length > 0) { if (orderBy == null) { // 多次调用此方法,用逗号拼接 ==> su.age asc,so.create_time desc @@ -405,6 +405,7 @@ public void orderBy(String... orderBySegment) { } this.orderBy.addAll(Arrays.asList(orderBySegment)); } + return this; } private void buildJoin() {