@SuppressWarnings("unchecked")
@ServiceMethodAuthority(type={ServiceMethodType.SELECT})
@Transactional(
propagation=Propagation.REQUIRES_NEW,
isolation=Isolation.READ_COMMITTED, timeout=25, readOnly=true)
public List<T> findListVOByParams(Map<String, Object> params) throws ServiceException, Exception {
List<T> returnList = null;
List<E> searchList = findListByParams(params, null);
if (searchList==null || searchList.size()<1) {
return returnList;
}
returnList=new ArrayList<T>();
for (E entity : searchList) {
Class<T> objectClass=GenericsUtils.getSuperClassGenricType(getClass(), 0);
T obj=objectClass.newInstance();
this.doMapper(entity, obj, this.getMapperIdPo2Vo());
returnList.add(obj);
}
return returnList;
}
BaseService.java 文件源码
java
阅读 26
收藏 0
点赞 0
评论 0
项目:bamboobsc
作者:
评论列表
文章目录