Search in sources :

Example 1 with CompanyVO

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;
        }
    };
}
Also used : ResultSet(java.sql.ResultSet) CompanyVO(com.topcom.tjs.vo.CompanyVO) RowMapper(org.springframework.jdbc.core.RowMapper)

Aggregations

CompanyVO (com.topcom.tjs.vo.CompanyVO)1 ResultSet (java.sql.ResultSet)1 RowMapper (org.springframework.jdbc.core.RowMapper)1