Commit e00948a128cb422575171cabb7cb7779be83c9e2
1 parent
e0987dc0
1.电科所司售配档、车辆配档加入线路代码
Showing
1 changed file
with
12 additions
and
0 deletions
src/main/java/com/bsth/server_rs/dks/DksRestService.java
| ... | ... | @@ -161,6 +161,7 @@ public class DksRestService { |
| 161 | 161 | if (i == 0) { |
| 162 | 162 | oldLineCode = config.getLineCode(); |
| 163 | 163 | vo = new BusVo(); |
| 164 | + vo.setLineCode(config.getLineCode()); | |
| 164 | 165 | vo.setLineName(config.getLineName()); |
| 165 | 166 | vo.setMonth(month); |
| 166 | 167 | vo.setBusFirstCount(config.getCarCount()); |
| ... | ... | @@ -170,6 +171,7 @@ public class DksRestService { |
| 170 | 171 | result.add(vo); |
| 171 | 172 | max = 0; |
| 172 | 173 | vo = new BusVo(); |
| 174 | + vo.setLineCode(config.getLineCode()); | |
| 173 | 175 | vo.setLineName(config.getLineName()); |
| 174 | 176 | vo.setMonth(month); |
| 175 | 177 | vo.setBusFirstCount(config.getCarCount()); |
| ... | ... | @@ -676,6 +678,8 @@ public class DksRestService { |
| 676 | 678 | */ |
| 677 | 679 | private final static class BusVo { |
| 678 | 680 | |
| 681 | + private String lineCode; | |
| 682 | + | |
| 679 | 683 | private String lineName; |
| 680 | 684 | |
| 681 | 685 | private String month; |
| ... | ... | @@ -686,6 +690,14 @@ public class DksRestService { |
| 686 | 690 | |
| 687 | 691 | private Integer busMaxCount; |
| 688 | 692 | |
| 693 | + public String getLineCode() { | |
| 694 | + return lineCode; | |
| 695 | + } | |
| 696 | + | |
| 697 | + public void setLineCode(String lineCode) { | |
| 698 | + this.lineCode = lineCode; | |
| 699 | + } | |
| 700 | + | |
| 689 | 701 | public String getLineName() { |
| 690 | 702 | return lineName; |
| 691 | 703 | } | ... | ... |