Commit a9e6df19e765628d56af6eb2c805edbaef9a006c
1 parent
59d1b784
上传运管处线路站点信息,环线只上传上行站点,不上传下行站点
Showing
1 changed file
with
10 additions
and
4 deletions
src/main/java/com/bsth/service/impl/TrafficManageServiceImpl.java
| @@ -173,16 +173,22 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | @@ -173,16 +173,22 @@ public class TrafficManageServiceImpl implements TrafficManageService{ | ||
| 173 | upStationsList = stationRouteRepository.findByLine(line.getLineCode(), 0); | 173 | upStationsList = stationRouteRepository.findByLine(line.getLineCode(), 0); |
| 174 | int startId = 1; | 174 | int startId = 1; |
| 175 | startId = packagStationXml(upStationsList, sBuffer, startId); | 175 | startId = packagStationXml(upStationsList, sBuffer, startId); |
| 176 | - // 再查下行 | ||
| 177 | - downStationsList = stationRouteRepository.findByLine(line.getLineCode(), 1); | ||
| 178 | - packagStationXml(downStationsList, sBuffer, startId); | 176 | + // 环线不查下行 |
| 177 | + if(line.getLinePlayType() != 1){ | ||
| 178 | + // 再查下行 | ||
| 179 | + downStationsList = stationRouteRepository.findByLine(line.getLineCode(), 1); | ||
| 180 | + packagStationXml(downStationsList, sBuffer, startId); | ||
| 181 | + } | ||
| 179 | sBuffer.append("</LineStationList>"); | 182 | sBuffer.append("</LineStationList>"); |
| 180 | 183 | ||
| 181 | // 循环添加站点点位信息 | 184 | // 循环添加站点点位信息 |
| 182 | sBuffer.append("<LinePointList>"); | 185 | sBuffer.append("<LinePointList>"); |
| 183 | startId = 1; | 186 | startId = 1; |
| 184 | startId = packagStationPointXml(upStationsList, sBuffer, startId); | 187 | startId = packagStationPointXml(upStationsList, sBuffer, startId); |
| 185 | - packagStationPointXml(downStationsList, sBuffer, startId); | 188 | + // 环线不查下行 |
| 189 | + if(line.getLinePlayType() != 1){ | ||
| 190 | + packagStationPointXml(downStationsList, sBuffer, startId); | ||
| 191 | + } | ||
| 186 | sBuffer.append("</LinePointList>"); | 192 | sBuffer.append("</LinePointList>"); |
| 187 | // } | 193 | // } |
| 188 | sBuffer.append("</DataList>"); | 194 | sBuffer.append("</DataList>"); |