双重预防项目-国泰新华二开定制版
16639036659
2024-06-18 4fb65d8e3c5fc8ddb8882a355cd31ecb9d51f3d9
src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskDangerInfoServiceImpl.java
@@ -4,6 +4,7 @@
import com.ruoyi.doublePrevention.entity.dto.DataCountDangerResultRespDO;
import com.ruoyi.doublePrevention.repository.PreventRiskDangerInfoRepository;
import com.ruoyi.doublePrevention.repository.param.DataCountStartAndEndTimeParams;
import com.ruoyi.doublePrevention.repository.param.HandlerReportParam;
import com.ruoyi.doublePrevention.service.baseService.PreventRiskDangerInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@@ -48,7 +49,18 @@
    public int updateDangerInfoState(PreventRiskDangerInfo dangerInfo) {
        return preventRiskDangerInfoRepository.updateDangerInfoState(dangerInfo);
    }
    /**
     * 查询隐患附属表信息
     */
    @Override
    public PreventRiskDangerInfo getByHiddenDangerId(Long id) {
        return  preventRiskDangerInfoRepository.getByHiddenDangerId(id);
    }
    @Override
    public PreventRiskDangerInfo getDangerInfoByDangerCheckPointId(Long checkId) {
        return  preventRiskDangerInfoRepository.getByHiddenDangerId(checkId);
    }
    /**
     * @description 统计时间段内所有、死亡、重伤、轻伤的隐患数量
@@ -58,5 +70,19 @@
        return preventRiskDangerInfoRepository.listDangerResultCountByTime(startTime,endTime,depIds);
    }
    /**
     * 搜索需要上报的隐患
     */
    @Override
    public List<PreventRiskDangerInfo> listReportDanger() {
        return preventRiskDangerInfoRepository.listReportDanger();
    }
    /**
     * 修改上报的数据的姿态
     */
    @Override
    public PreventRiskDangerInfo updateDangerInfoReportStatus(HandlerReportParam handlerReportParam) {
        return preventRiskDangerInfoRepository.updateDangerInfoReportStatus(handlerReportParam);
    }
}