From aa2051a2327c079105110f5424f3a44ffaa0c7bb Mon Sep 17 00:00:00 2001
From: 马宇豪 <978517621@qq.com>
Date: 星期五, 25 八月 2023 10:11:08 +0800
Subject: [PATCH] 延期整改

---
 src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskDangerInfoServiceImpl.java |   23 ++++++++++++++++++++++-
 1 files changed, 22 insertions(+), 1 deletions(-)

diff --git a/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskDangerInfoServiceImpl.java b/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskDangerInfoServiceImpl.java
index 5c5ff78..d6f963a 100644
--- a/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskDangerInfoServiceImpl.java
+++ b/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,13 @@
     public int updateDangerInfoState(PreventRiskDangerInfo dangerInfo) {
         return preventRiskDangerInfoRepository.updateDangerInfoState(dangerInfo);
     }
-
+    /**
+     * 查询隐患附属表信息
+     */
+    @Override
+    public PreventRiskDangerInfo getByHiddenDangerId(Long id) {
+        return  preventRiskDangerInfoRepository.getByHiddenDangerId(id);
+    }
 
     /**
      * @description 统计时间段内所有、死亡、重伤、轻伤的隐患数量
@@ -58,5 +65,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);
+    }
 
 }

--
Gitblit v1.9.2