Commit 395fa3e8b2a59519b29b963ef773c342db449a5a
1 parent
b50d4e36
1.加入电科所用的4个接口,以及接口对应的数据生成
Showing
1 changed file
with
2 additions
and
0 deletions
src/main/java/com/bsth/server_rs/dks/DksRestService.java
| ... | ... | @@ -154,11 +154,13 @@ public class DksRestService { |
| 154 | 154 | for (int i = 0, len = configs.size();i < len;i++) { |
| 155 | 155 | LineServiceConfig config = configs.get(i); |
| 156 | 156 | if (i == 0) { |
| 157 | + oldLineCode = config.getLineCode(); | |
| 157 | 158 | vo = new BusVo(); |
| 158 | 159 | vo.setLineName(config.getLineName()); |
| 159 | 160 | vo.setMonth(month); |
| 160 | 161 | vo.setBusFirstCount(config.getCarCount()); |
| 161 | 162 | } else if (!oldLineCode.equals(config.getLineCode())) { |
| 163 | + oldLineCode = config.getLineCode(); | |
| 162 | 164 | vo.setBusMaxCount(max); |
| 163 | 165 | result.add(vo); |
| 164 | 166 | max = 0; | ... | ... |