5 changed files with 25 additions and 68 deletions
@ -1,52 +0,0 @@
|
||||
package com.biutag.supervision.service; |
||||
|
||||
import com.biutag.supervision.mapper.NegativeMapper; |
||||
import com.biutag.supervision.pojo.vo.EchartsVo; |
||||
import com.biutag.supervision.pojo.vo.OrganizeProblemRankVo; |
||||
import com.biutag.supervision.pojo.vo.VideoSuperviseCountVo; |
||||
import lombok.RequiredArgsConstructor; |
||||
import org.springframework.stereotype.Service; |
||||
|
||||
import java.util.Date; |
||||
import java.util.List; |
||||
|
||||
/** |
||||
* @Auther: sh |
||||
* @Date: 2024/12/16 17:18 |
||||
* @Description: |
||||
*/ |
||||
|
||||
@RequiredArgsConstructor |
||||
@Service |
||||
public class SubOneVideoSuperviseService { |
||||
private final NegativeMapper negativeMapper; |
||||
private final SupDepartService departService; |
||||
|
||||
|
||||
public VideoSuperviseCountVo getSubOneAllVideoSuperviseCount(Date beginTime, Date endTime, Integer departId) { |
||||
VideoSuperviseCountVo res = negativeMapper.getSubOneAllVideoSuperviseCount(beginTime, endTime, departId); |
||||
return res; |
||||
} |
||||
|
||||
public List<OrganizeProblemRankVo> getSuboOneVideoSuperviseProblemRank(Date beginTime, Date endTime, Integer groupId, Integer departId) { |
||||
List<OrganizeProblemRankVo> res ; |
||||
if (groupId == 10) { |
||||
res = negativeMapper.getSuboOneVideoSupervisePoliceProblemRank(beginTime, endTime, groupId, departId); |
||||
} else { |
||||
res = negativeMapper.getSuboOneVideoSuperviseTeamProblemRank(beginTime, endTime, groupId, departId); |
||||
} |
||||
return res; |
||||
} |
||||
|
||||
public List<EchartsVo> getSubOneVideoSuperviseTrend(String year, String problemCode, String departId) { |
||||
List<String> departIds = departService.getAllNodeIds(departId); |
||||
List<EchartsVo> res = negativeMapper.getSubOneVideoSuperviseTrend(year, problemCode, departIds); |
||||
return res; |
||||
} |
||||
|
||||
public List<EchartsVo> getSubOneVideoSuperviseProblemTypeRate(Integer departId, Date beginTime, Date endTime) { |
||||
List<EchartsVo> res = negativeMapper.getSubOneVideoSuperviseProblemTypeRate(departId, beginTime, endTime); |
||||
return res; |
||||
} |
||||
} |
||||
|
||||
Loading…
Reference in new issue