Commit 99a9395e112976bfb6a9ac59d98f2c5a11f6618e

Authored by 王通
1 parent 01455c56

1.

src/main/java/com/bsth/service/impl/SectionServiceImpl.java
@@ -209,13 +209,13 @@ public class SectionServiceImpl extends BaseServiceImpl<Section, Integer> implem @@ -209,13 +209,13 @@ public class SectionServiceImpl extends BaseServiceImpl<Section, Integer> implem
209 209
210 @Override 210 @Override
211 public List<String> findDistinctSectionName() { 211 public List<String> findDistinctSectionName() {
212 - String query = "SELECT DISTINCT section_name FROM bsth_c_section WHERE id > 1000000"; 212 + String query = "SELECT DISTINCT section_name FROM bsth_c_section";
213 return jdbcTemplate.queryForList(query, String.class); 213 return jdbcTemplate.queryForList(query, String.class);
214 } 214 }
215 215
216 @Override 216 @Override
217 public List<Section> findSectionByName(String sectionName) { 217 public List<Section> findSectionByName(String sectionName) {
218 - String query = "SELECT id,section_code,section_name,croses_road,ST_AsText(bsection_vector) bsection_vector_wkt,ew_direction,sn_direction FROM bsth_c_section WHERE id > 1000000 AND section_name = ?"; 218 + String query = "SELECT id,section_code,section_name,croses_road,ST_AsText(bsection_vector) bsection_vector_wkt,ew_direction,sn_direction FROM bsth_c_section where section_name = ?";
219 return jdbcTemplate.query(query, new Object[]{ sectionName }, BeanPropertyRowMapper.newInstance(Section.class)); 219 return jdbcTemplate.query(query, new Object[]{ sectionName }, BeanPropertyRowMapper.newInstance(Section.class));
220 } 220 }
221 221