ProcessManager.java 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. package com.yihu.hos.system.service;
  2. import com.yihu.hos.system.dao.AppDao;
  3. import com.yihu.hos.system.dao.AppServiceDao;
  4. import com.yihu.hos.system.model.SystemServiceEndpoint;
  5. import org.springframework.stereotype.Service;
  6. import javax.annotation.Resource;
  7. import java.util.List;
  8. /**
  9. * 系统流程管理业务类
  10. *
  11. * @author HZY
  12. * @vsrsion 1.0
  13. * Created at 2016/8/19.
  14. */
  15. @Service("ProcessManager")
  16. public class ProcessManager {
  17. public static final String BEAN_ID = "ProcessManager";
  18. @Resource(name = AppDao.BEAN_ID)
  19. private AppDao appDao;
  20. @Resource(name = AppServiceDao.BEAN_ID)
  21. private AppServiceDao appServiceDao;
  22. public String getAllApp() {
  23. String hql = "select * from SystemServiceEndpoint";
  24. List<SystemServiceEndpoint> serviceEndpointList = appServiceDao.getEntityList(SystemServiceEndpoint.class, hql);
  25. return null;
  26. }
  27. public String getAllAppService() {
  28. String hql = "select * from SystemServiceEndpoint";
  29. List<SystemServiceEndpoint> serviceEndpointList = appServiceDao.getEntityList(SystemServiceEndpoint.class, hql);
  30. return null;
  31. }
  32. public String getAppServiceByAppId(String appId) {
  33. String hql = "select * from SystemServiceEndpoint where appId = "+appId+"";
  34. List<SystemServiceEndpoint> serviceEndpointList = appServiceDao.getEntityList(SystemServiceEndpoint.class, hql);
  35. return null;
  36. }
  37. }