| | |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | | import java.util.List; |
| | | |
| | | @RestController |
| | | @Api(tags = "站点管理") |
| | | @RequestMapping("StationInf") |
| | |
| | | return service.insertStation(stationInf); |
| | | } |
| | | |
| | | @ApiOperation(value = "编辑站点") |
| | | @GetMapping("updateStation") |
| | | public Response updateStation(@RequestParam(required = false) String nodeStation, @RequestParam(required = false) String stationType |
| | | , @RequestParam(required = false) String stationLongitude, @RequestParam(required = false) String stationLatitude |
| | | , @RequestParam(required = false) String stationAddr, @RequestParam String stationId) { |
| | | return service.updateStation(nodeStation, stationType, stationLongitude, stationLatitude, stationAddr, stationId); |
| | | } |
| | | |
| | | @ApiOperation(value = "编辑机房名") |
| | | @GetMapping("updateName") |
| | | public Response updateName(@RequestParam(required = false) String stationName, @RequestParam(required = false) String stationName1 |
| | | , @RequestParam(required = false) String stationName2, @RequestParam(required = false) String stationName3 |
| | | , @RequestParam(required = false) String stationName4, @RequestParam(required = false) String stationName5 |
| | | , @RequestParam String stationId) { |
| | | return service.updateName(stationName, stationName1, stationName2, stationName3, stationName4, stationName5, stationId); |
| | | } |
| | | |
| | | @ApiOperation(value = "删除总站点") |
| | | @GetMapping("deleteStation") |
| | | public Response deleteStation(@RequestParam int num) { |
| | | return service.deleteStation(num); |
| | | public Response deleteStation(@RequestParam String stationId) { |
| | | return service.deleteStation(stationId); |
| | | } |
| | | |
| | | @GetMapping("/searchAllStationName1") |
| | |
| | | return service.searchAllStationName5(userInf.getUId().intValue(), stationName1, stationName2); |
| | | } |
| | | |
| | | @ApiOperation(value = "穿梭框查询所有的站点") |
| | | @GetMapping("searchShuttle") |
| | | public Response searchShuttle() { |
| | | return service.searchShuttle(); |
| | | } |
| | | |
| | | @ApiOperation(value = "穿梭框移除或者添加站点") |
| | | @PostMapping("updateShuttle") |
| | | public Response updateShuttle(@RequestBody List<StationInf> stationInfs) { |
| | | return service.updateShuttle(stationInfs); |
| | | } |
| | | |
| | | @ApiOperation(value = "首页上点击整流器故障") |
| | | @GetMapping("searchAcdcModError") |
| | | public Response searchAcdcModError() { |
| | | return service.searchAcdcModError(); |
| | | } |
| | | |
| | | @ApiOperation(value = "首页上点击负载熔断") |
| | | @GetMapping("searchFuse") |
| | | public Response searchFuse() { |
| | | return service.searchFuse(); |
| | | } |
| | | |
| | | @ApiOperation(value = "首页上点击停电站") |
| | | @GetMapping("searchPowerOff") |
| | | public Response searchPowerOff() { |
| | | return service.searchPowerOff(); |
| | | } |
| | | |
| | | @ApiOperation(value = "首页上点击核容放电站") |
| | | @GetMapping("searchCheckCapDischarge") |
| | | public Response searchCheckCapDischarge() { |
| | | return service.searchCheckCapDischarge(); |
| | | } |
| | | |
| | | @ApiOperation(value = "首页上点击容量不足站") |
| | | @GetMapping("searchCapAlarm") |
| | | public Response searchCapAlarm() { |
| | | return service.searchCapAlarm(); |
| | | } |
| | | |
| | | @ApiOperation(value = "首页上点击电池损坏站") |
| | | @GetMapping("searCapChange") |
| | | public Response searCapChange() { |
| | | return service.searCapChange(); |
| | | } |
| | | } |