Commit afed5209b21ff7a3308f03710c16d2a095436ed2
1 parent
61054464
update...
Showing
2 changed files
with
3 additions
and
4 deletions
src/main/java/com/bsth/controller/realcontrol/BasicDataController.java
| @@ -131,7 +131,7 @@ public class BasicDataController { | @@ -131,7 +131,7 @@ public class BasicDataController { | ||
| 131 | */ | 131 | */ |
| 132 | @RequestMapping("/nbbm2PlateNo") | 132 | @RequestMapping("/nbbm2PlateNo") |
| 133 | public Map<String, String> nbbm2PlateNo(){ | 133 | public Map<String, String> nbbm2PlateNo(){ |
| 134 | - return basicData.getNbbm2PlateNo(); | 134 | + return basicData.nbbmCompanyPlateMap; |
| 135 | } | 135 | } |
| 136 | 136 | ||
| 137 | 137 |
src/main/java/com/bsth/data/BasicData.java
| @@ -12,7 +12,6 @@ import org.apache.commons.lang3.StringUtils; | @@ -12,7 +12,6 @@ import org.apache.commons.lang3.StringUtils; | ||
| 12 | import org.slf4j.Logger; | 12 | import org.slf4j.Logger; |
| 13 | import org.slf4j.LoggerFactory; | 13 | import org.slf4j.LoggerFactory; |
| 14 | import org.springframework.beans.factory.annotation.Autowired; | 14 | import org.springframework.beans.factory.annotation.Autowired; |
| 15 | -import org.springframework.jdbc.core.JdbcTemplate; | ||
| 16 | import org.springframework.stereotype.Component; | 15 | import org.springframework.stereotype.Component; |
| 17 | 16 | ||
| 18 | import java.util.*; | 17 | import java.util.*; |
| @@ -82,7 +81,7 @@ public class BasicData { | @@ -82,7 +81,7 @@ public class BasicData { | ||
| 82 | return name != null? name: stationCode2NameMap.get(prefix + code); | 81 | return name != null? name: stationCode2NameMap.get(prefix + code); |
| 83 | } | 82 | } |
| 84 | 83 | ||
| 85 | - @Autowired | 84 | +/* @Autowired |
| 86 | JdbcTemplate jdbcTemplate; | 85 | JdbcTemplate jdbcTemplate; |
| 87 | public Map<String, String> getNbbm2PlateNo(){ | 86 | public Map<String, String> getNbbm2PlateNo(){ |
| 88 | List<Map<String, Object>> list = jdbcTemplate.queryForList("select CAR_CODE,CAR_PLATE from bsth_c_cars where CAR_CODE is not null and CAR_PLATE is not null"); | 87 | List<Map<String, Object>> list = jdbcTemplate.queryForList("select CAR_CODE,CAR_PLATE from bsth_c_cars where CAR_CODE is not null and CAR_PLATE is not null"); |
| @@ -92,7 +91,7 @@ public class BasicData { | @@ -92,7 +91,7 @@ public class BasicData { | ||
| 92 | rs.put(map.get("CAR_CODE").toString(), map.get("CAR_PLATE").toString()); | 91 | rs.put(map.get("CAR_CODE").toString(), map.get("CAR_PLATE").toString()); |
| 93 | } | 92 | } |
| 94 | return rs; | 93 | return rs; |
| 95 | - } | 94 | + }*/ |
| 96 | 95 | ||
| 97 | @Component | 96 | @Component |
| 98 | public static class BasicDataLoader extends Thread { | 97 | public static class BasicDataLoader extends Thread { |