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/PreventCJReportRiskEventServiceImpl.java | 148 ++++++++++++++++++++++++------------------------ 1 files changed, 74 insertions(+), 74 deletions(-) diff --git a/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventCJReportRiskEventServiceImpl.java b/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventCJReportRiskEventServiceImpl.java index 07dd7fc..391fdae 100644 --- a/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventCJReportRiskEventServiceImpl.java +++ b/src/main/java/com/ruoyi/doublePrevention/service/baseService/impl/PreventCJReportRiskEventServiceImpl.java @@ -1,74 +1,74 @@ -package com.ruoyi.doublePrevention.service.baseService.impl; - -import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; -import com.ruoyi.doublePrevention.entity.CJReport.PreventCJReportRiskEvent; -import com.ruoyi.doublePrevention.enums.E; -import com.ruoyi.doublePrevention.exception.AusinessException; -import com.ruoyi.doublePrevention.repository.PreventCJReportRiskEventRepository; -import com.ruoyi.doublePrevention.repository.param.HandlerCJReportParam; -import com.ruoyi.doublePrevention.repository.param.HandlerReportParam; -import com.ruoyi.doublePrevention.service.baseService.PreventCJReportRiskEventService; -import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.stereotype.Service; - -import java.util.List; - -@Service("PreventCJReportRiskEventService") -public class PreventCJReportRiskEventServiceImpl - extends ServiceImpl<PreventCJReportRiskEventRepository, PreventCJReportRiskEvent> implements PreventCJReportRiskEventService { - - @Autowired - private PreventCJReportRiskEventRepository preventCJReportRiskEventRepository; - - -// /** -// * 分页查询 -// * */ -// @Override -// public IPage<PreventCJReportRiskEvent> getReportRiskEventPage(Page<Object> objectPage, PreReportRiskEventQueryReqDTO queryReqDTO) { -// return preventCJReportRiskEventRepository.getReportRiskEventPage(objectPage, queryReqDTO); -// } - - /** - * 插入 - * */ - @Override - public int insertEventLists(PreventCJReportRiskEvent event) { - int result = preventCJReportRiskEventRepository.insertEventLists(event); - if (result < 1){ - throw new AusinessException(E.ADD_FAIL.getCode(), "保存CJ风险单元失败"); - } - return result; - } - - /** - * 上报数据-查询待上报数据 - * */ - @Override - public List<PreventCJReportRiskEvent> listReportEventDate() { - return preventCJReportRiskEventRepository.listReportEventDate(); - } - - /** - * 修改上报状态 - * */ - @Override - public int updateEventReportStatus(HandlerReportParam handlerReportParam) { - int result = preventCJReportRiskEventRepository.updateEventReportStatus(handlerReportParam); - if (result < 1){ - throw new AusinessException(E.ADD_FAIL.getCode(), "修改上报-事件状态失败"); - } - return result; - } - - /** - * 修改上报状态-通过id - * */ - @Override - public void updateCJReportStatusById(HandlerCJReportParam handlerCJReportParam) { - int result = preventCJReportRiskEventRepository.updateCJReportStatusById(handlerCJReportParam); - if (result < 1){ - throw new AusinessException(E.ADD_FAIL.getCode(), "修改上报-事件状态失败"); - } - } -} +package com.ruoyi.doublePrevention.service.baseService.impl; + +import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; +import com.ruoyi.doublePrevention.entity.CJReport.PreventCJReportRiskEvent; +import com.ruoyi.doublePrevention.enums.E; +import com.ruoyi.doublePrevention.exception.AusinessException; +import com.ruoyi.doublePrevention.repository.PreventCJReportRiskEventRepository; +import com.ruoyi.doublePrevention.repository.param.HandlerCJReportParam; +import com.ruoyi.doublePrevention.repository.param.HandlerReportParam; +import com.ruoyi.doublePrevention.service.baseService.PreventCJReportRiskEventService; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.stereotype.Service; + +import java.util.List; + +@Service("PreventCJReportRiskEventService") +public class PreventCJReportRiskEventServiceImpl + extends ServiceImpl<PreventCJReportRiskEventRepository, PreventCJReportRiskEvent> implements PreventCJReportRiskEventService { + + @Autowired + private PreventCJReportRiskEventRepository preventCJReportRiskEventRepository; + + +// /** +// * 分页查询 +// * */ +// @Override +// public IPage<PreventCJReportRiskEvent> getReportRiskEventPage(Page<Object> objectPage, PreReportRiskEventQueryReqDTO queryReqDTO) { +// return preventCJReportRiskEventRepository.getReportRiskEventPage(objectPage, queryReqDTO); +// } + + /** + * 插入 + * */ + @Override + public int insertEventLists(PreventCJReportRiskEvent event) { + int result = preventCJReportRiskEventRepository.insertEventLists(event); + if (result < 1){ + throw new AusinessException(E.ADD_FAIL.getCode(), "保存CJ风险单元失败"); + } + return result; + } + + /** + * 上报数据-查询待上报数据 + * */ + @Override + public List<PreventCJReportRiskEvent> listReportEventDate() { + return preventCJReportRiskEventRepository.listReportEventDate(); + } + + /** + * 修改上报状态 + * */ + @Override + public int updateEventReportStatus(HandlerReportParam handlerReportParam) { + int result = preventCJReportRiskEventRepository.updateEventReportStatus(handlerReportParam); + if (result < 1){ + throw new AusinessException(E.ADD_FAIL.getCode(), "修改上报-事件状态失败"); + } + return result; + } + + /** + * 修改上报状态-通过id + * */ + @Override + public void updateCJReportStatusById(HandlerCJReportParam handlerCJReportParam) { + int result = preventCJReportRiskEventRepository.updateCJReportStatusById(handlerCJReportParam); + if (result < 1){ + throw new AusinessException(E.ADD_FAIL.getCode(), "修改上报-事件状态失败"); + } + } +} -- Gitblit v1.9.2