Commit dfddf45195c4b184831efb4943923923f75e2132
1 parent
06fc723b
接口
Showing
1 changed file
with
16 additions
and
2 deletions
src/main/java/com/bsth/controller/StationController.java
| @@ -148,14 +148,28 @@ public class StationController extends BaseController<Station, Integer> { | @@ -148,14 +148,28 @@ public class StationController extends BaseController<Station, Integer> { | ||
| 148 | return service.stationCacheUpdate(map); | 148 | return service.stationCacheUpdate(map); |
| 149 | } | 149 | } |
| 150 | /** | 150 | /** |
| 151 | + * @Description :TODO(更新内部编码) | ||
| 152 | + * @param stationCount,sectionCount 更新数 | ||
| 153 | + */ | ||
| 154 | + @RequestMapping(value="updateStationAndSectionCode" , method = RequestMethod.GET) | ||
| 155 | + public int updateStationAndSectionCode(@RequestParam Integer stationCount, Integer sectionCount) { | ||
| 156 | + for(int i = 0; i < stationCount; i++) { | ||
| 157 | + GetUIDAndCode.getStationId(); | ||
| 158 | + } | ||
| 159 | + for(int i = 0; i < sectionCount; i++) { | ||
| 160 | + GetUIDAndCode.getSectionId(); | ||
| 161 | + } | ||
| 162 | + return 1; | ||
| 163 | + } | ||
| 164 | + /** | ||
| 151 | * @Description :TODO(查询站点编码) | 165 | * @Description :TODO(查询站点编码) |
| 152 | - * | 166 | + * |
| 153 | * @return int <stationCode站点编码> | 167 | * @return int <stationCode站点编码> |
| 154 | */ | 168 | */ |
| 155 | @RequestMapping(value="getStationCode" , method = RequestMethod.GET) | 169 | @RequestMapping(value="getStationCode" , method = RequestMethod.GET) |
| 156 | public long getStationCode() { | 170 | public long getStationCode() { |
| 157 | return GetUIDAndCode.getStationId(); | 171 | return GetUIDAndCode.getStationId(); |
| 158 | - | 172 | + |
| 159 | } | 173 | } |
| 160 | /** | 174 | /** |
| 161 | * @Description :TODO(查询站点编码) | 175 | * @Description :TODO(查询站点编码) |