package com.dashitech.businessdata.dao;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;


/**
 * Created by chi on 2019/9/26.
 */
@Service
public class TestDao {

    @Autowired
    private JdbcTemplate jdbcTemplate;
    /*     
     *不指定数据源使用默认数据源
     *
    *@return
     */

//    public List<CallOnEntity> getList1() {
//
//        String sql = "select * from itsm_transport_callon";
//        List<Map<String, Object>> callOnEntities = jdbcTemplate.queryForList(sql);
//
//        return null;
//    }
//
//    public List<CallOnEntity> getList2() {
//
//        String sql = "select * from itsm_transport_callon";
//        List<Map<String, Object>> callOnEntities = jdbcTemplate.queryForList(sql);
//
//        return null;
//    }

}
