| | |
| | | } |
| | | |
| | | //判断新增的电池组是否存在 |
| | | @GetMapping("judgeBatt") |
| | | @PostMapping("judgeBatt") |
| | | @ApiOperation(notes = "",value="判断新增的电池组是否存在") |
| | | public ServiceModel judgeBatt(@RequestBody BattInf binf){ |
| | | |
| | | public ServiceModel judgeBatt(@RequestParam String stationName) { |
| | | BattInf binf = new BattInf(); |
| | | binf.setStationName(stationName); |
| | | return service.judgeBatt(binf); |
| | | } |
| | | |
| | | @GetMapping("byBattGroupId2") |
| | | @PostMapping("byBattGroupId2") |
| | | @ApiOperation(notes = "",value="byBattGroupId2") |
| | | public ServiceModel findByBattGroupId(@RequestBody BattInf bif){ |
| | | ServiceModel model=service.findByBattGroupId(bif); |
| | | public ServiceModel findByBattGroupId(@RequestParam Integer battGroupId){ |
| | | BattInf binf = new BattInf(); |
| | | binf.setBattGroupId(battGroupId); |
| | | ServiceModel model=service.findByBattGroupId(binf); |
| | | return model; |
| | | } |
| | | |
| | | //根据电池组id查询不重复的单体编号 |
| | | @GetMapping("monNumByBattGroupId") |
| | | @PostMapping("monNumByBattGroupId") |
| | | @ApiOperation(notes = "",value="电池组id查询不重复的单体编号") |
| | | public ServiceModelOnce serchByMonNum(@RequestBody BattInf bif){ |
| | | public ServiceModelOnce serchByMonNum(@RequestParam Integer battGroupId) { |
| | | BattInf binf = new BattInf(); |
| | | binf.setBattGroupId(battGroupId); |
| | | |
| | | return service.serchByMonNum(bif); |
| | | return service.serchByMonNum(binf); |
| | | } |
| | | |
| | | //5.3添加选取电池组或者机房或者维护区(未被应用) |
| | | @Deprecated |
| | | public ServiceModel serchBatt(@RequestBody BattInf bif) { |
| | | // bif=ActionUtil.getGson("yyyy-MM-dd").fromJson(result,BattInf.class); |
| | | |
| | | return service.serchBatt(bif); |
| | | @PostMapping("serchBatt") |
| | | @ApiOperation(notes = "结果集:{ \"code\": 1, \"msg\": null, \"data\": [{ \"stationId\": \"42010007\", \"stationName\": \"山西省-太原市-迎泽区-局机房119-局机房站-1\", \"stationName1\": \"山西省\"\"battGroupId\": 1000003, \"battGroupName\": \"电池组1\", \"battGroupName\": \"电池组1\" }]}",value="添加选取电池组或者机房或者维护区(未被应用)") |
| | | public ServiceModel serchBatt(@ApiParam(value = "地址",required = true) @RequestParam String stationName,@ApiParam(value = "省",required = true) @RequestParam String stationName1,@RequestParam Integer battGroupId) { |
| | | BattInf binf = new BattInf(); |
| | | binf.setStationName(stationName); |
| | | binf.setStationName1(stationName1); |
| | | binf.setBattGroupId(battGroupId); |
| | | return service.serchBatt(binf); |
| | | } |
| | | |
| | | //6.4.7按地域和标称电压分组统计蓄电池组服役超期的数量 |