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
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<T, ID extends Serializable> 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); | ... | ... |