双重预防项目-国泰新华二开定制版
huangzhen
2022-09-30 679dfe8a68fe56100e708f112c1060d661d7b136
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
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 {
 
    /**
     * 新增隐患上报
     * */
    int insertDangerInfo(PreventRiskDangerInfo dangerInfo);
    /**
     * 修改隐患上报
     * */
    int updateDangerInfo(PreventRiskDangerInfo dangerInfo);
 
    int deleteDangerInfo(Long id);
 
    /**
     * @description 统计时间段内所有、死亡、重伤、轻伤的隐患数量
     */
    DataCountDangerResultRespDO listDangerResultCountByTime(@Param("startTime") Date startTime, @Param("endTime") Date endTime,@Param("depIds") List<Long> depIds);
}