Commit 395fa3e8b2a59519b29b963ef773c342db449a5a

Authored by 王通
1 parent b50d4e36

1.加入电科所用的4个接口,以及接口对应的数据生成

src/main/java/com/bsth/server_rs/dks/DksRestService.java
@@ -154,11 +154,13 @@ public class DksRestService { @@ -154,11 +154,13 @@ public class DksRestService {
154 for (int i = 0, len = configs.size();i < len;i++) { 154 for (int i = 0, len = configs.size();i < len;i++) {
155 LineServiceConfig config = configs.get(i); 155 LineServiceConfig config = configs.get(i);
156 if (i == 0) { 156 if (i == 0) {
  157 + oldLineCode = config.getLineCode();
157 vo = new BusVo(); 158 vo = new BusVo();
158 vo.setLineName(config.getLineName()); 159 vo.setLineName(config.getLineName());
159 vo.setMonth(month); 160 vo.setMonth(month);
160 vo.setBusFirstCount(config.getCarCount()); 161 vo.setBusFirstCount(config.getCarCount());
161 } else if (!oldLineCode.equals(config.getLineCode())) { 162 } else if (!oldLineCode.equals(config.getLineCode())) {
  163 + oldLineCode = config.getLineCode();
162 vo.setBusMaxCount(max); 164 vo.setBusMaxCount(max);
163 result.add(vo); 165 result.add(vo);
164 max = 0; 166 max = 0;