From f396e3520e8745786456bff6675f930e967e037e Mon Sep 17 00:00:00 2001 From: gaoming Date: Tue, 30 Mar 2021 11:19:04 +0800 Subject: [PATCH] . --- build.gradle | 2 +- src/main/java/com/taover/repository/CustomJdbcTemplateWrapperTenant.java | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build.gradle b/build.gradle index 09a60a5..c9b563b 100644 --- a/build.gradle +++ b/build.gradle @@ -57,7 +57,7 @@ uploadArchives { authentication(userName: NEXUS_USERNAME, password: NEXUS_PASSWORD) } pom.project { - version '2.1.52' + version '2.1.54' artifactId ARTIFACT_Id groupId GROUP_ID packaging TYPE diff --git a/src/main/java/com/taover/repository/CustomJdbcTemplateWrapperTenant.java b/src/main/java/com/taover/repository/CustomJdbcTemplateWrapperTenant.java index f099bd2..0fb3be1 100644 --- a/src/main/java/com/taover/repository/CustomJdbcTemplateWrapperTenant.java +++ b/src/main/java/com/taover/repository/CustomJdbcTemplateWrapperTenant.java @@ -264,7 +264,7 @@ public class CustomJdbcTemplateWrapperTenant impleme public T findEntityByCondition(List condition, Long tenantId) throws NotFoundException, MultiRowException, NoContainTenantException { List tempList = findListByCondition(condition, tenantId); if(tempList == null || tempList.size() == 0){ - throw new NotFoundException(); + return null; } if(tempList != null && tempList.size() == 1){ return tempList.get(0); @@ -277,7 +277,7 @@ public class CustomJdbcTemplateWrapperTenant impleme public T findEntityBySql(String sqlCondition, Long tenantId) throws NotFoundException, MultiRowException { List tempList = findListBySql(sqlCondition, tenantId); if(tempList == null || tempList.size() == 0){ - throw new NotFoundException(); + return null; } if(tempList != null && tempList.size() == 1){ return tempList.get(0); -- libgit2 0.21.2