Commit bc66f2ad99aaf427cb86efb3fc0f55ec45948876

Authored by 王彬
2 parents 48019a04 f396e352

upgrade version

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);
... ...