Browse Source

2024.11.27 审批优化

java8
yuejiayang 1 year ago
parent
commit
8aaaaab9ba
  1. 4
      src/main/java/com/xujie/sys/modules/auth/service/impl/AuthRuleServiceImpl.java

4
src/main/java/com/xujie/sys/modules/auth/service/impl/AuthRuleServiceImpl.java

@ -93,11 +93,15 @@ public class AuthRuleServiceImpl extends ServiceImpl<AuthRuleMapper, AuthRuleDat
}
@Override
@Transactional(rollbackFor = Exception.class)
public void getFormAuthRule(String recordType,String site,String buNo,String orderRef1) throws MessagingException, UnsupportedEncodingException {
List<AuthHistData> authMailSends = new ArrayList<>();
AuthRuleDataVo authRuleData = authRuleMapper.getFormAuthRule(recordType,site,buNo);
List<AuthStepDataVo> authStepsByRuleId = authStepMapper.getAuthStepsByRuleId(authRuleData.getAuthRuleId());
if (authStepsByRuleId.isEmpty()){
throw new RuntimeException("该申请单的审批规则下不存在审批步骤,无法下达!");
}
for (AuthStepDataVo authStepDataVo : authStepsByRuleId) {
AuthHistData authHistData = new AuthHistData();
authHistData.setRecordTypeDb(recordType);

Loading…
Cancel
Save