双重预防项目-国泰新华二开定制版
16639036659
2022-10-11 7e8d51b6a2d2892c8eca2c8cefd91f7d1b6f8f40
src/main/java/com/ruoyi/doublePrevention/repository/PreventRiskDangerInfoRepository.java
@@ -1,7 +1,13 @@
package com.ruoyi.doublePrevention.repository;
import com.ruoyi.doublePrevention.entity.PreventRiskDangerInfo;
import com.ruoyi.doublePrevention.entity.dto.DataCountDangerResultRespDO;
import com.ruoyi.doublePrevention.repository.param.DataCountStartAndEndTimeParams;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import java.util.Date;
import java.util.List;
@Repository
public interface PreventRiskDangerInfoRepository {
@@ -16,4 +22,13 @@
    int updateDangerInfo(PreventRiskDangerInfo dangerInfo);
    int deleteDangerInfo(Long id);
    /**
     * 修改隐患整改状态
     */
    int updateDangerInfoState(PreventRiskDangerInfo dangerInfo);
    /**
     * @description 统计时间段内所有、死亡、重伤、轻伤的隐患数量
     */
    DataCountDangerResultRespDO listDangerResultCountByTime(@Param("startTime") Date startTime, @Param("endTime") Date endTime,@Param("depIds") List<Long> depIds);
}