/**
 * 
 */
package org.ccpit.business.serviceNetWork;

import java.util.List;

import javax.transaction.Transactional;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Company Name : 中贸促信息技术有限责任公司 Project Name:memberManageSys File
 * Name:DownloadFileController.java Package Name:ccpit.base.controller Date:
 * 2017年4月24日 下午3:46:12 Copyright (c) 2016, liyang@ccpit.org All Rights
 * Reserved.
 *
 */
@Service
@Transactional
public class ServiceNetWorkService  {
	
	@Autowired
	private ServiceNetWorkDao netWorkDao;
	
	public ServiceNetWork queryServiceNetWorkById(long id) {
		return netWorkDao.queryById(id);
	}
	
	public List<ServiceNetWork> queryServiceNetWorksByPId(String id) {
		
		String hql =" from ServiceNetWork where parentId = '"+id+"'";
		
		return netWorkDao.query(hql);
	}

}
