| | |
| | | //删除机房的位置信息 |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除机房的位置信息") |
| | | public ServiceModel del(@RequestParam String stationName3,@RequestParam Double longitude,@RequestParam Double latitude){ |
| | | public ServiceModel del(@ApiParam(value = "站点",required = true) @RequestParam String stationName, |
| | | @ApiParam(value = "机房",required = true) @RequestParam String stationName3, |
| | | @ApiParam(value = "经度",required = true) @RequestParam Double longitude, |
| | | @ApiParam(value = "纬度",required = true) @RequestParam Double latitude){ |
| | | BattMap_information binfo = new BattMap_information(); |
| | | binfo.setStationName(stationName3); |
| | | binfo.setStationName3(stationName3); |
| | | binfo.setLongitude(longitude); |
| | | binfo.setLatitude(latitude); |
| | | ServiceModel model = service.del(binfo); |
| | | { |
| | | String msg="删除"+binfo.getStationName()+"的位置"; |
| | | String msg="删除"+stationName+"的位置"; |
| | | User_log ulog=UinfDaoFactory.CreateULog(UinfDaoFactory.Delete, msg); |
| | | uservice.add(ulog);//将用户的操作记录下来 |
| | | } |
| | |
| | | |
| | | //9.1百度地图定位根据省份查询所有该区域的机房 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="百度地图定位根据省份查询所有该区域的机房") |
| | | @ApiOperation(notes = "模糊查询",value="百度地图定位根据省份查询所有该区域的机房") |
| | | public List serchByCondition(@RequestParam String address) { |
| | | BattMap_information binfo = new BattMap_information(); |
| | | binfo.setStationId(address); |
| | | binfo.setAddress(address); |
| | | List list = service.serchByCondition(binfo); |
| | | return list; |
| | | } |
| | |
| | | } |
| | | //9.1首页上查询已经添加物理信息的机房(用户管理的) 包括(告警总数落后总数延迟总数) |
| | | @GetMapping("userManageStation") |
| | | @ApiOperation(notes = "",value="首页上查询已经添加物理信息的机房(用户管理的) 包括(告警总数落后总数延迟总数)") |
| | | @ApiOperation(notes = "code 告警总数;sum 落后总数;newsum 延时总数;msg 61850状态;msgN 设备id",value="首页上查询已经添加物理信息的机房(用户管理的) 包括(告警总数落后总数延迟总数)") |
| | | public List searchUserManageStation() { |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | List list = service.searchUserManageStation(uinf); |
| | |
| | | @ApiOperation(notes = "模糊查询",value="根据省份查询机房所在的所有城市") |
| | | public ServiceModel serchStationName2(@RequestParam String address) { |
| | | BattMap_information binfo = new BattMap_information(); |
| | | binfo.setStationId(address); |
| | | binfo.setAddress(address); |
| | | ServiceModel model = service.serchStationName2(binfo); |
| | | |
| | | return model; |
| | |
| | | @ApiOperation(notes = "模糊查询",value="根据省份和城市查询机房所在的所有机房") |
| | | public ServiceModel serchStationName(@RequestParam String address) { |
| | | BattMap_information binfo = new BattMap_information(); |
| | | binfo.setStationId(address); |
| | | binfo.setAddress(address); |
| | | ServiceModel model = service.serchStationName(binfo); |
| | | |
| | | return model; |