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);