| | |
| | | package com.ycl.controller.cockpit.statisticsEvents; |
| | | |
| | | import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper; |
| | | import com.baomidou.mybatisplus.core.metadata.IPage; |
| | | import com.baomidou.mybatisplus.extension.plugins.pagination.Page; |
| | | import com.ycl.api.CommonResult; |
| | | import com.ycl.entity.cockpitManage.TeamConstruction; |
| | | import com.ycl.entity.video.VideoPoint; |
| | | import com.ycl.service.cockpitManage.ITeamConstructionService; |
| | | import com.ycl.service.video.impl.IVideoPointService; |
| | | import com.ycl.util.CheckApiUtil; |
| | | import com.ycl.vo.cockpit.CockpitVO; |
| | | import com.ycl.vo.cockpit.statisticsEvents.StatisticsEventsVO; |
| | | import com.ycl.vo.equipment.VideoPointVo; |
| | | import io.swagger.annotations.Api; |
| | | import io.swagger.annotations.ApiImplicitParam; |
| | | import io.swagger.annotations.ApiOperation; |
| | | import org.springframework.beans.factory.annotation.Autowired; |
| | | import org.springframework.validation.annotation.Validated; |
| | | import org.springframework.web.bind.annotation.GetMapping; |
| | | import org.springframework.web.bind.annotation.RequestMapping; |
| | |
| | | public class StatisticsEventsController { |
| | | @Resource |
| | | private CheckApiUtil checkApiUtil; |
| | | |
| | | private IVideoPointService videoPointService; |
| | | |
| | | private ITeamConstructionService teamConstructionService; |
| | | |
| | | @Autowired |
| | | public void setTeamConstructionService(ITeamConstructionService teamConstructionService) { |
| | | this.teamConstructionService = teamConstructionService; |
| | | } |
| | | |
| | | @Autowired |
| | | public void setVideoPointService(IVideoPointService videoPointService) { |
| | | this.videoPointService = videoPointService; |
| | | } |
| | | |
| | | @ApiOperation(value = "执法事件") |
| | | @GetMapping("/law_enforcement_event") |
| | |
| | | |
| | | return CommonResult.success(vo); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "点位") |
| | | @GetMapping("/video_point") |
| | | public CommonResult<List<VideoPointVo>> videoPoint(@Validated CockpitVO params) { |
| | | checkApiUtil.cockpit(params); |
| | | IPage<VideoPointVo> page = videoPointService.getList(null, null, 1, 500); |
| | | return CommonResult.success(page.getRecords()); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "队伍建设") |
| | | @GetMapping("/team_construction") |
| | | public CommonResult<List<TeamConstruction>> teamConstruction(@Validated CockpitVO params) { |
| | | checkApiUtil.cockpit(params); |
| | | LambdaQueryWrapper<TeamConstruction> queryWrapper = new LambdaQueryWrapper<TeamConstruction>().eq(TeamConstruction::getStatus, 1).eq(TeamConstruction::getIsDelete, 0); |
| | | List<TeamConstruction> list = teamConstructionService.list(queryWrapper); |
| | | |
| | | return CommonResult.success(list); |
| | | } |
| | | } |