| | |
| | | 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.util.ActionUtil; |
| | | import io.swagger.annotations.Api; |
| | |
| | | private BatttestdataInfService battTinfService; |
| | | |
| | | @Autowired |
| | | private PowerInfService powerInfService; |
| | | |
| | | @Autowired |
| | | private DeviceStateService deviceStateService; |
| | | |
| | | @ApiOperation(value = "电源信息统计") |
| | | @PostMapping("getPowerStatistic") |
| | | public Response getPowerStatistic(@RequestBody StationStic stic){ |
| | | User uinf= ActionUtil.getUser(); |
| | | stic.setUid(uinf.getId()); |
| | | return powerInfService.getPowerStatistic(stic); |
| | | } |
| | | |
| | | @ApiOperation(value = "站点信息统计") |
| | | @PostMapping("getStationStatistic") |
| | | public Response getStationStatistic(@RequestBody StationStic stic){ |