From 135a322f44708b1187d37ea4b6859b5d82113e89 Mon Sep 17 00:00:00 2001 From: kongzy <kongzy> Date: 星期三, 14 八月 2024 11:00:30 +0800 Subject: [PATCH] update gitignore --- src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventRiskJobAndMeasureServiceImpl.java | 174 +++++++++++++++++++++++++++++----------------------------- 1 files changed, 87 insertions(+), 87 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 c2d4230..0429512 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,87 +1,87 @@ -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 { - - @Autowired - private PreventRiskJobAndMeasureRepository preventRiskJobAndMeasureRepository; - - /** - * 插入管控措施与job的对应关系 - * */ - @Override - public int insertJobAndMeasure(PreventRiskJobAndMeasure jobAndMeasure) { - return preventRiskJobAndMeasureRepository.insertJobAndMeasure(jobAndMeasure); - } - - /** - * 查询JobAndMeasure - By JobId - */ - @Override - public PreventRiskJobAndMeasure getJobAndMeasureByJobId(Long jobId) { - return preventRiskJobAndMeasureRepository.getJobAndMeasureByJobId(jobId); - } - - @Override - public List<PreventRiskJobAndMeasure> getJobAndMeasureListByJobId(Long jobId) { - return preventRiskJobAndMeasureRepository.getJobAndMeasureListByJobId(jobId); - } - /** - * 删除job管控措施的附属表关联信息 - */ - @Override - public int deleteJobAndMeasure(Long jobId) { - 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(); - } - - @Override - public List<PreventRiskJobAndMeasure> getRectifyJobData(Long jobId) { - return preventRiskJobAndMeasureRepository.getRectifyJobData(jobId); - } - - -} +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 { + + @Autowired + private PreventRiskJobAndMeasureRepository preventRiskJobAndMeasureRepository; + + /** + * 插入管控措施与job的对应关系 + * */ + @Override + public int insertJobAndMeasure(PreventRiskJobAndMeasure jobAndMeasure) { + return preventRiskJobAndMeasureRepository.insertJobAndMeasure(jobAndMeasure); + } + + /** + * 查询JobAndMeasure - By JobId + */ + @Override + public PreventRiskJobAndMeasure getJobAndMeasureByJobId(Long jobId) { + return preventRiskJobAndMeasureRepository.getJobAndMeasureByJobId(jobId); + } + + @Override + public List<PreventRiskJobAndMeasure> getJobAndMeasureListByJobId(Long jobId) { + return preventRiskJobAndMeasureRepository.getJobAndMeasureListByJobId(jobId); + } + /** + * 删除job管控措施的附属表关联信息 + */ + @Override + public int deleteJobAndMeasure(Long jobId) { + 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(); + } + + @Override + public List<PreventRiskJobAndMeasure> getRectifyJobData(Long jobId) { + return preventRiskJobAndMeasureRepository.getRectifyJobData(jobId); + } + + +} -- Gitblit v1.9.2