}
public Map selectSingleMap(String sql, BeanPropertySqlParameterSource bean) {
try {
if (StringUtils.isEmpty(sql)) {
throw new MisException("sql语句为空!");
}
List<Map> listMap = this.paraJdbcTemplate.query(sql, bean, MyColumnMapRowMapper.newInstance());
if (listMap.size() > 0) {
return listMap.get(0);
} else {
return null;
}
} catch (MisException e) {
throw e;
} catch (Exception e) {
throw new MisException("[BaseDaoEntity.selectSingleMap]异常!", e);
}
}