Commit f396e3520e8745786456bff6675f930e967e037e
1 parent
7de08bb0
Exists in
master
and in
1 other branch
.
Showing
2 changed files
with
3 additions
and
3 deletions
Show diff stats
build.gradle
@@ -57,7 +57,7 @@ uploadArchives { | @@ -57,7 +57,7 @@ uploadArchives { | ||
57 | authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) | 57 | authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) |
58 | } | 58 | } |
59 | pom.project { | 59 | pom.project { |
60 | - version '2.1.52' | 60 | + version '2.1.54' |
61 | artifactId ARTIFACT_Id | 61 | artifactId ARTIFACT_Id |
62 | groupId GROUP_ID | 62 | groupId GROUP_ID |
63 | packaging TYPE | 63 | packaging TYPE |
src/main/java/com/taover/repository/CustomJdbcTemplateWrapperTenant.java
@@ -264,7 +264,7 @@ public class CustomJdbcTemplateWrapperTenant<T, ID extends Serializable> impleme | @@ -264,7 +264,7 @@ public class CustomJdbcTemplateWrapperTenant<T, ID extends Serializable> impleme | ||
264 | public T findEntityByCondition(List<Object[]> condition, Long tenantId) throws NotFoundException, MultiRowException, NoContainTenantException { | 264 | public T findEntityByCondition(List<Object[]> condition, Long tenantId) throws NotFoundException, MultiRowException, NoContainTenantException { |
265 | List<T> tempList = findListByCondition(condition, tenantId); | 265 | List<T> tempList = findListByCondition(condition, tenantId); |
266 | if(tempList == null || tempList.size() == 0){ | 266 | if(tempList == null || tempList.size() == 0){ |
267 | - throw new NotFoundException(); | 267 | + return null; |
268 | } | 268 | } |
269 | if(tempList != null && tempList.size() == 1){ | 269 | if(tempList != null && tempList.size() == 1){ |
270 | return tempList.get(0); | 270 | return tempList.get(0); |
@@ -277,7 +277,7 @@ public class CustomJdbcTemplateWrapperTenant<T, ID extends Serializable> impleme | @@ -277,7 +277,7 @@ public class CustomJdbcTemplateWrapperTenant<T, ID extends Serializable> impleme | ||
277 | public T findEntityBySql(String sqlCondition, Long tenantId) throws NotFoundException, MultiRowException { | 277 | public T findEntityBySql(String sqlCondition, Long tenantId) throws NotFoundException, MultiRowException { |
278 | List<T> tempList = findListBySql(sqlCondition, tenantId); | 278 | List<T> tempList = findListBySql(sqlCondition, tenantId); |
279 | if(tempList == null || tempList.size() == 0){ | 279 | if(tempList == null || tempList.size() == 0){ |
280 | - throw new NotFoundException(); | 280 | + return null; |
281 | } | 281 | } |
282 | if(tempList != null && tempList.size() == 1){ | 282 | if(tempList != null && tempList.size() == 1){ |
283 | return tempList.get(0); | 283 | return tempList.get(0); |