| | |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.entity.cockpitManage.TeamConstruction; |
| | | import com.ycl.entity.cockpitManage.TeamIndex; |
| | | import com.ycl.service.apidata.IApiDataService; |
| | | import com.ycl.service.cockpitManage.ITeamConstructionService; |
| | | import com.ycl.service.equipment.IOrgGridService; |
| | | import com.ycl.service.video.impl.IVideoPointService; |
| | |
| | | private ITeamConstructionService teamConstructionService; |
| | | |
| | | private IOrgGridService orgGridService; |
| | | |
| | | |
| | | private IApiDataService iApiDataService; |
| | | |
| | | @Autowired |
| | | public void setIApiDataService(IApiDataService apiDataService){ |
| | | this.iApiDataService = apiDataService; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setTeamConstructionService(ITeamConstructionService teamConstructionService) { |
| | |
| | | @ApiOperation(value = "top10") |
| | | @GetMapping("/top10") |
| | | public CommonResult<List<StatisticsEventsVO.Top10VO>> top10(@Validated CockpitVO params) { |
| | | checkApiUtil.cockpit(params); |
| | | List<StatisticsEventsVO.Top10VO> ls = new ArrayList<>(); |
| | | ls.add(new StatisticsEventsVO.Top10VO("xx中队", 100.0)); |
| | | ls.add(new StatisticsEventsVO.Top10VO("xx中队", 90.0)); |
| | | ls.add(new StatisticsEventsVO.Top10VO("xx中队", 80.0)); |
| | | ls.add(new StatisticsEventsVO.Top10VO("xx中队", 70.0)); |
| | | return CommonResult.success(ls); |
| | | // checkApiUtil.cockpit(params); |
| | | // List<StatisticsEventsVO.Top10VO> ls = new ArrayList<>(); |
| | | // ls.add(new StatisticsEventsVO.Top10VO("xx中队", 100.0)); |
| | | // ls.add(new StatisticsEventsVO.Top10VO("xx中队", 90.0)); |
| | | // ls.add(new StatisticsEventsVO.Top10VO("xx中队", 80.0)); |
| | | // ls.add(new StatisticsEventsVO.Top10VO("xx中队", 70.0)); |
| | | // return CommonResult.success(ls); |
| | | String beginTime = params.getBeginTime(); |
| | | String endTime = params.getEndTime(); |
| | | List<StatisticsEventsVO.Top10VO> res = iApiDataService.listTop10(beginTime, endTime); |
| | | return CommonResult.success(res); |
| | | } |
| | | |
| | | |