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);
|
}
|
}
|