| | |
| | | |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.ruoyi.doublePrevention.entity.CJReport.PreventCJReportRiskAnaUnit; |
| | | import com.ruoyi.doublePrevention.entity.ZDReport.HandlerZDReportParam; |
| | | import com.ruoyi.doublePrevention.enums.E; |
| | | import com.ruoyi.doublePrevention.exception.AusinessException; |
| | | import com.ruoyi.doublePrevention.repository.PreventCJReportRiskAnaUnitRepository; |
| | |
| | | throw new AusinessException(E.ADD_FAIL.getCode(), "CJ保存风险单元失败"); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public void updateHDReportStatusById(HandlerZDReportParam handlerZDReportParam) { |
| | | int result = preventCJReportRiskAnaUnitRepository.updateHDReportStatusById(handlerZDReportParam); |
| | | if (result < 1){ |
| | | throw new AusinessException(E.ADD_FAIL.getCode(), "CJ保存风险单元失败"); |
| | | } |
| | | } |
| | | |
| | | @Override |
| | | public List<PreventCJReportRiskAnaUnit> listReportUnitDateHuaiDong() { |
| | | return preventCJReportRiskAnaUnitRepository.listReportUnitDateHuaiDong(); |
| | | } |
| | | } |