packagepwc.taxtech.atms.common.util;importorg.springframework.beans.factory.annotation.Autowired;importorg.springframework.jdbc.core.JdbcTemplate;importorg.springframework.jdbc.core.RowMapper;importorg.springframework.stereotype.Component;importpwc.taxtech.atms.entity.Organization;importpwc.taxtech.atms.entity.Project;importjava.sql.ResultSet;importjava.sql.SQLException;importjava.util.Map;/** * author kevin * version 1.0 * 封装一些简单的数据处理 */@ComponentpublicclassDataUtil{@AutowiredprivateJdbcTemplatejdbcTemplate;//通过projectId查询project信息publicMap<String,Object>getProjectById(StringprojectId){returnjdbcTemplate.queryForMap("select * from project where id = ?",projectId);}}