| | |
| | | package com.ycl.controller.cockpit.statisticsEvents; |
| | | |
| | | import cn.hutool.core.bean.BeanUtil; |
| | | 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.cockpitManage.TeamIndex; |
| | | import com.ycl.entity.video.VideoPoint; |
| | | import com.ycl.service.cockpitManage.ITeamConstructionService; |
| | | import com.ycl.service.video.impl.IVideoPointService; |
| | |
| | | |
| | | return CommonResult.success(list); |
| | | } |
| | | |
| | | |
| | | @ApiOperation(value = "涓槦鎸囨暟浣撳緛") |
| | | @GetMapping("/team_index") |
| | | public CommonResult<List<TeamIndex>> teamIndex(@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); |
| | | List<TeamIndex> teamIndexList = BeanUtil.copyToList(list, TeamIndex.class); |
| | | teamIndexList.forEach(o -> { |
| | | o.setStepTimely(0.6); |
| | | o.setStepDelayed(0.3); |
| | | o.setStepOvertime(0.1); |
| | | o.setHandleTimely(0.6); |
| | | o.setHandleDelayed(0.2); |
| | | o.setHandleOvertime(0.1); |
| | | o.setNoHandle(0.1); |
| | | }); |
| | | return CommonResult.success(teamIndexList); |
| | | } |
| | | } |