|
@@ -1,6 +1,5 @@
|
|
|
package com.keao.edu.user.service.impl;
|
|
|
|
|
|
-import cfca.sadk.org.bouncycastle.apache.bzip2.BZip2Constants;
|
|
|
import com.keao.edu.auth.api.client.SysUserFeignService;
|
|
|
import com.keao.edu.auth.api.entity.SysUser;
|
|
|
import com.keao.edu.common.dal.BaseDAO;
|
|
@@ -11,7 +10,6 @@ import com.keao.edu.common.page.PageInfo;
|
|
|
import com.keao.edu.common.service.SysMessageService;
|
|
|
import com.keao.edu.common.service.impl.BaseServiceImpl;
|
|
|
import com.keao.edu.common.tenant.TenantContextHolder;
|
|
|
-import com.keao.edu.thirdparty.message.provider.JiguangPushPlugin;
|
|
|
import com.keao.edu.thirdparty.message.provider.YimeiSmsPlugin;
|
|
|
import com.keao.edu.user.dao.*;
|
|
|
import com.keao.edu.user.dto.ExamOrganStatisticsDto;
|
|
@@ -27,7 +25,6 @@ import com.keao.edu.user.service.ShortUrlService;
|
|
|
import com.keao.edu.user.service.SysConfigService;
|
|
|
import com.keao.edu.util.collection.MapUtil;
|
|
|
import com.keao.edu.util.date.DateUtil;
|
|
|
-import org.apache.commons.beanutils.BeanUtils;
|
|
|
import org.apache.commons.lang3.StringUtils;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -35,7 +32,6 @@ import org.springframework.transaction.annotation.Isolation;
|
|
|
import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
-import java.lang.reflect.InvocationTargetException;
|
|
|
import java.math.BigDecimal;
|
|
|
import java.time.LocalDate;
|
|
|
import java.util.*;
|
|
@@ -204,7 +200,6 @@ public class ExamOrganizationRelationServiceImpl extends BaseServiceImpl<Long, E
|
|
|
throw new BizException("合作单位信息错误");
|
|
|
}
|
|
|
|
|
|
- Map<Integer, Organization> idOrganMap = organs.stream().collect(Collectors.toMap(Organization::getId, o -> o));
|
|
|
for (ExamOrganizationRelation og : organizationRelations) {
|
|
|
if(organIdsWithExam.contains(og.getOrganId())){
|
|
|
throw new BizException("合作单位冲突");
|
|
@@ -234,6 +229,7 @@ public class ExamOrganizationRelationServiceImpl extends BaseServiceImpl<Long, E
|
|
|
og.setSelfPaymentAmount(BigDecimal.ZERO);
|
|
|
}
|
|
|
examOrganizationRelationDao.batchInsert(organizationRelations);
|
|
|
+ sendUrl(examOrganizationRelation.getId().intValue(), selfOrganId);
|
|
|
}
|
|
|
|
|
|
@Override
|
|
@@ -286,8 +282,6 @@ public class ExamOrganizationRelationServiceImpl extends BaseServiceImpl<Long, E
|
|
|
throw new BizException("请指定考级项目");
|
|
|
}
|
|
|
|
|
|
- List<Integer> childOrganIds = organizationService.getNextLevelOrganIds(selfOrganId, false);
|
|
|
-
|
|
|
ExamOrganStatisticsDto examOrganizationRelation = examOrganizationRelationDao.getExamOrganizationRelation(examId.longValue(), selfOrganId);
|
|
|
if(Objects.isNull(examOrganizationRelation)){
|
|
|
throw new BizException("数据异常");
|
|
@@ -296,8 +290,7 @@ public class ExamOrganizationRelationServiceImpl extends BaseServiceImpl<Long, E
|
|
|
throw new BizException("发送失败");
|
|
|
}
|
|
|
|
|
|
- List<ExamOrganizationRelation> examOrgans = examOrganizationRelationDao.getExamOrganizationRelations(examId.longValue(), childOrganIds);
|
|
|
- Set<Integer> existOrganizationIds = examOrgans.stream().map(ExamOrganizationRelation::getOrganId).collect(Collectors.toSet());
|
|
|
+ List<ExamOrganizationRelation> examOrgans = examOrganizationRelationDao.getExamOrganizationRelations(examId.longValue(), null);
|
|
|
|
|
|
ExaminationBasic examinationBasic = examinationBasicDao.get(examId.longValue());
|
|
|
if(Objects.isNull(examinationBasic)){
|