| | |
| | | import com.fgkj.services.BattMap_informationService; |
| | | import com.fgkj.services.User_logService; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | | |
| | |
| | | |
| | | @RequestMapping("battMapInformation") |
| | | @RestController |
| | | @Api |
| | | @Api(tags = "battMapInformation接口") |
| | | public class BattMap_informationController{ |
| | | |
| | | @Resource |
| | |
| | | |
| | | //9.1录入机房信息 |
| | | @PostMapping("/") |
| | | @ApiOperation(notes = "",value="录入机房信息") |
| | | public ServiceModel add(@RequestBody BattMap_information binfo){ |
| | | // BattMap_information binfo = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.add(binfo); |
| | |
| | | } |
| | | //9.1录入机房信息 |
| | | @PostMapping("dev") |
| | | @ApiOperation(notes = "",value="录入机房信息") |
| | | public ServiceModel addDev(@RequestBody BattMap_information binfo){ |
| | | // BattMap_information binfo = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.addDev(binfo); |
| | |
| | | return model; |
| | | } |
| | | @PutMapping("/") |
| | | @ApiOperation(notes = "",value="修改") |
| | | public ServiceModel update(@RequestBody BattMap_information binfo){ |
| | | // BattMap_information binfo = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.update(binfo); |
| | |
| | | } |
| | | //删除机房的位置信息 |
| | | @DeleteMapping("/") |
| | | @ApiOperation(notes = "",value="删除机房的位置信息") |
| | | public ServiceModel del(@RequestBody BattMap_information binfo){ |
| | | // BattMap_information binfo = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.del(binfo); |
| | |
| | | |
| | | //9.1百度地图定位查询电池组信息 |
| | | @GetMapping("all") |
| | | @ApiOperation(notes = "",value="百度地图定位查询电池组信息") |
| | | public List searchAll(){ |
| | | List list = service.searchAll(); |
| | | return list; |
| | | } |
| | | //9.1地图上根据维护区查询机房经纬度 |
| | | @GetMapping("byInfo") |
| | | @ApiOperation(notes = "",value="地图上根据维护区查询机房经纬度") |
| | | public ServiceModel serchByInfo(@RequestBody BattMap_information binfo){ |
| | | // BattMap_information binfo = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.serchByInfo(binfo); |
| | |
| | | |
| | | //9.1百度地图定位根据省份查询所有该区域的机房 |
| | | @GetMapping("byCondition") |
| | | @ApiOperation(notes = "",value="百度地图定位根据省份查询所有该区域的机房") |
| | | public List serchByCondition(@RequestBody BattMap_information binfo){ |
| | | // BattMap_information binfo = getGson().fromJson(json, BattMap_information.class); |
| | | List list = service.serchByCondition(binfo); |
| | |
| | | |
| | | //9.1机房详情显示机房具体落后和告警的信息(机房信息内容画图) |
| | | @GetMapping("monNum") |
| | | @ApiOperation(notes = "",value="机房详情显示机房具体落后和告警的信息(机房信息内容画图)") |
| | | public List serchMonNum(@RequestBody BattMap_information binfo){ |
| | | // BattMap_information binfo = getGson().fromJson(json, BattMap_information.class); |
| | | List list = service.serchMonNum(binfo); |
| | |
| | | |
| | | //9.1查询未添加物理信息的机房 |
| | | @GetMapping("notInBattMap") |
| | | @ApiOperation(notes = "",value="查询未添加物理信息的机房") |
| | | public ServiceModel serchNotInBattMap(){ |
| | | ServiceModel model = service.serchNotInBattMap(); |
| | | |
| | |
| | | } |
| | | //9.1查询未添加物理信息的机房(用户管理的) |
| | | @GetMapping("notInBattMapByUid") |
| | | @ApiOperation(notes = "",value="查询未添加物理信息的机房(用户管理的)") |
| | | public ServiceModel serchNotInBattMapByUid() { |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.serchNotInBattMapByUid(uinf); |
| | |
| | | } |
| | | //9.1查询已经添加物理信息的机房(用户管理的) |
| | | @GetMapping("inBattMapByUid") |
| | | @ApiOperation(notes = "",value="查询已经添加物理信息的机房(用户管理的)") |
| | | public ServiceModel serchInBattMapByUid() { |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | ServiceModel model = service.serchInBattMapByUid(uinf); |
| | |
| | | } |
| | | //9.1首页上查询已经添加物理信息的机房(用户管理的) 包括(告警总数落后总数延迟总数) |
| | | @GetMapping("userManageStation") |
| | | @ApiOperation(notes = "",value="首页上查询已经添加物理信息的机房(用户管理的) 包括(告警总数落后总数延迟总数)") |
| | | public List searchUserManageStation() { |
| | | User_inf uinf=(User_inf) ActionUtil.getUser(); |
| | | List list = service.searchUserManageStation(uinf); |
| | |
| | | |
| | | //9.1电池寿命管理 |
| | | @GetMapping("byStationId") |
| | | @ApiOperation(notes = "",value="电池寿命管理") |
| | | public ServiceModel serchByStationid(@RequestBody BattMap_information bmap){ |
| | | // BattMap_information bmap = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.serchByStationid(bmap); |
| | |
| | | |
| | | //9.1查询机房所在的所有省份 |
| | | @GetMapping("stationName1") |
| | | @ApiOperation(notes = "",value="查询机房所在的所有省份") |
| | | public ServiceModel serchStationName1(){ |
| | | ServiceModel model = service.serchStationName1(); |
| | | |
| | |
| | | |
| | | //9.1根据省份查询机房所在的所有城市 |
| | | @GetMapping("stationName2") |
| | | @ApiOperation(notes = "",value="根据省份查询机房所在的所有城市") |
| | | public ServiceModel serchStationName2(@RequestBody BattMap_information bmap){ |
| | | // BattMap_information bmap = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.serchStationName2(bmap); |
| | |
| | | } |
| | | //根据省/市/区县查询所有的站点 |
| | | @GetMapping("stationName3") |
| | | @ApiOperation(notes = "",value="根据省/市/区县查询所有的站点") |
| | | public ServiceModel serchStationName3(@RequestBody BattInf binf){ |
| | | // BattInf binf = getGson().fromJson(json, BattInf.class); |
| | | ServiceModel model = service.serchStationName3(binf); |
| | |
| | | } |
| | | //9.1根据省份和城市查询机房所在的所有机房 |
| | | @GetMapping("stationName") |
| | | @ApiOperation(notes = "",value="根据省份和城市查询机房所在的所有机房") |
| | | public ServiceModel serchStationName(@RequestBody BattMap_information bmap){ |
| | | // BattMap_information bmap = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.serchStationName(bmap); |
| | |
| | | } |
| | | //查询站点的经纬度 |
| | | @GetMapping("addressByStationName3") |
| | | @ApiOperation(notes = "",value="查询站点的经纬度") |
| | | public ServiceModel serchAddressByStationName3(@RequestBody BattMap_information bmap){ |
| | | // BattMap_information bmap = getGson().fromJson(json, BattMap_information.class); |
| | | ServiceModel model = service.serchAddressByStationName3(bmap); |