package com.yihu.hos.system.service; import com.yihu.hos.system.dao.AppDao; import com.yihu.hos.system.dao.AppServiceDao; import com.yihu.hos.system.model.SystemServiceEndpoint; import org.springframework.stereotype.Service; import javax.annotation.Resource; import java.util.List; /** * 系统流程管理业务类 * * @author HZY * @vsrsion 1.0 * Created at 2016/8/19. */ @Service("ProcessManager") public class ProcessManager { public static final String BEAN_ID = "ProcessManager"; @Resource(name = AppDao.BEAN_ID) private AppDao appDao; @Resource(name = AppServiceDao.BEAN_ID) private AppServiceDao appServiceDao; public String getAllApp() { String hql = "select * from SystemServiceEndpoint"; List serviceEndpointList = appServiceDao.getEntityList(SystemServiceEndpoint.class, hql); return null; } public String getAllAppService() { String hql = "select * from SystemServiceEndpoint"; List serviceEndpointList = appServiceDao.getEntityList(SystemServiceEndpoint.class, hql); return null; } public String getAppServiceByAppId(String appId) { String hql = "select * from SystemServiceEndpoint where appId = "+appId+""; List serviceEndpointList = appServiceDao.getEntityList(SystemServiceEndpoint.class, hql); return null; } }