| | |
| | | package com.whyc.controller; |
| | | |
| | | import com.baomidou.mybatisplus.extension.api.R; |
| | | import com.whyc.dto.Response; |
| | | import com.whyc.pojo.BattMapInformation; |
| | | import com.whyc.pojo.UserInf; |
| | |
| | | |
| | | @RestController |
| | | @RequestMapping("battMapInformation") |
| | | @Api(tags = "首页-电池组地图信息") |
| | | public class BattMapInformationController { |
| | | @Api(tags = "数据管理-机房定位信息管理") |
| | | public class BattMapInformationController extends BaseController{ |
| | | |
| | | @Resource |
| | | private BattMapInformationService service; |
| | |
| | | return service.add(entity); |
| | | } |
| | | |
| | | @PostMapping("update") |
| | | @ApiOperation(value = "更新") |
| | | public Response update(@RequestBody BattMapInformation entity){ |
| | | return service.update(entity); |
| | | } |
| | | |
| | | @GetMapping("/searchUserManageStation") |
| | | @ApiOperation(value = "已设置过位置的站点",notes = "首页上查询用户管理的已经设置过位置的机房信息") |
| | | public Response searchUserManageStation(){ |
| | | UserInf userInf = ActionUtil.getUser(); |
| | | return service.searchUserManageStation(userInf.getUId().intValue()); |
| | | } |
| | | @GetMapping("/searchNotInBattMapByUid") |
| | | @ApiOperation(value = "查询未添加物理信息的机房(用户管理的)") |
| | | public Response searchNotInBattMapByUid(){ |
| | | UserInf userInf = ActionUtil.getUser(); |
| | | return service.searchNotInBattMapByUid(userInf.getUId().intValue()); |
| | | } |
| | | |
| | | @PostMapping("/del") |
| | |
| | | return service.delete(battMapInformation); |
| | | } |
| | | @GetMapping("/searchAddressByStationId") |
| | | @ApiOperation(value = "获取地址") |
| | | @ApiOperation(value = "获取地址",notes = "查询站点的经纬度") |
| | | public Response searchAddressByStationId(@RequestParam String stationId){ |
| | | return service.searchAddressByStationId(stationId); |
| | | } |
| | |
| | | |
| | | @GetMapping("/findStationState") |
| | | @ApiOperation(value = "统计核容/停电放电",notes = "统计核容/停电放电,设备告警,设备充电,在线浮充") |
| | | public Response findStationState(@RequestParam String stationId){ |
| | | return service.multiAmount(stationId); |
| | | public Response findStationState(){ |
| | | return service.findStationState(); |
| | | } |
| | | |
| | | } |