Joburgess 5 年之前
父節點
當前提交
4cf15590eb

+ 9 - 1
edu-user/edu-user-server/src/main/java/com/keao/edu/user/service/impl/ExamOrganizationRelationServiceImpl.java

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