package com.yihu.hos.dao; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.jdbc.core.JdbcTemplate; import org.springframework.stereotype.Repository; import java.util.List; import java.util.Map; @Repository("BrokerDao") public class BrokerDao { public static final String BEAN_ID = "BrokerDao"; @Autowired private JdbcTemplate jdbcTemplate; public List> getSystemServiceFlowList() throws Exception { return jdbcTemplate.queryForList("select * from system_service_flow"); } public List> getSystemServiceFlowClassList() throws Exception { return jdbcTemplate.queryForList("select * from system_service_flow_class"); } }