|
@@ -285,7 +285,15 @@ public class ExamOrganizationRelationServiceImpl extends BaseServiceImpl<Long, E
|
|
|
throw new BizException("请指定考级项目");
|
|
|
}
|
|
|
|
|
|
- List<Integer> childOrganIds = organizationService.getChildOrganIds(selfOrganId, true);
|
|
|
+ List<Integer> childOrganIds = organizationService.getChildOrganIds(selfOrganId, false);
|
|
|
+
|
|
|
+ ExamOrganStatisticsDto examOrganizationRelation = examOrganizationRelationDao.getExamOrganizationRelation(examId.longValue(), selfOrganId);
|
|
|
+ if(Objects.isNull(examOrganizationRelation)){
|
|
|
+ throw new BizException("数据异常");
|
|
|
+ }
|
|
|
+ if(examOrganizationRelation.getSendUrlFlag()==0){
|
|
|
+ throw new BizException("发送失败");
|
|
|
+ }
|
|
|
|
|
|
List<ExamOrganizationRelation> examOrgans = examOrganizationRelationDao.getExamOrganizationRelations(examId.longValue(), childOrganIds);
|
|
|
Set<Integer> existOrganizationIds = examOrgans.stream().map(ExamOrganizationRelation::getOrganId).collect(Collectors.toSet());
|