use of com.topcom.tjs.vo.CompanyVO in project topcom-cloud by 545314690.
the class RowMappers method companyVORowMapper.
/**
* 企业RowMapper
* @return
*/
public static RowMapper<CompanyVO> companyVORowMapper() {
return new RowMapper<CompanyVO>() {
@Override
public CompanyVO mapRow(ResultSet resultSet, int i) throws SQLException {
CompanyVO company = new CompanyVO();
company.setId(resultSet.getLong("id"));
company.setCompanyName(resultSet.getString("companyName"));
company.setLng(resultSet.getDouble("lng"));
company.setLat(resultSet.getDouble("lat"));
return company;
}
};
}