package cn.huge.module.analysis.dao.mapper;
|
|
import cn.huge.module.analysis.domain.dto.*;
|
import cn.huge.module.analysis.domain.vo.CountRepeateVo;
|
import cn.huge.module.cases.domain.dto.CasePageDTO;
|
import cn.huge.module.cases.domain.po.CaseInfo;
|
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
|
import org.apache.ibatis.annotations.Param;
|
import org.springframework.data.domain.PageRequest;
|
import org.springframework.stereotype.Repository;
|
|
import java.util.List;
|
import java.util.Map;
|
|
/**
|
* @title: 纠纷信息主表持久层业务处理
|
* @Description 此处仅涉及复杂SQL操作,务必不要在此再次写单表的CRUD操作,因为mybatisPlus已经实现。
|
* @company: hugeinfo
|
* @author: wangwh
|
* @time: 2024-08-27 10:00:57
|
* @version 1.0.0
|
*/
|
@Repository
|
public interface AnalysisMapper extends BaseMapper<CaseInfo>{
|
|
List<CountRepeateDto> countRepeatedCases(CountRepeateVo countRepeateVo);
|
/**
|
* 统计任务平均时长
|
* @param terms 查询条件集合
|
*/
|
AvgDurationDTO statisticsAVG(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 分组统计任务平均时长
|
* @param terms 查询条件集合
|
*/
|
List<AvgDurationGroupDTO> statisticsGroupAVG(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 统计审批平均时长
|
* @param terms 查询条件集合
|
*/
|
AvgDurationDTO statisticsApplyAVG(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 分组统计审批平均时长
|
* @param terms 查询条件集合
|
*/
|
List<AvgDurationGroupDTO> statisticsApplyGroup(@Param("terms") Map<String, Object> terms);
|
|
|
/**
|
* 统计督办平均时长
|
* @param terms 查询条件集合
|
*/
|
AvgDurationDTO statisticsSuperviseAVG(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 分组统计督办平均时长
|
* @param terms 查询条件集合
|
*/
|
List<AvgDurationGroupDTO> statisticsSuperviseGroup(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 分组统计任务
|
* @param terms 查询条件集合
|
*/
|
StatisticsGroupDTO statisticsQuantity(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 首页-统计超时任务
|
* @param terms 查询条件集合
|
*/
|
StatisticsGroupDTO homeStatisticsQuantity(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 分组统计督办
|
* @param terms 查询条件集合
|
*/
|
StatisticsGroupDTO statisticsSuperviseQuantity(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 首页-统计超时督办
|
* @param terms 查询条件集合
|
*/
|
StatisticsGroupDTO homeStatisticsSuperviseQuantity(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查询分派超时案件统计
|
* @param terms 条件
|
* @return long
|
*/
|
long countFPQuantity(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查询分派超时案件
|
* @param terms 查询条件集合
|
*/
|
List<TimeoutTaskInfoDTO> listFPQuantity(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查询受理超时案件统计
|
* @param terms 条件
|
* @return long
|
*/
|
long countSLQuantity(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查询受理超时案件
|
* @param terms 查询条件集合
|
*/
|
List<TimeoutTaskInfoDTO> listSLQuantity(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查询督办超时案件统计
|
* @param terms 条件
|
* @return long
|
*/
|
long countDBQuantity(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查询督办超时案件
|
* @param terms 查询条件集合
|
*/
|
List<TimeoutTaskInfoDTO> listDBQuantity(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查询所有类型超时案件统计
|
* @param terms 条件
|
* @return long
|
*/
|
long countAllQuantity(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查询所有类型超时案件
|
* @param terms 查询条件集合
|
*/
|
List<TimeoutTaskInfoDTO> listAllQuantity(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查询督办超时案件统计
|
* @param terms 条件
|
* @return long
|
*/
|
List<String> listSubordinateTerritory(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 分组任务流转统计
|
* @param terms 条件
|
* @return long
|
*/
|
List<StatisticsCirculationDTO> statisticsCirculation(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 获取所有下属组织包括自己
|
* @param unitId 组织编号
|
* @return long
|
*/
|
List<String> getAllParentUnit(@Param("unitId") String unitId);
|
|
/**
|
* 获取所有下属组织包括自己(除村居外)
|
* @param unitId 组织编号
|
* @return long
|
*/
|
List<String> getAllDeptParentUnit(@Param("unitId") String unitId);
|
|
/**
|
* 查询当前层级所有组织
|
* @param terms 条件
|
* @return long
|
*/
|
List<LevelGroupYYJDDTO> listSubordinateTerritory1(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 分组查询扬言极端数量
|
* @param terms 查询条件集合
|
*/
|
List<LevelGroupYYJDDTO> statisticsYYJDQuantity(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查询当前层级所有组织
|
* @param terms 条件
|
* @return long
|
*/
|
List<String> listCaseTypeByRegion(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 获取本级Id
|
* @param terms 条件
|
* @return long
|
*/
|
String getZZZXUnitId(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 分组查询分派超时案件统计
|
* @param terms 条件
|
* @return long
|
*/
|
List<TimeOutTaskGroupDTO> countFPQuantityGroup(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 分组查询受理超时案件统计
|
* @param terms 条件
|
* @return long
|
*/
|
List<TimeOutTaskGroupDTO> countSLQuantityGroup(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 分组查询督办超时案件统计
|
* @param terms 条件
|
* @return long
|
*/
|
List<TimeOutTaskGroupDTO> countDBQuantityGroup(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 分组查询所有类型超时案件统计
|
* @param terms 条件
|
* @return long
|
*/
|
List<TimeOutTaskGroupDTO> countAllQuantityGroup(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 分组查询所有类型超时案件统计
|
* @param terms 条件
|
* @return long
|
*/
|
List<String> listRegion(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查询流转情况数量
|
* @param terms 条件
|
* @return long
|
*/
|
long countStatisticsCirculation(@Param("terms") Map<String, Object> terms);
|
|
/**
|
* 查询流转情况列表
|
* @param terms 条件
|
* @return long
|
*/
|
List<CasePageDTO> listStatisticsCirculation(@Param("page") PageRequest page, @Param("terms") Map<String, Object> terms);
|
}
|