Commit f396e3520e8745786456bff6675f930e967e037e

Authored by gaoming
1 parent 7de08bb0

.

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