Commit 0d980fc84324c508e6f44f7bc1b3f9b7998601b1
Merge remote-tracking branch 'origin/pudong' into pudong
Showing
25 changed files
with
287 additions
and
116 deletions
src/main/java/com/bsth/entity/LsStationRoute.java
| @@ -41,7 +41,9 @@ public class LsStationRoute { | @@ -41,7 +41,9 @@ public class LsStationRoute { | ||
| 41 | 41 | ||
| 42 | // 线路编码 | 42 | // 线路编码 |
| 43 | private String lineCode; | 43 | private String lineCode; |
| 44 | - | 44 | + |
| 45 | + // 行业编码 | ||
| 46 | + private String industryCode; | ||
| 45 | /** | 47 | /** |
| 46 | * 站点类型 | 48 | * 站点类型 |
| 47 | * | 49 | * |
| @@ -145,6 +147,14 @@ public class LsStationRoute { | @@ -145,6 +147,14 @@ public class LsStationRoute { | ||
| 145 | this.lineCode = lineCode; | 147 | this.lineCode = lineCode; |
| 146 | } | 148 | } |
| 147 | 149 | ||
| 150 | + public String getIndustryCode() { | ||
| 151 | + return industryCode; | ||
| 152 | + } | ||
| 153 | + | ||
| 154 | + public void setIndustryCode(String industryCode) { | ||
| 155 | + this.industryCode = industryCode; | ||
| 156 | + } | ||
| 157 | + | ||
| 148 | public String getStationMark() { | 158 | public String getStationMark() { |
| 149 | return stationMark; | 159 | return stationMark; |
| 150 | } | 160 | } |
src/main/java/com/bsth/entity/StationRoute.java
| @@ -43,6 +43,9 @@ public class StationRoute { | @@ -43,6 +43,9 @@ public class StationRoute { | ||
| 43 | 43 | ||
| 44 | // 线路编码 | 44 | // 线路编码 |
| 45 | private String lineCode; | 45 | private String lineCode; |
| 46 | + | ||
| 47 | + // 行业编码 | ||
| 48 | + private String industryCode; | ||
| 46 | 49 | ||
| 47 | /** | 50 | /** |
| 48 | * 站点类型 | 51 | * 站点类型 |
| @@ -147,6 +150,14 @@ public class StationRoute { | @@ -147,6 +150,14 @@ public class StationRoute { | ||
| 147 | this.lineCode = lineCode; | 150 | this.lineCode = lineCode; |
| 148 | } | 151 | } |
| 149 | 152 | ||
| 153 | + public String getIndustryCode() { | ||
| 154 | + return industryCode; | ||
| 155 | + } | ||
| 156 | + | ||
| 157 | + public void setIndustryCode(String industryCode) { | ||
| 158 | + this.industryCode = industryCode; | ||
| 159 | + } | ||
| 160 | + | ||
| 150 | public String getStationMark() { | 161 | public String getStationMark() { |
| 151 | return stationMark; | 162 | return stationMark; |
| 152 | } | 163 | } |
src/main/java/com/bsth/entity/StationRouteCache.java
| @@ -44,7 +44,9 @@ public class StationRouteCache { | @@ -44,7 +44,9 @@ public class StationRouteCache { | ||
| 44 | 44 | ||
| 45 | // 线路编码 | 45 | // 线路编码 |
| 46 | private String lineCode; | 46 | private String lineCode; |
| 47 | - | 47 | + |
| 48 | + // 行业编码 | ||
| 49 | + private String industryCode; | ||
| 48 | /** | 50 | /** |
| 49 | * 站点类型 | 51 | * 站点类型 |
| 50 | * | 52 | * |
| @@ -148,6 +150,14 @@ public class StationRouteCache { | @@ -148,6 +150,14 @@ public class StationRouteCache { | ||
| 148 | this.lineCode = lineCode; | 150 | this.lineCode = lineCode; |
| 149 | } | 151 | } |
| 150 | 152 | ||
| 153 | + public String getIndustryCode() { | ||
| 154 | + return industryCode; | ||
| 155 | + } | ||
| 156 | + | ||
| 157 | + public void setIndustryCode(String industryCode) { | ||
| 158 | + this.industryCode = industryCode; | ||
| 159 | + } | ||
| 160 | + | ||
| 151 | public String getStationMark() { | 161 | public String getStationMark() { |
| 152 | return stationMark; | 162 | return stationMark; |
| 153 | } | 163 | } |
src/main/java/com/bsth/repository/StationRouteCacheRepository.java
| @@ -57,11 +57,11 @@ public interface StationRouteCacheRepository extends BaseRepository<StationRoute | @@ -57,11 +57,11 @@ public interface StationRouteCacheRepository extends BaseRepository<StationRoute | ||
| 57 | */ | 57 | */ |
| 58 | @Modifying | 58 | @Modifying |
| 59 | @Query(value="delete from bsth_c_stationroute_cache where line_code = ?1 and directions = ?2 ", nativeQuery=true) | 59 | @Query(value="delete from bsth_c_stationroute_cache where line_code = ?1 and directions = ?2 ", nativeQuery=true) |
| 60 | - public void stationRouteCacheDel(String lineCode,Integer dir); | 60 | + void stationRouteCacheDel(String lineCode,Integer dir); |
| 61 | 61 | ||
| 62 | @Modifying | 62 | @Modifying |
| 63 | @Query(value="delete from bsth_c_stationroute_cache where line = ?1 and directions = ?2 ", nativeQuery=true) | 63 | @Query(value="delete from bsth_c_stationroute_cache where line = ?1 and directions = ?2 ", nativeQuery=true) |
| 64 | - public void stationRouteCacheDel(Integer lineId,Integer dir); | 64 | + void stationRouteCacheDel(Integer lineId,Integer dir); |
| 65 | 65 | ||
| 66 | 66 | ||
| 67 | @Query(value = "SELECT a.`stationRoute.id`," + | 67 | @Query(value = "SELECT a.`stationRoute.id`," + |
| @@ -95,7 +95,9 @@ public interface StationRouteCacheRepository extends BaseRepository<StationRoute | @@ -95,7 +95,9 @@ public interface StationRouteCacheRepository extends BaseRepository<StationRoute | ||
| 95 | "ST_AsText(b.b_polygon_grid) AS 'station.bPolygonGrid'," + | 95 | "ST_AsText(b.b_polygon_grid) AS 'station.bPolygonGrid'," + |
| 96 | "b.destroy AS 'station.destroy'," + | 96 | "b.destroy AS 'station.destroy'," + |
| 97 | "b.versions AS 'station.versions'," + | 97 | "b.versions AS 'station.versions'," + |
| 98 | - "b.descriptions AS 'station.descriptions' FROM (" + | 98 | + "b.descriptions AS 'station.descriptions'," + |
| 99 | + "a.`industryCode` " + | ||
| 100 | + " FROM (" + | ||
| 99 | "SELECT r.id AS 'stationRoute.id'," + | 101 | "SELECT r.id AS 'stationRoute.id'," + |
| 100 | " r.line AS 'stationRoute.line'," + | 102 | " r.line AS 'stationRoute.line'," + |
| 101 | "r.station AS 'stationRoute.station'," + | 103 | "r.station AS 'stationRoute.station'," + |
| @@ -110,7 +112,7 @@ public interface StationRouteCacheRepository extends BaseRepository<StationRoute | @@ -110,7 +112,7 @@ public interface StationRouteCacheRepository extends BaseRepository<StationRoute | ||
| 110 | "r.first_time AS 'stationRoute.firstTime'," + | 112 | "r.first_time AS 'stationRoute.firstTime'," + |
| 111 | "r.end_time AS 'stationRoute.endTime'," + | 113 | "r.end_time AS 'stationRoute.endTime'," + |
| 112 | "r.descriptions AS 'stationRoute.descriptions'," + | 114 | "r.descriptions AS 'stationRoute.descriptions'," + |
| 113 | - "r.versions AS 'stationRoute.versions' FROM bsth_c_stationroute_cache r WHERE r.line = ?1 and r.directions = ?2 and r.destroy=0) a " + | 115 | + "r.versions AS 'stationRoute.versions',r.industry_code AS industryCode FROM bsth_c_stationroute_cache r WHERE r.line = ?1 and r.directions = ?2 and r.destroy=0) a " + |
| 114 | "LEFT JOIN bsth_c_station b " + | 116 | "LEFT JOIN bsth_c_station b " + |
| 115 | "ON a.`stationRoute.station` = b.id ORDER BY a.`stationRoute.stationRouteCode` ASC", nativeQuery=true) | 117 | "ON a.`stationRoute.station` = b.id ORDER BY a.`stationRoute.stationRouteCode` ASC", nativeQuery=true) |
| 116 | List<Object[]> findCachePoint(int lineId, int dir); | 118 | List<Object[]> findCachePoint(int lineId, int dir); |
src/main/java/com/bsth/repository/StationRouteRepository.java
| @@ -66,7 +66,9 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int | @@ -66,7 +66,9 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int | ||
| 66 | "ST_AsText(b.b_polygon_grid) AS 'station.bPolygonGrid'," + | 66 | "ST_AsText(b.b_polygon_grid) AS 'station.bPolygonGrid'," + |
| 67 | "b.destroy AS 'station.destroy'," + | 67 | "b.destroy AS 'station.destroy'," + |
| 68 | "b.versions AS 'station.versions'," + | 68 | "b.versions AS 'station.versions'," + |
| 69 | - "b.descriptions AS 'station.descriptions' FROM (" + | 69 | + "b.descriptions AS 'station.descriptions', " + |
| 70 | + "a.`stationRoute.industryCode` " + | ||
| 71 | + " FROM (" + | ||
| 70 | "SELECT r.id AS 'stationRoute.id'," + | 72 | "SELECT r.id AS 'stationRoute.id'," + |
| 71 | " r.line AS 'stationRoute.line'," + | 73 | " r.line AS 'stationRoute.line'," + |
| 72 | "r.station AS 'stationRoute.station'," + | 74 | "r.station AS 'stationRoute.station'," + |
| @@ -81,7 +83,9 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int | @@ -81,7 +83,9 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int | ||
| 81 | "r.first_time AS 'stationRoute.firstTime'," + | 83 | "r.first_time AS 'stationRoute.firstTime'," + |
| 82 | "r.end_time AS 'stationRoute.endTime'," + | 84 | "r.end_time AS 'stationRoute.endTime'," + |
| 83 | "r.descriptions AS 'stationRoute.descriptions'," + | 85 | "r.descriptions AS 'stationRoute.descriptions'," + |
| 84 | - "r.versions AS 'stationRoute.versions' FROM bsth_c_stationroute r WHERE r.line = ?1 and r.directions = ?2 and r.destroy=0) a " + | 86 | + "r.versions AS 'stationRoute.versions', " + |
| 87 | + "r.industry_code AS 'stationRoute.industryCode' " + | ||
| 88 | + " FROM bsth_c_stationroute r WHERE r.line = ?1 and r.directions = ?2 and r.destroy=0) a " + | ||
| 85 | "LEFT JOIN bsth_c_station b " + | 89 | "LEFT JOIN bsth_c_station b " + |
| 86 | "ON a.`stationRoute.station` = b.id ORDER BY a.`stationRoute.stationRouteCode` ASC", nativeQuery=true) | 90 | "ON a.`stationRoute.station` = b.id ORDER BY a.`stationRoute.stationRouteCode` ASC", nativeQuery=true) |
| 87 | List<Object[]> findPoints(int line,int directions); | 91 | List<Object[]> findPoints(int line,int directions); |
| @@ -149,29 +153,33 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int | @@ -149,29 +153,33 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int | ||
| 149 | " b.create_date AS stationCreateDate," + | 153 | " b.create_date AS stationCreateDate," + |
| 150 | " b.update_by AS stationUpdateBy," + | 154 | " b.update_by AS stationUpdateBy," + |
| 151 | " b.update_date AS stationUpdateDate," + | 155 | " b.update_date AS stationUpdateDate," + |
| 152 | - " a.stationRouteId,b.station_name as zdmc "+ | ||
| 153 | - " FROM ( SELECT s.id AS stationRouteId," + | ||
| 154 | - " s.line AS stationRouteLine," + | ||
| 155 | - " s.station as stationRouteStation," + | ||
| 156 | - " s.station_name AS stationRouteName," + | ||
| 157 | - " s.station_route_code as stationRouteCode," + | ||
| 158 | - " s.line_code AS stationRouteLIneCode," + | ||
| 159 | - " s.station_mark AS stationRouteStationMark," + | ||
| 160 | - " s.out_station_nmber AS stationOutStationNmber," + | ||
| 161 | - " s.directions AS stationRoutedirections," + | ||
| 162 | - " s.distances AS stationRouteDistances," + | ||
| 163 | - " s.to_time AS stationRouteToTime," + | ||
| 164 | - " s.first_time AS staitonRouteFirstTime," + | ||
| 165 | - " s.end_time AS stationRouteEndTime," + | ||
| 166 | - " s.descriptions AS stationRouteDescriptions," + | ||
| 167 | - " s.destroy AS stationRouteDestroy," + | ||
| 168 | - " s.versions AS stationRouteVersions," + | ||
| 169 | - " s.create_by AS stationRouteCreateBy," + | ||
| 170 | - " s.create_date AS stationRouteCreateDate," + | ||
| 171 | - " s.update_by AS stationRouteUpdateBy," + | ||
| 172 | - " s.update_date AS stationRouteUpdateDate FROM bsth_c_stationroute s WHERE s.station_route_code =(" + | ||
| 173 | - "select MIN(station_route_code) as stationRouteCode from bsth_c_stationroute r WHERE " + | ||
| 174 | - "r.line=?1 and r.directions =?2 and station_route_code > ?3 and r.destroy = 0 ) and s.line=?1 and s.directions = ?2 AND s.destroy = 0) a " + | 156 | + " a.stationRouteId, " + |
| 157 | + " b.station_name as zdmc, " + | ||
| 158 | + " a.industryCode"+ | ||
| 159 | + " FROM " + | ||
| 160 | + "( SELECT s.id AS stationRouteId," + | ||
| 161 | + " s.line AS stationRouteLine," + | ||
| 162 | + " s.station as stationRouteStation," + | ||
| 163 | + " s.station_name AS stationRouteName," + | ||
| 164 | + " s.station_route_code as stationRouteCode," + | ||
| 165 | + " s.industry_code as industryCode," + | ||
| 166 | + " s.line_code AS stationRouteLIneCode," + | ||
| 167 | + " s.station_mark AS stationRouteStationMark," + | ||
| 168 | + " s.out_station_nmber AS stationOutStationNmber," + | ||
| 169 | + " s.directions AS stationRoutedirections," + | ||
| 170 | + " s.distances AS stationRouteDistances," + | ||
| 171 | + " s.to_time AS stationRouteToTime," + | ||
| 172 | + " s.first_time AS staitonRouteFirstTime," + | ||
| 173 | + " s.end_time AS stationRouteEndTime," + | ||
| 174 | + " s.descriptions AS stationRouteDescriptions," + | ||
| 175 | + " s.destroy AS stationRouteDestroy," + | ||
| 176 | + " s.versions AS stationRouteVersions," + | ||
| 177 | + " s.create_by AS stationRouteCreateBy," + | ||
| 178 | + " s.create_date AS stationRouteCreateDate," + | ||
| 179 | + " s.update_by AS stationRouteUpdateBy," + | ||
| 180 | + " s.update_date AS stationRouteUpdateDate FROM bsth_c_stationroute s WHERE s.station_route_code =(" + | ||
| 181 | + "select MIN(station_route_code) as stationRouteCode from bsth_c_stationroute r WHERE " + | ||
| 182 | + "r.line=?1 and r.directions =?2 and station_route_code > ?3 and r.destroy = 0 ) and s.line=?1 and s.directions = ?2 AND s.destroy = 0) a " + | ||
| 175 | " LEFT JOIN bsth_c_station b ON a.stationRouteStation = b.id", nativeQuery=true) | 183 | " LEFT JOIN bsth_c_station b ON a.stationRouteStation = b.id", nativeQuery=true) |
| 176 | List<Object[]> findDownStationRoute(Integer id,Integer direction,Integer stationRouteCode); | 184 | List<Object[]> findDownStationRoute(Integer id,Integer direction,Integer stationRouteCode); |
| 177 | 185 | ||
| @@ -278,27 +286,30 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int | @@ -278,27 +286,30 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int | ||
| 278 | " b.create_date AS stationCreateDate," + | 286 | " b.create_date AS stationCreateDate," + |
| 279 | " b.update_by AS stationUpdateBy," + | 287 | " b.update_by AS stationUpdateBy," + |
| 280 | " b.update_date AS stationUpdateDate," + | 288 | " b.update_date AS stationUpdateDate," + |
| 281 | - " a.stationRouteId,b.station_name as zdmc "+ | ||
| 282 | - " FROM ( SELECT s.id AS stationRouteId," + | ||
| 283 | - " s.line AS stationRouteLine," + | ||
| 284 | - " s.station as stationRouteStation," + | ||
| 285 | - " s.station_name AS stationRouteName," + | ||
| 286 | - " s.station_route_code as stationRouteCode," + | ||
| 287 | - " s.line_code AS stationRouteLIneCode," + | ||
| 288 | - " s.station_mark AS stationRouteStationMark," + | ||
| 289 | - " s.out_station_nmber AS stationOutStationNmber," + | ||
| 290 | - " s.directions AS stationRoutedirections," + | ||
| 291 | - " s.distances AS stationRouteDistances," + | ||
| 292 | - " s.to_time AS stationRouteToTime," + | ||
| 293 | - " s.first_time AS staitonRouteFirstTime," + | ||
| 294 | - " s.end_time AS stationRouteEndTime," + | ||
| 295 | - " s.descriptions AS stationRouteDescriptions," + | ||
| 296 | - " s.destroy AS stationRouteDestroy," + | ||
| 297 | - " s.versions AS stationRouteVersions," + | ||
| 298 | - " s.create_by AS stationRouteCreateBy," + | ||
| 299 | - " s.create_date AS stationRouteCreateDate," + | ||
| 300 | - " s.update_by AS stationRouteUpdateBy," + | ||
| 301 | - " s.update_date AS stationRouteUpdateDate FROM bsth_c_stationroute s WHERE s.id = ?1 ) a " + | 289 | + " a.stationRouteId,b.station_name as zdmc, " + |
| 290 | + " a.industryCode "+ | ||
| 291 | + " FROM " + | ||
| 292 | + "( SELECT s.id AS stationRouteId," + | ||
| 293 | + " s.line AS stationRouteLine," + | ||
| 294 | + " s.station as stationRouteStation," + | ||
| 295 | + " s.station_name AS stationRouteName," + | ||
| 296 | + " s.station_route_code as stationRouteCode," + | ||
| 297 | + " s.industry_code as industryCode," + | ||
| 298 | + " s.line_code AS stationRouteLIneCode," + | ||
| 299 | + " s.station_mark AS stationRouteStationMark," + | ||
| 300 | + " s.out_station_nmber AS stationOutStationNmber," + | ||
| 301 | + " s.directions AS stationRoutedirections," + | ||
| 302 | + " s.distances AS stationRouteDistances," + | ||
| 303 | + " s.to_time AS stationRouteToTime," + | ||
| 304 | + " s.first_time AS staitonRouteFirstTime," + | ||
| 305 | + " s.end_time AS stationRouteEndTime," + | ||
| 306 | + " s.descriptions AS stationRouteDescriptions," + | ||
| 307 | + " s.destroy AS stationRouteDestroy," + | ||
| 308 | + " s.versions AS stationRouteVersions," + | ||
| 309 | + " s.create_by AS stationRouteCreateBy," + | ||
| 310 | + " s.create_date AS stationRouteCreateDate," + | ||
| 311 | + " s.update_by AS stationRouteUpdateBy," + | ||
| 312 | + " s.update_date AS stationRouteUpdateDate FROM bsth_c_stationroute s WHERE s.id = ?1 ) a " + | ||
| 302 | " LEFT JOIN bsth_c_station b ON a.stationRouteStation = b.id", nativeQuery=true) | 313 | " LEFT JOIN bsth_c_station b ON a.stationRouteStation = b.id", nativeQuery=true) |
| 303 | List<Object[]> findStationRouteInfo(Integer id); | 314 | List<Object[]> findStationRouteInfo(Integer id); |
| 304 | 315 | ||
| @@ -348,27 +359,30 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int | @@ -348,27 +359,30 @@ public interface StationRouteRepository extends BaseRepository<StationRoute, Int | ||
| 348 | " b.create_date AS stationCreateDate," + | 359 | " b.create_date AS stationCreateDate," + |
| 349 | " b.update_by AS stationUpdateBy," + | 360 | " b.update_by AS stationUpdateBy," + |
| 350 | " b.update_date AS stationUpdateDate," + | 361 | " b.update_date AS stationUpdateDate," + |
| 351 | - " a.stationRouteId,b.station_name as zdmc "+ | 362 | + " a.stationRouteId," + |
| 363 | + "b.station_name as zdmc, "+ | ||
| 364 | + "a.industryCode "+ | ||
| 352 | " FROM ( SELECT s.id AS stationRouteId," + | 365 | " FROM ( SELECT s.id AS stationRouteId," + |
| 353 | - " s.line AS stationRouteLine," + | ||
| 354 | - " s.station as stationRouteStation," + | ||
| 355 | - " s.station_name AS stationRouteName," + | ||
| 356 | - " s.station_route_code as stationRouteCode," + | ||
| 357 | - " s.line_code AS stationRouteLIneCode," + | ||
| 358 | - " s.station_mark AS stationRouteStationMark," + | ||
| 359 | - " s.out_station_nmber AS stationOutStationNmber," + | ||
| 360 | - " s.directions AS stationRoutedirections," + | ||
| 361 | - " s.distances AS stationRouteDistances," + | ||
| 362 | - " s.to_time AS stationRouteToTime," + | ||
| 363 | - " s.first_time AS staitonRouteFirstTime," + | ||
| 364 | - " s.end_time AS stationRouteEndTime," + | ||
| 365 | - " s.descriptions AS stationRouteDescriptions," + | ||
| 366 | - " s.destroy AS stationRouteDestroy," + | ||
| 367 | - " s.versions AS stationRouteVersions," + | ||
| 368 | - " s.create_by AS stationRouteCreateBy," + | ||
| 369 | - " s.create_date AS stationRouteCreateDate," + | ||
| 370 | - " s.update_by AS stationRouteUpdateBy," + | ||
| 371 | - " s.update_date AS stationRouteUpdateDate FROM bsth_c_stationroute s WHERE s.line = ?1 and s.directions = ?2 and s.destroy = 0) a " + | 366 | + " s.line AS stationRouteLine," + |
| 367 | + " s.station as stationRouteStation," + | ||
| 368 | + " s.station_name AS stationRouteName," + | ||
| 369 | + " s.station_route_code as stationRouteCode," + | ||
| 370 | + " s.industry_code as industryCode," + | ||
| 371 | + " s.line_code AS stationRouteLIneCode," + | ||
| 372 | + " s.station_mark AS stationRouteStationMark," + | ||
| 373 | + " s.out_station_nmber AS stationOutStationNmber," + | ||
| 374 | + " s.directions AS stationRoutedirections," + | ||
| 375 | + " s.distances AS stationRouteDistances," + | ||
| 376 | + " s.to_time AS stationRouteToTime," + | ||
| 377 | + " s.first_time AS staitonRouteFirstTime," + | ||
| 378 | + " s.end_time AS stationRouteEndTime," + | ||
| 379 | + " s.descriptions AS stationRouteDescriptions," + | ||
| 380 | + " s.destroy AS stationRouteDestroy," + | ||
| 381 | + " s.versions AS stationRouteVersions," + | ||
| 382 | + " s.create_by AS stationRouteCreateBy," + | ||
| 383 | + " s.create_date AS stationRouteCreateDate," + | ||
| 384 | + " s.update_by AS stationRouteUpdateBy," + | ||
| 385 | + " s.update_date AS stationRouteUpdateDate FROM bsth_c_stationroute s WHERE s.line = ?1 and s.directions = ?2 and s.destroy = 0) a " + | ||
| 372 | " LEFT JOIN bsth_c_station b ON a.stationRouteStation = b.id order by a.stationRouteCode", nativeQuery=true) | 386 | " LEFT JOIN bsth_c_station b ON a.stationRouteStation = b.id order by a.stationRouteCode", nativeQuery=true) |
| 373 | List<Object[]> getStationRouteList(Integer lineId, Integer dir); | 387 | List<Object[]> getStationRouteList(Integer lineId, Integer dir); |
| 374 | 388 |
src/main/java/com/bsth/service/calc/impl/CalcIntervalServiceImpl.java
| @@ -702,16 +702,15 @@ public class CalcIntervalServiceImpl extends BaseServiceImpl<CalcInterval,Intege | @@ -702,16 +702,15 @@ public class CalcIntervalServiceImpl extends BaseServiceImpl<CalcInterval,Intege | ||
| 702 | public List<Map<String, Object>> sumInterval(Map<String, Object> map) { | 702 | public List<Map<String, Object>> sumInterval(Map<String, Object> map) { |
| 703 | // TODO Auto-generated method stub | 703 | // TODO Auto-generated method stub |
| 704 | final DecimalFormat df = new DecimalFormat("0.00"); | 704 | final DecimalFormat df = new DecimalFormat("0.00"); |
| 705 | - List<Map<String, Object>> list=new ArrayList<>(); | ||
| 706 | String gs=map.get("gs").toString().trim(); | 705 | String gs=map.get("gs").toString().trim(); |
| 707 | String fgs=map.get("fgs").toString().trim(); | 706 | String fgs=map.get("fgs").toString().trim(); |
| 708 | String sDate=map.get("date").toString(); | 707 | String sDate=map.get("date").toString(); |
| 709 | String eDate=map.get("endDate").toString(); | 708 | String eDate=map.get("endDate").toString(); |
| 710 | -// String nature=map.get("nature").toString(); | 709 | + String nature=map.get("nature").toString(); |
| 711 | 710 | ||
| 712 | List<Map<String, Object>> listAll=new ArrayList<Map<String, Object>>(); | 711 | List<Map<String, Object>> listAll=new ArrayList<Map<String, Object>>(); |
| 713 | 712 | ||
| 714 | - String sql="select gsbm,fgsbm,level,djg_all,bcs" | 713 | + String sql="select gsbm,fgsbm,xl_bm,xl_name,level,djg_all,bcs" |
| 715 | + " from bsth_c_calc_interval where date>= '"+sDate+"' and date<='"+eDate+"'" | 714 | + " from bsth_c_calc_interval where date>= '"+sDate+"' and date<='"+eDate+"'" |
| 716 | + " and level is not null and level <> '' "; | 715 | + " and level is not null and level <> '' "; |
| 717 | if(gs.length() > 0){ | 716 | if(gs.length() > 0){ |
| @@ -722,29 +721,52 @@ public class CalcIntervalServiceImpl extends BaseServiceImpl<CalcInterval,Intege | @@ -722,29 +721,52 @@ public class CalcIntervalServiceImpl extends BaseServiceImpl<CalcInterval,Intege | ||
| 722 | } | 721 | } |
| 723 | } | 722 | } |
| 724 | sql += " order by gsbm,fgsbm,level"; | 723 | sql += " order by gsbm,fgsbm,level"; |
| 725 | - | ||
| 726 | - List<Map<String, Object>> countList=jdbcTemplate.query(sql, | 724 | + |
| 725 | + List<Map<String, Object>> countList = new ArrayList<Map<String, Object>>(); | ||
| 726 | + List<Map<String, Object>> list=jdbcTemplate.query(sql, | ||
| 727 | new RowMapper<Map<String,Object>>(){ | 727 | new RowMapper<Map<String,Object>>(){ |
| 728 | @Override | 728 | @Override |
| 729 | public Map<String, Object> mapRow(ResultSet rs, int rowNum) throws SQLException { | 729 | public Map<String, Object> mapRow(ResultSet rs, int rowNum) throws SQLException { |
| 730 | Map<String, Object> m=new HashMap<String,Object>(); | 730 | Map<String, Object> m=new HashMap<String,Object>(); |
| 731 | m.put("gs", BasicData.businessCodeNameMap.get(rs.getString("gsbm"))); | 731 | m.put("gs", BasicData.businessCodeNameMap.get(rs.getString("gsbm"))); |
| 732 | m.put("fgs", BasicData.businessFgsCodeNameMap.get(rs.getString("fgsbm")+"_"+rs.getString("gsbm"))); | 732 | m.put("fgs", BasicData.businessFgsCodeNameMap.get(rs.getString("fgsbm")+"_"+rs.getString("gsbm"))); |
| 733 | + m.put("xlBm", rs.getString("xl_bm")); | ||
| 734 | + m.put("xlName", rs.getString("xl_name")); | ||
| 733 | m.put("level", rs.getString("level")); | 735 | m.put("level", rs.getString("level")); |
| 734 | m.put("djgAll", rs.getInt("djg_all")); | 736 | m.put("djgAll", rs.getInt("djg_all")); |
| 735 | m.put("bcs", rs.getInt("bcs")); | 737 | m.put("bcs", rs.getInt("bcs")); |
| 736 | return m; | 738 | return m; |
| 737 | } | 739 | } |
| 738 | }); | 740 | }); |
| 741 | + | ||
| 742 | + //根据线路类型确定是否营运 | ||
| 743 | + Map<String, Boolean> lineMap=lineService.lineNature(); | ||
| 744 | + for (int i = 0; i < list.size(); i++) { | ||
| 745 | + Map<String, Object> m=list.get(i); | ||
| 746 | + if (nature.equals("0")) { | ||
| 747 | + countList.add(m); | ||
| 748 | + }else if(nature.equals("1")){ | ||
| 749 | + if(lineMap.get(m.get("xlBm").toString())){ | ||
| 750 | + countList.add(m); | ||
| 751 | + } | ||
| 752 | + }else{ | ||
| 753 | + if(!lineMap.get(m.get("xlBm").toString())){ | ||
| 754 | + countList.add(m); | ||
| 755 | + } | ||
| 756 | + } | ||
| 757 | + } | ||
| 739 | 758 | ||
| 740 | List<String> keyList = new ArrayList<String>(); | 759 | List<String> keyList = new ArrayList<String>(); |
| 741 | Map<String, Map<String, Object>> keyMap = new HashMap<String, Map<String, Object>>(); | 760 | Map<String, Map<String, Object>> keyMap = new HashMap<String, Map<String, Object>>(); |
| 742 | Map<String, Object> sumMap1 = new HashMap<String, Object>(); | 761 | Map<String, Object> sumMap1 = new HashMap<String, Object>(); |
| 743 | Map<String, Object> sumMap2 = new HashMap<String, Object>(); | 762 | Map<String, Object> sumMap2 = new HashMap<String, Object>(); |
| 744 | sumMap1.put("fgs", "合计"); //分公司合计 | 763 | sumMap1.put("fgs", "合计"); //分公司合计 |
| 764 | + sumMap1.put("level", ""); | ||
| 745 | sumMap1.put("djgNum", "0"); | 765 | sumMap1.put("djgNum", "0"); |
| 746 | sumMap1.put("bcs", "0"); | 766 | sumMap1.put("bcs", "0"); |
| 747 | sumMap2.put("gs", "合计"); //公司合计 | 767 | sumMap2.put("gs", "合计"); //公司合计 |
| 768 | + sumMap2.put("fgs", ""); | ||
| 769 | + sumMap2.put("level", ""); | ||
| 748 | sumMap2.put("djgNum", "0"); | 770 | sumMap2.put("djgNum", "0"); |
| 749 | sumMap2.put("bcs", "0"); | 771 | sumMap2.put("bcs", "0"); |
| 750 | for(Map<String, Object> m : countList){ | 772 | for(Map<String, Object> m : countList){ |
| @@ -763,6 +785,7 @@ public class CalcIntervalServiceImpl extends BaseServiceImpl<CalcInterval,Intege | @@ -763,6 +785,7 @@ public class CalcIntervalServiceImpl extends BaseServiceImpl<CalcInterval,Intege | ||
| 763 | sumMap1 = new HashMap<String, Object>(); | 785 | sumMap1 = new HashMap<String, Object>(); |
| 764 | sumMap1.put("gs", gsName); | 786 | sumMap1.put("gs", gsName); |
| 765 | sumMap1.put("fgs", "合计"); | 787 | sumMap1.put("fgs", "合计"); |
| 788 | + sumMap1.put("level", ""); | ||
| 766 | sumMap1.put("djgNum", "0"); | 789 | sumMap1.put("djgNum", "0"); |
| 767 | sumMap1.put("bcs", "0"); | 790 | sumMap1.put("bcs", "0"); |
| 768 | } | 791 | } |
| @@ -833,10 +856,10 @@ public class CalcIntervalServiceImpl extends BaseServiceImpl<CalcInterval,Intege | @@ -833,10 +856,10 @@ public class CalcIntervalServiceImpl extends BaseServiceImpl<CalcInterval,Intege | ||
| 833 | String xlsName=""; | 856 | String xlsName=""; |
| 834 | m.put("sDate", sDate); | 857 | m.put("sDate", sDate); |
| 835 | m.put("eDate", eDate); | 858 | m.put("eDate", eDate); |
| 836 | - xls="calcIntervalCount.xls"; | ||
| 837 | - xlsName="大间隔情况表.xls"; | 859 | + xls="calcIntervalSum.xls"; |
| 860 | + xlsName="大间隔发生次数汇总.xls"; | ||
| 838 | 861 | ||
| 839 | - ee.excelReplace(listI, new Object[]{m}, path + "mould/" + ""+xls, | 862 | + ee.excelReplace(listI, new Object[]{m}, path + "mould/" + xls, |
| 840 | path + "export/"+dateTime+"-"+lineName+"-"+xlsName); | 863 | path + "export/"+dateTime+"-"+lineName+"-"+xlsName); |
| 841 | } catch (Exception e) { | 864 | } catch (Exception e) { |
| 842 | // TODO: handle exception | 865 | // TODO: handle exception |
src/main/java/com/bsth/service/impl/StationRouteServiceImpl.java
| @@ -275,6 +275,8 @@ public class StationRouteServiceImpl extends BaseServiceImpl<StationRoute, Integ | @@ -275,6 +275,8 @@ public class StationRouteServiceImpl extends BaseServiceImpl<StationRoute, Integ | ||
| 275 | tempM.put("stationVersions", stationList.get(i)[30]); | 275 | tempM.put("stationVersions", stationList.get(i)[30]); |
| 276 | // 站点说明 | 276 | // 站点说明 |
| 277 | tempM.put("stationDescriptions", stationList.get(i)[31]); | 277 | tempM.put("stationDescriptions", stationList.get(i)[31]); |
| 278 | + // 行业标准 | ||
| 279 | + tempM.put("industryCode", stationList.get(i)[32]); | ||
| 278 | tempM.put("zdmc", stationList.get(i)[3]); | 280 | tempM.put("zdmc", stationList.get(i)[3]); |
| 279 | tempM.put("text", stationList.get(i)[3]); | 281 | tempM.put("text", stationList.get(i)[3]); |
| 280 | tempM.put("icon", "fa fa-bus"); | 282 | tempM.put("icon", "fa fa-bus"); |
| @@ -603,6 +605,8 @@ public class StationRouteServiceImpl extends BaseServiceImpl<StationRoute, Integ | @@ -603,6 +605,8 @@ public class StationRouteServiceImpl extends BaseServiceImpl<StationRoute, Integ | ||
| 603 | 605 | ||
| 604 | tempM.put("stationRouteId", objects.get(i)[39]); | 606 | tempM.put("stationRouteId", objects.get(i)[39]); |
| 605 | tempM.put("zdmc", objects.get(i)[40]); | 607 | tempM.put("zdmc", objects.get(i)[40]); |
| 608 | + // 行业编码 | ||
| 609 | + tempM.put("industryCode", objects.get(i)[41]); | ||
| 606 | 610 | ||
| 607 | resultList.add(tempM); | 611 | resultList.add(tempM); |
| 608 | } | 612 | } |
| @@ -1406,6 +1410,8 @@ public class StationRouteServiceImpl extends BaseServiceImpl<StationRoute, Integ | @@ -1406,6 +1410,8 @@ public class StationRouteServiceImpl extends BaseServiceImpl<StationRoute, Integ | ||
| 1406 | 1410 | ||
| 1407 | // 站点说明 | 1411 | // 站点说明 |
| 1408 | tempM.put("stationDescriptions", stationList.get(i)[31]); | 1412 | tempM.put("stationDescriptions", stationList.get(i)[31]); |
| 1413 | + // 行业编码 | ||
| 1414 | + tempM.put("industryCode", stationList.get(i)[32]); | ||
| 1409 | 1415 | ||
| 1410 | staitonRouteList.add(tempM); | 1416 | staitonRouteList.add(tempM); |
| 1411 | } | 1417 | } |
src/main/java/com/bsth/service/impl/StationServiceImpl.java
| @@ -759,6 +759,8 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | @@ -759,6 +759,8 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | ||
| 759 | Integer stationId = null; | 759 | Integer stationId = null; |
| 760 | // 站点名称 | 760 | // 站点名称 |
| 761 | String zdmc = map.get("zdmc").equals("") ? "" : map.get("zdmc").toString(); | 761 | String zdmc = map.get("zdmc").equals("") ? "" : map.get("zdmc").toString(); |
| 762 | + // 行业编码 | ||
| 763 | + String industryCode = map.get("industryCode").equals("") ? "" : map.get("industryCode").toString(); | ||
| 762 | // 方向 | 764 | // 方向 |
| 763 | Integer directions = map.get("directions").equals("") ? null : Integer.parseInt(map.get("directions").toString()); | 765 | Integer directions = map.get("directions").equals("") ? null : Integer.parseInt(map.get("directions").toString()); |
| 764 | // 原坐标点 | 766 | // 原坐标点 |
| @@ -860,6 +862,7 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | @@ -860,6 +862,7 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | ||
| 860 | // 线路 | 862 | // 线路 |
| 861 | arg0.setLine(resultLine); | 863 | arg0.setLine(resultLine); |
| 862 | arg0.setLineCode(resultLine.getLineCode()); | 864 | arg0.setLineCode(resultLine.getLineCode()); |
| 865 | + arg0.setIndustryCode(industryCode); | ||
| 863 | // 站点 | 866 | // 站点 |
| 864 | arg0.setStation(station); | 867 | arg0.setStation(station); |
| 865 | // 站点路由名称 | 868 | // 站点路由名称 |
| @@ -900,8 +903,8 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | @@ -900,8 +903,8 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | ||
| 900 | public Map<String, Object> stationCacheSave(Map<String, Object> map) { | 903 | public Map<String, Object> stationCacheSave(Map<String, Object> map) { |
| 901 | Map<String, Object> resultMap = new HashMap<String, Object>(); | 904 | Map<String, Object> resultMap = new HashMap<String, Object>(); |
| 902 | try { | 905 | try { |
| 903 | - // 站点编码 | ||
| 904 | - String stationCod = ""; | 906 | + // 站点编码 , 行业编码 |
| 907 | + String stationCod = "",industryCode = ""; | ||
| 905 | // 站点ID | 908 | // 站点ID |
| 906 | Integer stationId = null; | 909 | Integer stationId = null; |
| 907 | // 站点名称 | 910 | // 站点名称 |
| @@ -986,6 +989,8 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | @@ -986,6 +989,8 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | ||
| 986 | } | 989 | } |
| 987 | Station station = repository.findOne(stationId); | 990 | Station station = repository.findOne(stationId); |
| 988 | StationRouteCache arg0 = new StationRouteCache(); | 991 | StationRouteCache arg0 = new StationRouteCache(); |
| 992 | + // 行业编码 | ||
| 993 | + industryCode = map.get("industryCode").equals("") ? "" : map.get("industryCode").toString(); | ||
| 989 | // 距离 | 994 | // 距离 |
| 990 | Double distances = map.get("distances").equals("") ? 0.0d : Double.parseDouble(map.get("distances").toString()); | 995 | Double distances = map.get("distances").equals("") ? 0.0d : Double.parseDouble(map.get("distances").toString()); |
| 991 | // 时间 | 996 | // 时间 |
| @@ -1012,6 +1017,8 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | @@ -1012,6 +1017,8 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | ||
| 1012 | arg0.setLineCode(resultLine.getLineCode()); | 1017 | arg0.setLineCode(resultLine.getLineCode()); |
| 1013 | // 站点 | 1018 | // 站点 |
| 1014 | arg0.setStation(station); | 1019 | arg0.setStation(station); |
| 1020 | + // 行业编码 | ||
| 1021 | + arg0.setIndustryCode(industryCode); | ||
| 1015 | // 站点路由名称 | 1022 | // 站点路由名称 |
| 1016 | arg0.setStationName(stationName); | 1023 | arg0.setStationName(stationName); |
| 1017 | // 站点路由编码 | 1024 | // 站点路由编码 |
| @@ -1064,6 +1071,7 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | @@ -1064,6 +1071,7 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | ||
| 1064 | // 站点Id | 1071 | // 站点Id |
| 1065 | Integer stationId = map.get("stationId").equals("") ? null : Integer.parseInt(map.get("stationId").toString()); | 1072 | Integer stationId = map.get("stationId").equals("") ? null : Integer.parseInt(map.get("stationId").toString()); |
| 1066 | String stationCod = map.get("stationCod").equals("") ? "" : map.get("stationCod").toString(); | 1073 | String stationCod = map.get("stationCod").equals("") ? "" : map.get("stationCod").toString(); |
| 1074 | + String industryCode = map.get("industryCode").equals("") ? "" : map.get("industryCode").toString(); | ||
| 1067 | String zdmc = map.get("zdmc").equals("") ? "" : map.get("zdmc").toString(); | 1075 | String zdmc = map.get("zdmc").equals("") ? "" : map.get("zdmc").toString(); |
| 1068 | // 站点名称 | 1076 | // 站点名称 |
| 1069 | String stationRouteName = map.get("stationName").equals("") ? "" : map.get("stationName").toString(); | 1077 | String stationRouteName = map.get("stationName").equals("") ? "" : map.get("stationName").toString(); |
| @@ -1158,6 +1166,7 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | @@ -1158,6 +1166,7 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | ||
| 1158 | stationRoute.setStationRouteCode(stationRouteCode); | 1166 | stationRoute.setStationRouteCode(stationRouteCode); |
| 1159 | stationRoute.setStation(station); | 1167 | stationRoute.setStation(station); |
| 1160 | stationRoute.setStationCode(station.getStationCod()); | 1168 | stationRoute.setStationCode(station.getStationCod()); |
| 1169 | + stationRoute.setIndustryCode(industryCode); | ||
| 1161 | stationRoute.setLine(line); | 1170 | stationRoute.setLine(line); |
| 1162 | stationRoute.setLineCode(line.getLineCode()); | 1171 | stationRoute.setLineCode(line.getLineCode()); |
| 1163 | stationRoute.setStationMark(stationMark); | 1172 | stationRoute.setStationMark(stationMark); |
| @@ -1799,6 +1808,8 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | @@ -1799,6 +1808,8 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | ||
| 1799 | Integer stationId = map.get("stationId").equals("") ? null : Integer.parseInt(map.get("stationId").toString()); | 1808 | Integer stationId = map.get("stationId").equals("") ? null : Integer.parseInt(map.get("stationId").toString()); |
| 1800 | String stationCod = map.get("stationCod").equals("") ? "" : map.get("stationCod").toString(); | 1809 | String stationCod = map.get("stationCod").equals("") ? "" : map.get("stationCod").toString(); |
| 1801 | String zdmc = map.get("zdmc").equals("") ? "" : map.get("zdmc").toString(); | 1810 | String zdmc = map.get("zdmc").equals("") ? "" : map.get("zdmc").toString(); |
| 1811 | + // 行业编码 | ||
| 1812 | + String industryCode = map.get("industryCode").equals("") ? "" : map.get("industryCode").toString(); | ||
| 1802 | // 站点路由名称 | 1813 | // 站点路由名称 |
| 1803 | String stationName = map.get("stationName").equals("") ? "" : map.get("stationName").toString(); | 1814 | String stationName = map.get("stationName").equals("") ? "" : map.get("stationName").toString(); |
| 1804 | // 所在道路编码 | 1815 | // 所在道路编码 |
| @@ -1890,6 +1901,7 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | @@ -1890,6 +1901,7 @@ public class StationServiceImpl extends BaseServiceImpl<Station, Integer> implem | ||
| 1890 | stationRoute.setStationName(stationName); | 1901 | stationRoute.setStationName(stationName); |
| 1891 | stationRoute.setId(stationRouteId); | 1902 | stationRoute.setId(stationRouteId); |
| 1892 | stationRoute.setStationRouteCode(stationRouteCode); | 1903 | stationRoute.setStationRouteCode(stationRouteCode); |
| 1904 | + stationRoute.setIndustryCode(industryCode); | ||
| 1893 | stationRoute.setStation(station); | 1905 | stationRoute.setStation(station); |
| 1894 | stationRoute.setStationCode(station.getStationCod()); | 1906 | stationRoute.setStationCode(station.getStationCod()); |
| 1895 | stationRoute.setLine(line); | 1907 | stationRoute.setLine(line); |
src/main/resources/static/pages/base/line/addstation.html
| @@ -52,6 +52,17 @@ | @@ -52,6 +52,17 @@ | ||
| 52 | </div> | 52 | </div> |
| 53 | </div> | 53 | </div> |
| 54 | </div> | 54 | </div> |
| 55 | + <!-- 行业编码 --> | ||
| 56 | + <div class="form-body"> | ||
| 57 | + <div class="form-group"> | ||
| 58 | + <label class="control-label col-md-3"> | ||
| 59 | + 行业编码 : | ||
| 60 | + </label> | ||
| 61 | + <div class="col-md-6"> | ||
| 62 | + <input type="text" class="form-control" name="industryCode" id="industryCodeInput" placeholder="行业编码"> | ||
| 63 | + </div> | ||
| 64 | + </div> | ||
| 65 | + </div> | ||
| 55 | <!-- 站点方向 --> | 66 | <!-- 站点方向 --> |
| 56 | <div class="form-body"> | 67 | <div class="form-body"> |
| 57 | <div class="form-group"> | 68 | <div class="form-group"> |
src/main/resources/static/pages/base/line/editstation.html
| @@ -54,6 +54,17 @@ | @@ -54,6 +54,17 @@ | ||
| 54 | </div> | 54 | </div> |
| 55 | </div> | 55 | </div> |
| 56 | </div> | 56 | </div> |
| 57 | + <!-- 行业编码 --> | ||
| 58 | + <div class="form-body"> | ||
| 59 | + <div class="form-group"> | ||
| 60 | + <label class="control-label col-md-3"> | ||
| 61 | + 行业编码 : | ||
| 62 | + </label> | ||
| 63 | + <div class="col-md-6"> | ||
| 64 | + <input type="text" class="form-control" name="industryCode" id="industryCodeInput" placeholder="行业编码"> | ||
| 65 | + </div> | ||
| 66 | + </div> | ||
| 67 | + </div> | ||
| 57 | <!-- 站点方向 --> | 68 | <!-- 站点方向 --> |
| 58 | <div class="form-body"> | 69 | <div class="form-body"> |
| 59 | <div class="form-group"> | 70 | <div class="form-group"> |
| @@ -363,5 +374,5 @@ $('#edit_station_mobal').on('editSelectMobal_show', function(e, map_,ajaxd,fun,s | @@ -363,5 +374,5 @@ $('#edit_station_mobal').on('editSelectMobal_show', function(e, map_,ajaxd,fun,s | ||
| 363 | } | 374 | } |
| 364 | return tel; | 375 | return tel; |
| 365 | }, '方向必须一致!'); | 376 | }, '方向必须一致!'); |
| 366 | -}); | 377 | +}); |
| 367 | </script> | 378 | </script> |
| 368 | \ No newline at end of file | 379 | \ No newline at end of file |
src/main/resources/static/pages/base/line/js/map-function.js
| @@ -61,6 +61,8 @@ var PublicFunctions = function () { | @@ -61,6 +61,8 @@ var PublicFunctions = function () { | ||
| 61 | $('#stationNameInput').val(editStationParmas.stationRouteStationName); | 61 | $('#stationNameInput').val(editStationParmas.stationRouteStationName); |
| 62 | // 获取站点编码元素设值 | 62 | // 获取站点编码元素设值 |
| 63 | $('#stationCodInput').val(editStationParmas.stationStationCod); | 63 | $('#stationCodInput').val(editStationParmas.stationStationCod); |
| 64 | + // 行业编码 | ||
| 65 | + $('#industryCodeInput').val(editStationParmas.industryCode); | ||
| 64 | // 获取站点类型元素设值 | 66 | // 获取站点类型元素设值 |
| 65 | // $('#stationMarkSelect').val(editStationParmas.stationRouteStationMark); | 67 | // $('#stationMarkSelect').val(editStationParmas.stationRouteStationMark); |
| 66 | // 获取站点方向元素设值 | 68 | // 获取站点方向元素设值 |
src/main/resources/static/pages/base/line/js/map.js
| @@ -559,16 +559,16 @@ var WorldsBMapLine = function () { | @@ -559,16 +559,16 @@ var WorldsBMapLine = function () { | ||
| 559 | var htm = '<HR style="border:1 dashed #987cb9" width="100%" color=#987cb9 SIZE=1>'+ | 559 | var htm = '<HR style="border:1 dashed #987cb9" width="100%" color=#987cb9 SIZE=1>'+ |
| 560 | '<span style="color:#DDD;font-size: 15px;">站点名称:' + objStation.stationStationName + '</span>' + | 560 | '<span style="color:#DDD;font-size: 15px;">站点名称:' + objStation.stationStationName + '</span>' + |
| 561 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点编码:' + objStation.stationStationCod + '</span>' + | 561 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点编码:' + objStation.stationStationCod + '</span>' + |
| 562 | + '<span class="help-block" style="color:#DDD;font-size: 15px;">行业编码:' + (objStation.industryCode == null ? "":objStation.industryCode) + '</span>' + | ||
| 562 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点序号:' + objStation.stationRouteStationRouteCode + '</span>' + | 563 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点序号:' + objStation.stationRouteStationRouteCode + '</span>' + |
| 563 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点类型:' + markTypeStr + '</span>' + | 564 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点类型:' + markTypeStr + '</span>' + |
| 564 | '<span class="help-block" style="color:#DDD;font-size: 15px;">纬度坐标:' + objStation.stationBJwpoints + '</span>' + | 565 | '<span class="help-block" style="color:#DDD;font-size: 15px;">纬度坐标:' + objStation.stationBJwpoints + '</span>' + |
| 565 | '<span class="help-block" style="color:#DDD;font-size: 15px;">到站时间:' + objStation.stationRouteToTime + ' 分钟</span>' + | 566 | '<span class="help-block" style="color:#DDD;font-size: 15px;">到站时间:' + objStation.stationRouteToTime + ' 分钟</span>' + |
| 566 | '<span class="help-block" style="color:#DDD;font-size: 15px;">到站距离:' + objStation.stationRouteDistances + ' 公里</span>' + | 567 | '<span class="help-block" style="color:#DDD;font-size: 15px;">到站距离:' + objStation.stationRouteDistances + ' 公里</span>' + |
| 567 | - '<span class="help-block" style="color:#DDD;font-size: 15px;">范围半径:' + objStation.stationRadius + '</span>' + | ||
| 568 | '<span class="help-block" style="color:#DDD;font-size: 15px;">版本号  :' + objStation.stationRouteVersions + '</span>' + | 568 | '<span class="help-block" style="color:#DDD;font-size: 15px;">版本号  :' + objStation.stationRouteVersions + '</span>' + |
| 569 | '<span class="help-block" style="width: 100%;font-size: 15px;;color:#DDD;'+ | 569 | '<span class="help-block" style="width: 100%;font-size: 15px;;color:#DDD;'+ |
| 570 | 'overflow: hidden; white-space: nowrap; text-overflow: ellipsis; " title="'+ | 570 | 'overflow: hidden; white-space: nowrap; text-overflow: ellipsis; " title="'+ |
| 571 | - objStation.stationRouteDescriptions +'" >说明/描述:' + objStation.stationRouteDescriptions + '</span>' ; | 571 | + objStation.stationRouteDescriptions +'" >说明/描述:' + (objStation.stationRouteDescriptions == null ? "":objStation.stationRouteDescriptions)+ '</span>' ; |
| 572 | 572 | ||
| 573 | // 创建信息窗口 | 573 | // 创建信息窗口 |
| 574 | var infoWindow_target = new BMap.InfoWindow(htm, opts_polygon); | 574 | var infoWindow_target = new BMap.InfoWindow(htm, opts_polygon); |
| @@ -668,6 +668,7 @@ var WorldsBMapLine = function () { | @@ -668,6 +668,7 @@ var WorldsBMapLine = function () { | ||
| 668 | var htm = '<HR style="border:1 dashed #987cb9" width="100%" color=#987cb9 SIZE=1>'+ | 668 | var htm = '<HR style="border:1 dashed #987cb9" width="100%" color=#987cb9 SIZE=1>'+ |
| 669 | '<span style="color:#DDD;font-size: 15px;">站点名称:' + objStation.stationStationName + '</span>' + | 669 | '<span style="color:#DDD;font-size: 15px;">站点名称:' + objStation.stationStationName + '</span>' + |
| 670 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点编码:' + objStation.stationStationCod + '</span>' + | 670 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点编码:' + objStation.stationStationCod + '</span>' + |
| 671 | + '<span class="help-block" style="color:#DDD;font-size: 15px;">行业编码:' + (objStation.industryCode == null ? "":objStation.industryCode)+ '</span>' + | ||
| 671 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点序号:' + objStation.stationRouteStationRouteCode + '</span>' + | 672 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点序号:' + objStation.stationRouteStationRouteCode + '</span>' + |
| 672 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点类型:' + markTypeStr + '</span>' + | 673 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点类型:' + markTypeStr + '</span>' + |
| 673 | '<span class="help-block" style="color:#DDD;font-size: 15px;">纬度坐标:' + objStation.stationBJwpoints + '</span>' + | 674 | '<span class="help-block" style="color:#DDD;font-size: 15px;">纬度坐标:' + objStation.stationBJwpoints + '</span>' + |
| @@ -677,7 +678,7 @@ var WorldsBMapLine = function () { | @@ -677,7 +678,7 @@ var WorldsBMapLine = function () { | ||
| 677 | '<span class="help-block" style="color:#DDD;font-size: 15px;">版本号  :' + objStation.stationRouteVersions + '</span>' + | 678 | '<span class="help-block" style="color:#DDD;font-size: 15px;">版本号  :' + objStation.stationRouteVersions + '</span>' + |
| 678 | '<span class="help-block" style="width: 100%;font-size: 15px;;color:#DDD;'+ | 679 | '<span class="help-block" style="width: 100%;font-size: 15px;;color:#DDD;'+ |
| 679 | 'overflow: hidden; white-space: nowrap; text-overflow: ellipsis; " title="'+ | 680 | 'overflow: hidden; white-space: nowrap; text-overflow: ellipsis; " title="'+ |
| 680 | - objStation.stationRouteDescriptions +'" >说明/描述:' + objStation.stationRouteDescriptions + '</span>' ; | 681 | + objStation.stationRouteDescriptions +'" >说明/描述:' + (objStation.stationRouteDescriptions == null ? "":objStation.stationRouteDescriptions) + '</span>' ; |
| 681 | 682 | ||
| 682 | // 创建信息窗口 | 683 | // 创建信息窗口 |
| 683 | var infoWindow_target = new BMap.InfoWindow(htm, opts); | 684 | var infoWindow_target = new BMap.InfoWindow(htm, opts); |
src/main/resources/static/pages/base/station/edit.html
| @@ -67,6 +67,17 @@ | @@ -67,6 +67,17 @@ | ||
| 67 | </div> | 67 | </div> |
| 68 | </div> | 68 | </div> |
| 69 | </div> | 69 | </div> |
| 70 | + <!-- 行业编码 --> | ||
| 71 | + <div class="form-body"> | ||
| 72 | + <div class="form-group"> | ||
| 73 | + <label class="control-label col-md-3"> | ||
| 74 | + 行业编码 : | ||
| 75 | + </label> | ||
| 76 | + <div class="col-md-6"> | ||
| 77 | + <input type="text" class="form-control" name="industryCode" id="industryCodeInput" placeholder="行业编码"> | ||
| 78 | + </div> | ||
| 79 | + </div> | ||
| 80 | + </div> | ||
| 70 | <!-- 站点方向 --> | 81 | <!-- 站点方向 --> |
| 71 | <div class="form-body"> | 82 | <div class="form-body"> |
| 72 | <div class="form-group"> | 83 | <div class="form-group"> |
src/main/resources/static/pages/base/station/js/station-positions-function.js
| @@ -28,16 +28,17 @@ var PositionsPublicFunctions = function () { | @@ -28,16 +28,17 @@ var PositionsPublicFunctions = function () { | ||
| 28 | var htm = '<HR style="border:1 dashed #987cb9" width="100%" color=#987cb9 SIZE=1>'+ | 28 | var htm = '<HR style="border:1 dashed #987cb9" width="100%" color=#987cb9 SIZE=1>'+ |
| 29 | '<span style="color:#DDD;font-size: 15px;">站点名称:' + r[0].zdmc + '</span>' + | 29 | '<span style="color:#DDD;font-size: 15px;">站点名称:' + r[0].zdmc + '</span>' + |
| 30 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点编码:' + r[0].stationCode + '</span>' + | 30 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点编码:' + r[0].stationCode + '</span>' + |
| 31 | + '<span class="help-block" style="color:#DDD;font-size: 15px;">行业编码:' + (r[0].industryCode == null ? "":r[0].industryCode) + '</span>' + | ||
| 31 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点序号:' + r[0].stationRouteCode + '</span>' + | 32 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点序号:' + r[0].stationRouteCode + '</span>' + |
| 32 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点类型:' + markTypeStr + '</span>' + | 33 | '<span class="help-block" style="color:#DDD;font-size: 15px;">站点类型:' + markTypeStr + '</span>' + |
| 33 | '<span class="help-block" style="color:#DDD;font-size: 15px;">纬度坐标:' + r[0].stationJwpoints + '</span>' + | 34 | '<span class="help-block" style="color:#DDD;font-size: 15px;">纬度坐标:' + r[0].stationJwpoints + '</span>' + |
| 34 | '<span class="help-block" style="color:#DDD;font-size: 15px;">到站时间:' + r[0].stationRouteToTime + ' 分钟</span>' + | 35 | '<span class="help-block" style="color:#DDD;font-size: 15px;">到站时间:' + r[0].stationRouteToTime + ' 分钟</span>' + |
| 35 | '<span class="help-block" style="color:#DDD;font-size: 15px;">到站距离:' + r[0].stationRouteDistances + ' 公里</span>' + | 36 | '<span class="help-block" style="color:#DDD;font-size: 15px;">到站距离:' + r[0].stationRouteDistances + ' 公里</span>' + |
| 36 | '<span class="help-block" style="color:#DDD;font-size: 15px;">范围半径:' + r[0].stationRadius + '</span>' + | 37 | '<span class="help-block" style="color:#DDD;font-size: 15px;">范围半径:' + r[0].stationRadius + '</span>' + |
| 37 | - '<span class="help-block" style="color:#DDD;font-size: 15px;">版本 号:' + r[0].stationRouteVersions + '</span>' + | 38 | + '<span class="help-block" style="color:#DDD;font-size: 15px;">版本号 :' + r[0].stationRouteVersions + '</span>' + |
| 38 | '<span class="help-block" style="width: 100%;font-size: 15px;;color:#DDD;'+ | 39 | '<span class="help-block" style="width: 100%;font-size: 15px;;color:#DDD;'+ |
| 39 | 'overflow: hidden; white-space: nowrap; text-overflow: ellipsis; " title="'+ | 40 | 'overflow: hidden; white-space: nowrap; text-overflow: ellipsis; " title="'+ |
| 40 | - r[0].stationRouteDescriptions +'" >说明/描述:' + r[0].stationRouteDescriptions + '</span>' ; | 41 | + r[0].stationRouteDescriptions +'" >说明/描述:' + (r[0].stationRouteDescriptions == null ? "":r[0].stationRouteDescriptions) + '</span>' ; |
| 41 | // 信息窗口参数属性 | 42 | // 信息窗口参数属性 |
| 42 | var opts = { | 43 | var opts = { |
| 43 | // 信息窗口宽度 | 44 | // 信息窗口宽度 |
| @@ -118,6 +119,8 @@ var PositionsPublicFunctions = function () { | @@ -118,6 +119,8 @@ var PositionsPublicFunctions = function () { | ||
| 118 | $('#stationRouteLineInput').val(stationObj.stationRouteLine); | 119 | $('#stationRouteLineInput').val(stationObj.stationRouteLine); |
| 119 | // 线路编码 | 120 | // 线路编码 |
| 120 | $('#lineCodeInput').val(stationObj.stationRouteLIneCode); | 121 | $('#lineCodeInput').val(stationObj.stationRouteLIneCode); |
| 122 | + // 线路编码 | ||
| 123 | + $('#industryCodeInput').val(stationObj.industryCode); | ||
| 121 | // WGS坐标点图形集合 | 124 | // WGS坐标点图形集合 |
| 122 | $('#bPolygonGridInput').val(stationObj.stationBPolyonGrid); | 125 | $('#bPolygonGridInput').val(stationObj.stationBPolyonGrid); |
| 123 | // 获取站点名称元素设值 | 126 | // 获取站点名称元素设值 |
| @@ -201,6 +204,8 @@ var PositionsPublicFunctions = function () { | @@ -201,6 +204,8 @@ var PositionsPublicFunctions = function () { | ||
| 201 | $('#versionsInput').val(stationObj.stationRouteVersions); | 204 | $('#versionsInput').val(stationObj.stationRouteVersions); |
| 202 | // 描述/说明 | 205 | // 描述/说明 |
| 203 | $('#descriptionsTextarea').val(stationObj.stationRouteDescriptions); | 206 | $('#descriptionsTextarea').val(stationObj.stationRouteDescriptions); |
| 207 | + // 行业编码 | ||
| 208 | + $('#industryCodeInput').val(stationObj.industryCode); | ||
| 204 | }, | 209 | }, |
| 205 | // 获取站点路由. | 210 | // 获取站点路由. |
| 206 | getzdlyInfo : function(params,callback) { | 211 | getzdlyInfo : function(params,callback) { |
src/main/resources/static/pages/base/station/list.html
| @@ -34,14 +34,15 @@ | @@ -34,14 +34,15 @@ | ||
| 34 | <th width="3%">序号</th> | 34 | <th width="3%">序号</th> |
| 35 | <th width="5%">线路编号</th> | 35 | <th width="5%">线路编号</th> |
| 36 | <th width="8%">线路名称</th> | 36 | <th width="8%">线路名称</th> |
| 37 | - <th width="5%">线路方向</th> | 37 | + <th width="4%">线路方向</th> |
| 38 | <th width="8%">站点路由名称</th> | 38 | <th width="8%">站点路由名称</th> |
| 39 | <th width="4%">站点编码</th> | 39 | <th width="4%">站点编码</th> |
| 40 | + <th width="4%">行业编码</th> | ||
| 40 | <th width="4%">站点序号</th> | 41 | <th width="4%">站点序号</th> |
| 41 | <th width="4%">站点类型</th> | 42 | <th width="4%">站点类型</th> |
| 42 | <th width="6%">站点距离(km)</th> | 43 | <th width="6%">站点距离(km)</th> |
| 43 | <th width="6%">站点时长(min)</th> | 44 | <th width="6%">站点时长(min)</th> |
| 44 | - <th width="4%">版本号</th> | 45 | + <th width="3%">版本号</th> |
| 45 | <th width="4%">是否撤销</th> | 46 | <th width="4%">是否撤销</th> |
| 46 | <th width="8%">操作</th> | 47 | <th width="8%">操作</th> |
| 47 | </tr> | 48 | </tr> |
| @@ -68,6 +69,9 @@ | @@ -68,6 +69,9 @@ | ||
| 68 | <input type="text" class="form-control form-filter input-sm" name="stationCode_eq"> | 69 | <input type="text" class="form-control form-filter input-sm" name="stationCode_eq"> |
| 69 | </td> | 70 | </td> |
| 70 | <td> | 71 | <td> |
| 72 | + <input type="text" class="form-control form-filter input-sm" name="industryCode_eq"> | ||
| 73 | + </td> | ||
| 74 | + <td> | ||
| 71 | <input type="text" class="form-control form-filter input-sm" name="stationRouteCode_eq"> | 75 | <input type="text" class="form-control form-filter input-sm" name="stationRouteCode_eq"> |
| 72 | </td> | 76 | </td> |
| 73 | <td> | 77 | <td> |
| @@ -141,6 +145,9 @@ | @@ -141,6 +145,9 @@ | ||
| 141 | {{obj.stationCode}} | 145 | {{obj.stationCode}} |
| 142 | </td> | 146 | </td> |
| 143 | <td> | 147 | <td> |
| 148 | + {{obj.industryCode}} | ||
| 149 | + </td> | ||
| 150 | + <td> | ||
| 144 | {{obj.stationRouteCode}} | 151 | {{obj.stationRouteCode}} |
| 145 | </td> | 152 | </td> |
| 146 | <td> | 153 | <td> |
src/main/resources/static/pages/base/station/list_edit.html
| @@ -249,7 +249,16 @@ | @@ -249,7 +249,16 @@ | ||
| 249 | 249 | ||
| 250 | <!-- 表单分组组件 form-group START --> | 250 | <!-- 表单分组组件 form-group START --> |
| 251 | <div class="form-group"> | 251 | <div class="form-group"> |
| 252 | - <!-- 描述/说明 --> | 252 | + <!-- 行业编码 --> |
| 253 | + <div class="col-md-6"> | ||
| 254 | + <label class="control-label col-md-5"> | ||
| 255 | + 行业编码 : | ||
| 256 | + </label> | ||
| 257 | + <div class="col-md-4"> | ||
| 258 | + <input type="text" class="form-control" name="industryCode" id="industryCodeInput" placeholder="行业编码"> | ||
| 259 | + </div> | ||
| 260 | + </div> | ||
| 261 | + <!-- 描述/说明 --> | ||
| 253 | <div class="col-md-6"> | 262 | <div class="col-md-6"> |
| 254 | <label class="control-label col-md-5"><span class="required"></span>描述/说明 : | 263 | <label class="control-label col-md-5"><span class="required"></span>描述/说明 : |
| 255 | </label> | 264 | </label> |
src/main/resources/static/pages/base/stationroute/add.html
| @@ -52,6 +52,17 @@ | @@ -52,6 +52,17 @@ | ||
| 52 | </div> | 52 | </div> |
| 53 | </div> | 53 | </div> |
| 54 | </div> | 54 | </div> |
| 55 | + <!-- 行业编码 --> | ||
| 56 | + <div class="form-body"> | ||
| 57 | + <div class="form-group"> | ||
| 58 | + <label class="control-label col-md-3"> | ||
| 59 | + 行业编码 : | ||
| 60 | + </label> | ||
| 61 | + <div class="col-md-6"> | ||
| 62 | + <input type="text" class="form-control" name="industryCode" id="industryCodeInput" placeholder="行业编码"> | ||
| 63 | + </div> | ||
| 64 | + </div> | ||
| 65 | + </div> | ||
| 55 | <!-- 站点方向 --> | 66 | <!-- 站点方向 --> |
| 56 | <div class="form-body"> | 67 | <div class="form-body"> |
| 57 | <div class="form-group"> | 68 | <div class="form-group"> |
src/main/resources/static/pages/base/stationroute/edit.html
| @@ -30,7 +30,7 @@ | @@ -30,7 +30,7 @@ | ||
| 30 | <div class="form-body"> | 30 | <div class="form-body"> |
| 31 | <div class="form-group"> | 31 | <div class="form-group"> |
| 32 | <label class="control-label col-md-3"> | 32 | <label class="control-label col-md-3"> |
| 33 | - <span class="required"> * </span> 站点名称: | 33 | + <span class="required"> * </span> 站点名称 : |
| 34 | </label> | 34 | </label> |
| 35 | <div class="col-md-6"> | 35 | <div class="col-md-6"> |
| 36 | <input type="text" class="form-control" name="stationName" id="stationNameInput" placeholder="站点名称" readonly="readonly"> | 36 | <input type="text" class="form-control" name="stationName" id="stationNameInput" placeholder="站点名称" readonly="readonly"> |
| @@ -48,6 +48,18 @@ | @@ -48,6 +48,18 @@ | ||
| 48 | </div> | 48 | </div> |
| 49 | </div> | 49 | </div> |
| 50 | </div> | 50 | </div> |
| 51 | + | ||
| 52 | + <!-- 行业编码 --> | ||
| 53 | + <div class="form-body"> | ||
| 54 | + <div class="form-group"> | ||
| 55 | + <label class="control-label col-md-3"> | ||
| 56 | + 行业编码 : | ||
| 57 | + </label> | ||
| 58 | + <div class="col-md-6"> | ||
| 59 | + <input type="text" class="form-control" name="industryCode" id="industryCodeInput" placeholder="行业编码"> | ||
| 60 | + </div> | ||
| 61 | + </div> | ||
| 62 | + </div> | ||
| 51 | <!-- 站点序号 --> | 63 | <!-- 站点序号 --> |
| 52 | <div class="form-body"> | 64 | <div class="form-body"> |
| 53 | <div class="form-group"> | 65 | <div class="form-group"> |
| @@ -251,7 +263,7 @@ $('#edit_station_mobal').on('editSelectMobal_show', function(e, map_,ajaxd,stati | @@ -251,7 +263,7 @@ $('#edit_station_mobal').on('editSelectMobal_show', function(e, map_,ajaxd,stati | ||
| 251 | // 弹出添加成功提示消息 | 263 | // 弹出添加成功提示消息 |
| 252 | layer.msg('修改成功...'); | 264 | layer.msg('修改成功...'); |
| 253 | /** 通知更新缓存区 */ | 265 | /** 通知更新缓存区 */ |
| 254 | - $.post('http://192.168.168.171:8800/transport_server/basic/refresh',function(rs){console.log(rs)}) | 266 | + // $.post('http://192.168.168.171:8800/transport_server/basic/refresh',function(rs){console.log(rs)}) |
| 255 | }else { | 267 | }else { |
| 256 | // 弹出添加失败提示消息 | 268 | // 弹出添加失败提示消息 |
| 257 | layer.msg('修改失败...'); | 269 | layer.msg('修改失败...'); |
src/main/resources/static/pages/base/stationroute/js/stationroute-list-function.js
| @@ -359,6 +359,8 @@ var PublicFunctions = function () { | @@ -359,6 +359,8 @@ var PublicFunctions = function () { | ||
| 359 | $('#stationRouteLineInput').val(editStationParmas.stationRouteLine); | 359 | $('#stationRouteLineInput').val(editStationParmas.stationRouteLine); |
| 360 | // 线路编码 | 360 | // 线路编码 |
| 361 | $('#lineCodeInput').val(editStationParmas.stationRouteLIneCode); | 361 | $('#lineCodeInput').val(editStationParmas.stationRouteLIneCode); |
| 362 | + // 行业标准 | ||
| 363 | + $('#industryCodeInput').val(editStationParmas.industryCode); | ||
| 362 | // 百度坐标点图形集合 | 364 | // 百度坐标点图形集合 |
| 363 | $('#bPolygonGridInput').val(editStationParmas.stationBPolygonGrid); | 365 | $('#bPolygonGridInput').val(editStationParmas.stationBPolygonGrid); |
| 364 | // 获取站点名称元素设值 | 366 | // 获取站点名称元素设值 |
src/main/resources/static/pages/base/stationroute/js/stationroute-list-map.js
| @@ -225,7 +225,7 @@ window.WorldsBMap = function () { | @@ -225,7 +225,7 @@ window.WorldsBMap = function () { | ||
| 225 | // 信息窗口宽度 | 225 | // 信息窗口宽度 |
| 226 | width: (width < 240 ? 240 : width), | 226 | width: (width < 240 ? 240 : width), |
| 227 | // 信息窗口高度 | 227 | // 信息窗口高度 |
| 228 | - height: shapes=="r" ?330:300, | 228 | + // height: shapes=="r" ?380:350, |
| 229 | // 信息窗位置偏移值。 | 229 | // 信息窗位置偏移值。 |
| 230 | offset: new BMap.Size(10,-20), | 230 | offset: new BMap.Size(10,-20), |
| 231 | //设置不允许信窗发送短息 | 231 | //设置不允许信窗发送短息 |
| @@ -246,6 +246,7 @@ window.WorldsBMap = function () { | @@ -246,6 +246,7 @@ window.WorldsBMap = function () { | ||
| 246 | } | 246 | } |
| 247 | var htm = '<span style="color: #ff8355;font-size: 20px; overflow: hidden; white-space: nowrap; text-overflow:ellipsis;display: -webkit-box; -webkit-box-orient: vertical;">' + objStation.stationRouteName + '</span>' + | 247 | var htm = '<span style="color: #ff8355;font-size: 20px; overflow: hidden; white-space: nowrap; text-overflow:ellipsis;display: -webkit-box; -webkit-box-orient: vertical;">' + objStation.stationRouteName + '</span>' + |
| 248 | '<span class="help-block" >站点编码:' + objStation.stationCode + '</span>' + | 248 | '<span class="help-block" >站点编码:' + objStation.stationCode + '</span>' + |
| 249 | + '<span class="help-block" >行业编号:' + (objStation.industryCode == null ? "":objStation.industryCode)+ '</span>' + | ||
| 249 | '<span class="help-block" >站点序号:' + objStation.stationRouteCode + '</span>' + | 250 | '<span class="help-block" >站点序号:' + objStation.stationRouteCode + '</span>' + |
| 250 | '<span class="help-block" >站点类型:' + markTypeStr + '</span>' + | 251 | '<span class="help-block" >站点类型:' + markTypeStr + '</span>' + |
| 251 | '<span class="help-block" >经度:  ' + BJwpoints[0] + '</span>' + | 252 | '<span class="help-block" >经度:  ' + BJwpoints[0] + '</span>' + |
src/main/resources/static/pages/forms/mould/calcIntervalCount.xls
No preview for this file type
src/main/resources/static/pages/forms/mould/calcIntervalList1.xls
No preview for this file type
src/main/resources/static/pages/forms/mould/calcIntervalSum.xls
0 → 100644
No preview for this file type
src/main/resources/static/pages/report/sheet/intervalCount.html
| @@ -434,7 +434,7 @@ | @@ -434,7 +434,7 @@ | ||
| 434 | // +dateTime+"-"+lineName+"-发车到站准点率"); | 434 | // +dateTime+"-"+lineName+"-发车到站准点率"); |
| 435 | // }else{ | 435 | // }else{ |
| 436 | window.open("/downloadFile/download?fileName=" | 436 | window.open("/downloadFile/download?fileName=" |
| 437 | - +dateTime+"-"+lineName+"-大间情况表"); | 437 | + +dateTime+"-"+lineName+"-大间隔情况表"); |
| 438 | // } | 438 | // } |
| 439 | 439 | ||
| 440 | layer.close(i); | 440 | layer.close(i); |
src/main/resources/static/pages/report/sheet/intervalSum.html
| @@ -18,7 +18,7 @@ | @@ -18,7 +18,7 @@ | ||
| 18 | 18 | ||
| 19 | <div class="page-head"> | 19 | <div class="page-head"> |
| 20 | <div class="page-title"> | 20 | <div class="page-title"> |
| 21 | - <h1>大间隔统计表</h1> | 21 | + <h1>大间隔发生次数汇总</h1> |
| 22 | </div> | 22 | </div> |
| 23 | </div> | 23 | </div> |
| 24 | 24 | ||
| @@ -27,7 +27,7 @@ | @@ -27,7 +27,7 @@ | ||
| 27 | <div class="portlet light porttlet-fit bordered"> | 27 | <div class="portlet light porttlet-fit bordered"> |
| 28 | <div class="portlet-title"> | 28 | <div class="portlet-title"> |
| 29 | <form class="form-inline" action=""> | 29 | <form class="form-inline" action=""> |
| 30 | - <div style="display: inline-block; margin-left: 33px;" id="gsdmDiv"> | 30 | + <div style="display: inline-block; margin-left: 42px;" id="gsdmDiv"> |
| 31 | <span class="item-label" style="width: 80px;">公司: </span> | 31 | <span class="item-label" style="width: 80px;">公司: </span> |
| 32 | <select class="form-control" name="company" id="gsdm" style="width: 180px;"></select> | 32 | <select class="form-control" name="company" id="gsdm" style="width: 180px;"></select> |
| 33 | </div> | 33 | </div> |
| @@ -35,16 +35,16 @@ | @@ -35,16 +35,16 @@ | ||
| 35 | <span class="item-label" style="width: 80px;">分公司: </span> | 35 | <span class="item-label" style="width: 80px;">分公司: </span> |
| 36 | <select class="form-control" name="subCompany" id="fgsdm" style="width: 180px;"></select> | 36 | <select class="form-control" name="subCompany" id="fgsdm" style="width: 180px;"></select> |
| 37 | </div> | 37 | </div> |
| 38 | -<!-- <div style="display: inline-block;margin-left: 18px;"> --> | ||
| 39 | -<!-- <span class="item-label" style="width: 80px;">线路性质: </span> --> | ||
| 40 | -<!-- <select --> | ||
| 41 | -<!-- class="form-control" name="nature" id="nature" --> | ||
| 42 | -<!-- style="width: 180px;"> --> | ||
| 43 | -<!-- <option value="0">全部线路</option> --> | ||
| 44 | -<!-- <option value="1" selected="selected">营运线路</option> --> | ||
| 45 | -<!-- <option value="2">非营运线路</option> --> | ||
| 46 | -<!-- </select> --> | ||
| 47 | -<!-- </div> --> | 38 | + <div style="display: inline-block;margin-left: 18px;"> |
| 39 | + <span class="item-label" style="width: 80px;">线路性质: </span> | ||
| 40 | + <select | ||
| 41 | + class="form-control" name="nature" id="nature" | ||
| 42 | + style="width: 180px;"> | ||
| 43 | + <option value="0" selected="selected">全部线路</option> | ||
| 44 | + <option value="1">营运线路</option> | ||
| 45 | + <option value="2">非营运线路</option> | ||
| 46 | + </select> | ||
| 47 | + </div> | ||
| 48 | <div style="margin-top: 10px"> | 48 | <div style="margin-top: 10px"> |
| 49 | </div> | 49 | </div> |
| 50 | <div style="display: inline-block;"> | 50 | <div style="display: inline-block;"> |
| @@ -56,10 +56,10 @@ | @@ -56,10 +56,10 @@ | ||
| 56 | <input class="form-control" type="text" id="endDate" style="width: 180px;"/> | 56 | <input class="form-control" type="text" id="endDate" style="width: 180px;"/> |
| 57 | </div> | 57 | </div> |
| 58 | 58 | ||
| 59 | - <div class="form-group"> | 59 | + <div class="form-group" style="margin-left: 8px;"> |
| 60 | <input type="hidden" id="id"/> | 60 | <input type="hidden" id="id"/> |
| 61 | <input class="btn btn-default" type="button" id="query" value="查询"/> | 61 | <input class="btn btn-default" type="button" id="query" value="查询"/> |
| 62 | -<!-- <input class="btn btn-default" type="button" id="export" value="导出"/> --> | 62 | + <input class="btn btn-default" type="button" id="export" value="导出"/> |
| 63 | </div> | 63 | </div> |
| 64 | </form> | 64 | </form> |
| 65 | </div> | 65 | </div> |
| @@ -72,8 +72,8 @@ | @@ -72,8 +72,8 @@ | ||
| 72 | <td>公司</td> | 72 | <td>公司</td> |
| 73 | <td>分公司</td> | 73 | <td>分公司</td> |
| 74 | <td>线路等级</td> | 74 | <td>线路等级</td> |
| 75 | - <td>发生次数</td> | ||
| 76 | - <td>班次数</td> | 75 | + <td>大间隔发生次数</td> |
| 76 | + <td>全日班次数</td> | ||
| 77 | <td>万班次发生率</td> | 77 | <td>万班次发生率</td> |
| 78 | </tr> | 78 | </tr> |
| 79 | </thead> | 79 | </thead> |
| @@ -166,9 +166,9 @@ | @@ -166,9 +166,9 @@ | ||
| 166 | var endDate = $("#endDate").val(); | 166 | var endDate = $("#endDate").val(); |
| 167 | var fgs=$('#fgsdm').val(); | 167 | var fgs=$('#fgsdm').val(); |
| 168 | var gs=$('#gsdm').val(); | 168 | var gs=$('#gsdm').val(); |
| 169 | -// var nature=$("#nature").val(); | 169 | + var nature=$("#nature").val(); |
| 170 | var i = layer.load(2); | 170 | var i = layer.load(2); |
| 171 | - $get('/calcInterval/sumInterval',{date:date,endDate:endDate,gs:gs,fgs:fgs,type:'query'},function(result){ | 171 | + $get('/calcInterval/sumInterval',{date:date,endDate:endDate,gs:gs,fgs:fgs,nature:nature,type:'query'},function(result){ |
| 172 | var intervalList_sum = template('intervalList_sum',{list:result}); | 172 | var intervalList_sum = template('intervalList_sum',{list:result}); |
| 173 | $('#forms_djg_sum tbody').html(intervalList_sum); | 173 | $('#forms_djg_sum tbody').html(intervalList_sum); |
| 174 | 174 | ||
| @@ -185,13 +185,13 @@ | @@ -185,13 +185,13 @@ | ||
| 185 | var endDate = $("#endDate").val(); | 185 | var endDate = $("#endDate").val(); |
| 186 | var fgs=$('#fgsdm').val(); | 186 | var fgs=$('#fgsdm').val(); |
| 187 | var gs=$('#gsdm').val(); | 187 | var gs=$('#gsdm').val(); |
| 188 | -// var nature=$('#nature').val(); | 188 | + var nature=$('#nature').val(); |
| 189 | var lineName = $('#fgsdm option:selected').text(); | 189 | var lineName = $('#fgsdm option:selected').text(); |
| 190 | if(lineName=="全部分公司") | 190 | if(lineName=="全部分公司") |
| 191 | lineName = $('#gsdm option:selected').text(); | 191 | lineName = $('#gsdm option:selected').text(); |
| 192 | 192 | ||
| 193 | var i = layer.load(2); | 193 | var i = layer.load(2); |
| 194 | - $get('/calcInterval/countList',{date:date,endDate:endDate,gs:gs,fgs:fgs,nature:nature,type:"export",lineName:lineName},function(result){ | 194 | + $get('/calcInterval/sumInterval',{date:date,endDate:endDate,gs:gs,fgs:fgs,nature:nature,type:"export",lineName:lineName},function(result){ |
| 195 | var dateTime = ""; | 195 | var dateTime = ""; |
| 196 | if(date == endDate){ | 196 | if(date == endDate){ |
| 197 | dateTime = moment(date).format("YYYYMMDD"); | 197 | dateTime = moment(date).format("YYYYMMDD"); |
| @@ -200,7 +200,7 @@ | @@ -200,7 +200,7 @@ | ||
| 200 | moment(endDate).format("YYYYMMDD"); | 200 | moment(endDate).format("YYYYMMDD"); |
| 201 | } | 201 | } |
| 202 | window.open("/downloadFile/download?fileName=" | 202 | window.open("/downloadFile/download?fileName=" |
| 203 | - +dateTime+"-"+lineName+"-大间统计表"); | 203 | + +dateTime+"-"+lineName+"-大间隔发生次数汇总"); |
| 204 | 204 | ||
| 205 | layer.close(i); | 205 | layer.close(i); |
| 206 | }); | 206 | }); |