| | |
| | | @RestController |
| | | @Api(tags = "站点管理") |
| | | @RequestMapping("StationInf") |
| | | public class StationInfController { |
| | | public class StationInfController extends BaseController{ |
| | | @Autowired |
| | | private StationInfService service; |
| | | |
| | |
| | | public Response searchStationAll(@RequestParam int pageCurr, @RequestParam int pageSize |
| | | , @RequestParam(required = false) String stationName1 |
| | | , @RequestParam(required = false) String stationName2 |
| | | , @RequestParam(required = false) String stationName5) { |
| | | return service.searchStationAll(pageCurr, pageSize, stationName1, stationName2, stationName5); |
| | | , @RequestParam(required = false) String stationName5 |
| | | , @RequestParam(required = false) String nodeStation |
| | | , @RequestParam(required = false) String stationType) { |
| | | return service.searchStationAll(pageCurr, pageSize, stationName1, stationName2, stationName5, nodeStation, stationType); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询所有的机房信息(南京机房配置)") |
| | | @GetMapping("searchNjStationAll") |
| | | public Response searchNjStationAll() { |
| | | return service.searchNjStationAll(); |
| | | } |
| | | |
| | | @ApiOperation(value = "根据stationId和togetherFlag查询另外相同的机房") |
| | | @GetMapping("getTogetherFlagStationInf") |
| | | public Response getTogetherFlagStationInf(@RequestParam String stationId, @RequestParam int togetherFlag) { |
| | | return service.getTogetherFlagStationInf(stationId, togetherFlag); |
| | | } |
| | | |
| | | @ApiOperation(value = "添加站点") |
| | |
| | | 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 int togetherFlag, @RequestParam String stationId) { |
| | | return service.updateStation(nodeStation, stationType, stationLongitude, stationLatitude, stationAddr, togetherFlag, 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(required = false) String stationIdTogether, @RequestParam String stationId) { |
| | | return service.updateName(stationName, stationName1, stationName2, stationName3, stationName4, stationName5, stationIdTogether, 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("searchAllStationName") |
| | | @ApiOperation("查询站点名") |
| | | public Response searchAllStationName(@RequestParam(required = false) String stationName1,@RequestParam(required = false) String stationName2,@RequestParam(required = false) String stationName5){ |
| | | UserInf userInf = (UserInf) ActionUtil.getUser(); |
| | | return service.searchAllStationName(userInf.getUId().intValue(), stationName1, stationName2, stationName5); |
| | | } |
| | | |
| | | @GetMapping("getInfInStation") |
| | | @ApiOperation("获取站点下所有设备信息") |
| | | public Response getInfInStation(@RequestParam String stationId){ |
| | | return service.getInfInStation(stationId); |
| | | } |
| | | |
| | | @GetMapping("/searchAllStationName1") |
| | |
| | | public Response searCapChange() { |
| | | return service.searCapChange(); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询所有的站点电压等级") |
| | | @GetMapping("searStationType") |
| | | public Response searStationType() { |
| | | return service.searStationType(); |
| | | } |
| | | |
| | | @GetMapping("getTogetherStations") |
| | | @ApiOperation(value = "添加关联时下拉显示") |
| | | public Response getTogetherStations(@RequestParam(required = false) String stationName1, @RequestParam(required = false) String stationName2, @RequestParam(required = false) String stationName5) { |
| | | return service.getTogetherStations(stationName1, stationName2, stationName5); |
| | | } |
| | | } |