From 2ccbb8881721a16ec5cf68b12346ecdc0b6941cf Mon Sep 17 00:00:00 2001
From: huangzhen <867127663@qq.com>
Date: 星期日, 09 十月 2022 09:10:00 +0800
Subject: [PATCH] 获取所有的风险分析单元的编码和姓名

---
 src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskDangerInfoServiceImpl.java |   16 ++++++++++++++++
 1 files changed, 16 insertions(+), 0 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 d0a54da..6a3d98e 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
@@ -1,10 +1,15 @@
 package com.ruoyi.doublePrevention.service.baseService.impl;
 
 import com.ruoyi.doublePrevention.entity.PreventRiskDangerInfo;
+import com.ruoyi.doublePrevention.entity.dto.DataCountDangerResultRespDO;
 import com.ruoyi.doublePrevention.repository.PreventRiskDangerInfoRepository;
+import com.ruoyi.doublePrevention.repository.param.DataCountStartAndEndTimeParams;
 import com.ruoyi.doublePrevention.service.baseService.PreventRiskDangerInfoService;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Service;
+
+import java.util.Date;
+import java.util.List;
 
 @Service("PreventRiskDangerInfoService")
 public class PreventRiskDangerInfoServiceImpl implements PreventRiskDangerInfoService {
@@ -35,4 +40,15 @@
     public int deleteDangerInfo(Long id) {
         return preventRiskDangerInfoRepository.deleteDangerInfo(id);
     }
+
+
+    /**
+     * @description 统计时间段内所有、死亡、重伤、轻伤的隐患数量
+     */
+    @Override
+    public DataCountDangerResultRespDO listDangerResultCountByTime(Date startTime, Date endTime, List<Long> depIds) {
+        return preventRiskDangerInfoRepository.listDangerResultCountByTime(startTime,endTime,depIds);
+    }
+
+
 }

--
Gitblit v1.9.2