| | |
| | | import com.whyc.dto.Statistic.DeviceStateStic; |
| | | import com.whyc.dto.Statistic.StationStic; |
| | | import com.whyc.pojo.db_user.User; |
| | | import com.whyc.service.BatttestdataInfService; |
| | | import com.whyc.service.DeviceStateService; |
| | | import com.whyc.service.PowerInfService; |
| | | import com.whyc.service.StationInfService; |
| | | import com.whyc.service.*; |
| | | import com.whyc.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiOperation; |
| | |
| | | |
| | | @Autowired |
| | | private BatttestdataInfService battTinfService; |
| | | @Autowired |
| | | private BattInfService battService; |
| | | |
| | | @Autowired |
| | | private PowerInfService powerInfService; |
| | |
| | | return powerInfService.getPowerStatistic(stic); |
| | | } |
| | | |
| | | @ApiOperation(value = "设备信息统计") |
| | | @PostMapping("getDevStatistic") |
| | | public Response getDevStatistic(@RequestBody StationStic stic){ |
| | | User uinf= ActionUtil.getUser(); |
| | | stic.setUid(uinf.getId()); |
| | | return battService.getDevStatistic(stic); |
| | | } |
| | | |
| | | @ApiOperation(value = "蓄电池组信息统计") |
| | | @PostMapping("getBattStatistic") |
| | | public Response getBattStatistic(@RequestBody StationStic stic){ |
| | | User uinf= ActionUtil.getUser(); |
| | | stic.setUid(uinf.getId()); |
| | | return battService.getBattStatistic(stic); |
| | | } |
| | | |
| | | |
| | | |
| | | @ApiOperation(value = "站点信息统计") |
| | | @PostMapping("getStationStatistic") |
| | | public Response getStationStatistic(@RequestBody StationStic stic){ |