From 5b45d4ba77a209251ce8e21c5392a62eea32a57a Mon Sep 17 00:00:00 2001 From: zhouwenxuan <1175765986@qq.com> Date: 星期三, 12 七月 2023 10:54:35 +0800 Subject: [PATCH] 停用检修记录 --- src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskJobAndMeasureServiceImpl.java | 39 +++++++++++++++++++++++++++++++++++++++ 1 files changed, 39 insertions(+), 0 deletions(-) diff --git a/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskJobAndMeasureServiceImpl.java b/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskJobAndMeasureServiceImpl.java index 892a55f..1416c09 100644 --- a/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskJobAndMeasureServiceImpl.java +++ b/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskJobAndMeasureServiceImpl.java @@ -1,10 +1,15 @@ package com.ruoyi.doublePrevention.service.baseService.impl; +import com.ruoyi.common.exception.BusinessException; import com.ruoyi.doublePrevention.entity.PreventRiskJobAndMeasure; +import com.ruoyi.doublePrevention.enums.ResultCodes; import com.ruoyi.doublePrevention.repository.PreventRiskJobAndMeasureRepository; +import com.ruoyi.doublePrevention.repository.param.HandlerReportParam; import com.ruoyi.doublePrevention.service.baseService.PreventRiskJobAndMeasureService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.stereotype.Service; + +import java.util.List; @Service("PreventRiskJobAndMeasureService") public class PreventRiskJobAndMeasureServiceImpl implements PreventRiskJobAndMeasureService { @@ -35,4 +40,38 @@ return preventRiskJobAndMeasureRepository.deleteJobAndMeasure(jobId); } + + + /** + * 检索需要上报的隐患排查任务 + */ + @Override + public List<PreventRiskJobAndMeasure> listReportWork() { + return preventRiskJobAndMeasureRepository.listReportWork(); + } + /** + * 根据jobId查询对应的管控措施 + */ + @Override + public List<PreventRiskJobAndMeasure> getMeasureListByJobId(Long jobId) { + return preventRiskJobAndMeasureRepository.getMeasureListByJobId(jobId); + } + /** + * 修改上报状态 + */ + @Override + public int updateWorkReportStatus(HandlerReportParam handlerReportParam) { + int result = preventRiskJobAndMeasureRepository.updateWorkReportStatus(handlerReportParam); + if (result == 0) { + throw new BusinessException(ResultCodes.SERVER_UPDATE_ERROR.getCode()); + } + return result; + } + + @Override + public List<PreventRiskJobAndMeasure> listReportWorkTest() { + return preventRiskJobAndMeasureRepository.listReportWorkTest(); + } + + } -- Gitblit v1.9.2