双重预防项目-国泰新华二开定制版
16639036659
2024-04-23 d91ee46e736cd877ee9c55e6917f135e5ffd1338
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
package com.ruoyi.doublePrevention.service.baseService.impl;
 
import com.ruoyi.doublePrevention.entity.SPI.SPIDataReqBO;
import com.ruoyi.doublePrevention.entity.SPI.TroubleData;
import com.ruoyi.doublePrevention.entity.SPI.TroubleLevel;
import com.ruoyi.doublePrevention.entity.dto.DataCountDangerLevelRectifiedRespDO;
import com.ruoyi.doublePrevention.entity.dto.DataCountDangerLevelRespDO;
import com.ruoyi.doublePrevention.repository.TrHiddenDangerCheckPointRepository;
import com.ruoyi.doublePrevention.service.baseService.TrHiddenDangerCheckPointService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
 
import java.util.Date;
import java.util.List;
 
@Service("TrHiddenDangerCheckPointService")
public class TrHiddenDangerCheckPointServiceImpl implements TrHiddenDangerCheckPointService {
 
    @Autowired
    private TrHiddenDangerCheckPointRepository checkPointRepository;
 
    /**
     * @description 统计时间段内一般、重大的隐患数量
     */
    @Override
    public DataCountDangerLevelRespDO listDangerLevelCountByTime(Date startTime, Date endTime, List<Long> depIds) {
        return checkPointRepository.listDangerLevelCountByTime(startTime,endTime,depIds);
    }
 
    /**
     * @description 统计时间段内一般已整改、重大已整改的隐患数量
     */
    @Override
    public DataCountDangerLevelRectifiedRespDO listDangerLevelRectifiedCountByTime(Date startTime, Date endTime, List<Long> depIds) {
        return checkPointRepository.listDangerLevelRectifiedCountByTime(startTime,endTime,depIds);
    }
 
    @Override
    public List<TroubleData> getSPIData(SPIDataReqBO spiDataReqBO) {
        return  checkPointRepository.getSPIData(spiDataReqBO);
    }
 
    @Override
    public TroubleLevel getTroubleLevel(SPIDataReqBO spiDataReqBO) {
        return checkPointRepository.getTroubleLevel(spiDataReqBO);
    }
}