package com.ruoyi.project.tr.report.mapper; import com.ruoyi.project.tr.report.domain.Danger; import com.ruoyi.project.tr.report.domain.DangerByTime; import com.ruoyi.project.tr.report.domain.Report; import com.ruoyi.project.tr.report.domain.RiskDomain; import org.apache.ibatis.annotations.Param; import java.util.Date; import java.util.List; public interface ReportMapper { /** * 查询按部门分类风险 * @return */ List selectDeptDangers(long companyId); /** * 查询按隐患类别分类风险 * @return */ List selectTroubleTypeDangers(long companyId); /** * 按月查询隐患分类数据 * @param date 当前时间往前推一年 * @return */ List selectDangersByMonths(@Param("date") Date date, @Param("companyId") long companyId); /** * 按年查询隐患分类数据 * @return */ List selectDangersByYear(long companyId); /** * 根据部门分类查询风险状况 * @param companyId * @return */ List selectRiskByDept(long companyId); /** * 根据区域分类查询风险状况 * @param companyId * @return */ List selectRiskByRegion(long companyId); /** * 查询区域信息 * @param companyId * @return */ List selectRegion(long companyId); /** * 查询部门信息 * @param companyId * @return */ List selectDept(long companyId);/** * 查询风险单元信息 * @param companyId * @return */ List selectRiskPoint(@Param("riskType") int riskType, @Param("companyId") long companyId); /** * 查询风险趋势信息 * @param companyId * @return */ List selectRiskTrend(long companyId); /** * 查询区域隐患 * @param companyId * @return */ List selectDangerByRegion(long companyId); /** * 查询区域隐患 * @param companyId * @return */ List selectDangerByRegionByCompanyId147(long companyId); /** * 查询风险待辨识数量 * @param companyId * @param userId * @return */ int selectRiskIdentityCount(@Param("companyId") long companyId, @Param("userId") long userId); /** * 查询风险未评价数量 * @param userId * @return */ int selectRiskEvaluationCount(long userId); /** * 查询风险审核数量 * @param userId * @return */ int selectRiskReviewCount(long userId); /** * 查询排查计划为执行数量 * @param userId * @return */ int selectTroubleCheckCount(long userId); /** * 查询上报隐患数量 * @param userId * @return */ int selectTroubleReportCount(long userId); /** * 查询隐患待核查数量 * @param userId * @return */ int selectTroubleExamineCount(long userId); /** * 查询隐患待整改数量 * @param userId * @return */ int selectTroubleRectifyCount(long userId); /** * 查询未验收隐患数量 * @param userId * @return */ int selectTroubleAcceptCount(long userId); /** * 查询公示需要的隐患信息 * @param companyId * @return */ List selectPublicityDanger(long companyId); /** * 查询公示需要的风险信息 * @param companyId * @return */ List selectPublicityRisk(long companyId); }