From 8aaaaab9baa7f9481b40827e8c522b7e8d1620e4 Mon Sep 17 00:00:00 2001 From: yuejiayang <146344614+YangLei105@users.noreply.github.com> Date: Wed, 27 Nov 2024 11:57:26 +0800 Subject: [PATCH] =?UTF-8?q?2024.11.27=20=E5=AE=A1=E6=89=B9=E4=BC=98?= =?UTF-8?q?=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sys/modules/auth/service/impl/AuthRuleServiceImpl.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/xujie/sys/modules/auth/service/impl/AuthRuleServiceImpl.java b/src/main/java/com/xujie/sys/modules/auth/service/impl/AuthRuleServiceImpl.java index 27184202..ddb458da 100644 --- a/src/main/java/com/xujie/sys/modules/auth/service/impl/AuthRuleServiceImpl.java +++ b/src/main/java/com/xujie/sys/modules/auth/service/impl/AuthRuleServiceImpl.java @@ -93,11 +93,15 @@ public class AuthRuleServiceImpl extends ServiceImpl authMailSends = new ArrayList<>(); AuthRuleDataVo authRuleData = authRuleMapper.getFormAuthRule(recordType,site,buNo); List authStepsByRuleId = authStepMapper.getAuthStepsByRuleId(authRuleData.getAuthRuleId()); + if (authStepsByRuleId.isEmpty()){ + throw new RuntimeException("该申请单的审批规则下不存在审批步骤,无法下达!"); + } for (AuthStepDataVo authStepDataVo : authStepsByRuleId) { AuthHistData authHistData = new AuthHistData(); authHistData.setRecordTypeDb(recordType);