Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 5d77ca5

Browse files
[new] bug修复无法命名和md同时获取
1 parent 26c7134 commit 5d77ca5

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

‎spring-data-jdbc-mybatis/pom.xml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
<version>2.5.0</version>
99
</parent>
1010
<artifactId>spring-data-jdbc-mybatis</artifactId>
11-
<version>2.5.0.1</version>
11+
<version>2.5.0.2</version>
1212
<!-- SNAPSHOT-->
1313
<name>spring-data-jdbc-mybatis</name>
1414
<description>spring data jdbc with mybatis template dynamic query</description>

‎spring-data-jdbc-mybatis/src/main/java/com/vonchange/jdbc/mybatis/core/support/JdbcRepositoryQuery.java‎

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
package com.vonchange.jdbc.mybatis.core.support;
1717

1818
import com.vonchange.common.util.ClazzUtils;
19+
import com.vonchange.common.util.MarkdownUtil;
1920
import com.vonchange.common.util.StringPool;
2021
import com.vonchange.jdbc.config.ConstantJdbc;
2122
import com.vonchange.jdbc.core.CrudClient;
@@ -89,8 +90,11 @@ private <T> Object executeDo(Object[] objects) {
8990
boolean nameQuery=true;
9091
SqlParam sqlParam = null;
9192
if(null!=configInfo.getLocation()){
92-
nameQuery =false;
93-
sqlId = configInfo.getLocation() + StringPool.DOT + configInfo.getMethod();
93+
String sqlIdInMd = configInfo.getLocation() + StringPool.DOT + configInfo.getMethod();
94+
if(null!=MarkdownUtil.getContent(sqlIdInMd,false)){
95+
sqlId=sqlIdInMd;
96+
nameQuery =false;
97+
}
9498
}
9599
if(nameQuery){
96100
Assert.notNull(configInfo.getDomainType(),"domain type must not null,define crudRepository");

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /