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