| | |
| | | package com.ruoyi.doublePrevention.service.baseService;
|
| | |
|
| | | import com.ruoyi.doublePrevention.entity.PreventRiskDangerInfo;
|
| | | import com.ruoyi.doublePrevention.entity.dto.DataCountDangerResultRespDO;
|
| | | import com.ruoyi.doublePrevention.repository.param.DataCountStartAndEndTimeParams;
|
| | |
|
| | | import java.util.Date;
|
| | | import java.util.List;
|
| | |
|
| | | public interface PreventRiskDangerInfoService {
|
| | |
|
| | | /**
|
| | | * 新增隐患上报
|
| | | * */
|
| | | int insertDangerInfo(PreventRiskDangerInfo dangerInfo);
|
| | | /**
|
| | | * 修改隐患上报
|
| | | * */
|
| | | int updateDangerInfo(PreventRiskDangerInfo dangerInfo);
|
| | | /**
|
| | | * 删除隐患上报
|
| | | */
|
| | | int deleteDangerInfo(Long id);
|
| | | /**
|
| | | * 修改隐患整改状态
|
| | | */
|
| | | int updateDangerInfoState(PreventRiskDangerInfo dangerInfo);
|
| | |
|
| | | /**
|
| | | * @description 统计时间段内所有、死亡、重伤、轻伤的隐患数量
|
| | | */
|
| | | DataCountDangerResultRespDO listDangerResultCountByTime(Date startTime, Date endTime, List<Long> depIds);
|
| | |
|
| | | }
|
| | | package com.ruoyi.doublePrevention.service.baseService; |
| | | |
| | | import com.ruoyi.doublePrevention.entity.PreventRiskDangerInfo; |
| | | import com.ruoyi.doublePrevention.entity.dto.DataCountDangerResultRespDO; |
| | | import com.ruoyi.doublePrevention.repository.param.DataCountStartAndEndTimeParams; |
| | | import com.ruoyi.doublePrevention.repository.param.HandlerReportParam; |
| | | |
| | | import java.util.Date; |
| | | import java.util.List; |
| | | |
| | | public interface PreventRiskDangerInfoService { |
| | | |
| | | /** |
| | | * 新增隐患上报 |
| | | * */ |
| | | int insertDangerInfo(PreventRiskDangerInfo dangerInfo); |
| | | /** |
| | | * 修改隐患上报 |
| | | * */ |
| | | int updateDangerInfo(PreventRiskDangerInfo dangerInfo); |
| | | |
| | | /** |
| | | * 删除隐患上报 |
| | | */ |
| | | int deleteDangerInfo(Long id); |
| | | /** |
| | | * 修改隐患整改状态 |
| | | */ |
| | | int updateDangerInfoState(PreventRiskDangerInfo dangerInfo); |
| | | |
| | | /** |
| | | * @description 统计时间段内所有、死亡、重伤、轻伤的隐患数量 |
| | | */ |
| | | DataCountDangerResultRespDO listDangerResultCountByTime(Date startTime, Date endTime, List<Long> depIds); |
| | | |
| | | |
| | | |
| | | /** |
| | | * 搜索需要上报的隐患 |
| | | */ |
| | | List<PreventRiskDangerInfo> listReportDanger(); |
| | | /** |
| | | * 修改上报的数据的姿态 |
| | | */ |
| | | PreventRiskDangerInfo updateDangerInfoReportStatus(HandlerReportParam handlerReportParam); |
| | | /** |
| | | * 查询隐患附属表信息 |
| | | */ |
| | | PreventRiskDangerInfo getByHiddenDangerId(Long id); |
| | | |
| | | PreventRiskDangerInfo getDangerInfoByDangerCheckPointId(Long checkId); |
| | | } |