BrokerDao.java 747 B

1234567891011121314151617181920212223
  1. package com.yihu.hos.dao;
  2. import org.springframework.beans.factory.annotation.Autowired;
  3. import org.springframework.jdbc.core.JdbcTemplate;
  4. import org.springframework.stereotype.Repository;
  5. import java.util.List;
  6. import java.util.Map;
  7. @Repository("BrokerDao")
  8. public class BrokerDao {
  9. public static final String BEAN_ID = "BrokerDao";
  10. @Autowired
  11. private JdbcTemplate jdbcTemplate;
  12. public List<Map<String, Object>> getSystemServiceFlowList() throws Exception {
  13. return jdbcTemplate.queryForList("select * from system_service_flow");
  14. }
  15. public List<Map<String, Object>> getSystemServiceFlowClassList() throws Exception {
  16. return jdbcTemplate.queryForList("select * from system_service_flow_class");
  17. }
  18. }