21 |
|
|
22 |
String sql = "SELECT id,vejnavn,husnr,husnrbogstav,kommunekode,vejkode,postnr,gadeid,upper(distributor) AS distributor,dbkbane,koreliste,rute " |
String sql = "SELECT id,vejnavn,husnr,husnrbogstav,kommunekode,vejkode,postnr,gadeid,upper(distributor) AS distributor,dbkbane,koreliste,rute " |
23 |
+ "FROM fulddaekning.adressetabel " |
+ "FROM fulddaekning.adressetabel " |
24 |
//+ "WHERE postnr >=2000" //DEBUG only |
+ "WHERE gadeid IS NOT NULL " |
25 |
|
//+ "AND postnr = 8700" //DEBUG only |
26 |
; |
; |
27 |
|
|
28 |
Connection conn = DBConnection.getConnection(); |
Connection conn = DBConnection.getConnection(); |
66 |
} |
} |
67 |
|
|
68 |
public static List<ExtendedBean> getExtendedAdresslist() throws SQLException { |
public static List<ExtendedBean> getExtendedAdresslist() throws SQLException { |
69 |
|
|
70 |
String sql = "select orgid, a.id as targetid, afstand, LOWER(type) as type from fulddaekning.afstand_anden_rute a " + |
String sql = "select orgid, a.id as targetid, afstand, LOWER(type) as type from fulddaekning.afstand_anden_rute a " + |
71 |
"join odbc.transporttype t " + |
"join odbc.transporttype t " + |
72 |
"on t.Art = 'Transpost' " + |
"on t.Art = 'Transpost' " + |