| | |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | | import org.springframework.web.bind.annotation.RestController; |
| | | |
| | | import java.util.Map; |
| | | |
| | | @RestController |
| | | @Api(tags = "统计管理") |
| | | @RequestMapping("statistic") |
| | |
| | | |
| | | @Autowired |
| | | private BatttestdataInfService battTinfService; |
| | | |
| | | @Autowired |
| | | private BattInfService battService; |
| | | |
| | |
| | | public Response getMonStatistic(@RequestBody MonStic stic){ |
| | | User uinf= ActionUtil.getUser(); |
| | | stic.setUid(uinf.getId()); |
| | | return battTinfService.getMonStatistic(stic); |
| | | Map<String,Object> map= battTinfService.getMonStatistic(stic); |
| | | return new Response().setII(1,true,map,"单节数量统计"); |
| | | } |
| | | |
| | | @ApiOperation(value = "本年度已放电数量统计(1.2.5)") |
| | | @PostMapping("getDischr5Statistic") |
| | | public Response getDischr5Statistic(@RequestBody DisChargeStic stic){ |
| | | User uinf= ActionUtil.getUser(); |
| | | stic.setUid(uinf.getId()); |
| | | return battTinfService.getDischr5Statistic(stic); |
| | | } |
| | | |
| | | @ApiOperation(value = "本年度未放电数量统计(1.2.6)") |
| | | @PostMapping("getDischr6Statistic") |
| | | public Response getDischr6Statistic(@RequestBody DisChargeStic stic){ |
| | | User uinf= ActionUtil.getUser(); |
| | | stic.setUid(uinf.getId()); |
| | | return battTinfService.getDischr6Statistic(stic); |
| | | } |
| | | |
| | | @ApiOperation(value = "电池组电池性能统计(未放电,优秀,劣化,损坏)统计(1.2.8/9/10)") |
| | | @PostMapping("getPerformanceStatistic") |
| | | public Response getPerformanceStatistic(@RequestBody PerformanceStic stic){ |
| | | User uinf= ActionUtil.getUser(); |
| | | stic.setUid(uinf.getId()); |
| | | return battTinfService.getPerformanceStatistic(stic); |
| | | } |
| | | |
| | | |
| | |
| | | return battTinfService.getBattCompare15Statistic(stic); |
| | | } |
| | | |
| | | @ApiOperation(value = "蓄电池组对比分析界面(不同品牌同一时间)(1.2.16)") |
| | | @PostMapping("getBattCompare16Statistic") |
| | | public Response getBattCompare16Statistic(@RequestBody BattCompareStic stic){ |
| | | User uinf= ActionUtil.getUser(); |
| | | stic.setUid(uinf.getId()); |
| | | return battTinfService.getBattCompare16Statistic(stic); |
| | | } |
| | | |
| | | @ApiOperation(value = "蓄电池组对比分析界面(同一品牌不同时间)(1.2.17)") |
| | | @PostMapping("getBattCompare17Statistic") |
| | | public Response getBattCompare17Statistic(@RequestBody BattCompareStic stic){ |
| | | User uinf= ActionUtil.getUser(); |
| | | stic.setUid(uinf.getId()); |
| | | return battTinfService.getBattCompare17Statistic(stic); |
| | | } |
| | | |
| | | @ApiOperation(value = "设备工作状态统计(1.2.21)") |
| | | @PostMapping("getDeviceStateStatistic") |
| | | public Response getDeviceStateStatistic(@RequestBody DeviceStateStic stic){ |