| | |
| | | import com.whyc.util.HttpUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiModelProperty; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.web.bind.annotation.*; |
| | |
| | | return service.getStationPic(stationId); |
| | | } |
| | | |
| | | @GetMapping("getDeviceId") |
| | | @ApiOperation(value = "获取最大的设备id", notes = "旧:BattInfAction!getDeviceId") |
| | | public Response getDeviceId(@RequestParam Integer devId) { |
| | | return new Response().set(1, service.searchMaxDevId(devId)); |
| | | } |
| | | |
| | | @PutMapping("monCapWH") |
| | | @ApiModelProperty(value = "标称容量KWH修改", notes = "传入battGroupId和nomCapWH") |
| | | public Response updateMonCapWH(@RequestBody Battinf inf) { |
| | | return service.updateMonCapWH(inf); |
| | | } |
| | | |
| | | @ApiOperation(value = "查询标称电压类别") |
| | | @GetMapping("searchMonVol") |
| | | public Response searchMonVol() { |
| | | return service.searchMonVol(); |
| | | } |
| | | |
| | | @GetMapping("searchBattGroupIdByDevId") |
| | | @ApiOperation(value = "根据设备id查询电池组id(取第一个)") |
| | | public Response searchBattGroupIdByDevId(@RequestParam int devId) { |
| | | return service.searchBattGroupIdByDevId(devId); |
| | | } |
| | | } |