|
@@ -12,6 +12,7 @@ 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;
|
|
|
import com.keao.edu.user.dto.ExamOrganizationRelationExtraDto;
|
|
@@ -340,7 +341,7 @@ public class ExamOrganizationRelationServiceImpl extends BaseServiceImpl<Long, E
|
|
|
userPhoneMap.put(examOrgan.getOrganId(), organUser.getPhone());
|
|
|
|
|
|
sysMessageService.batchSendMessage(MessageTypeEnum.EXAM_REGISTRATION_URL_SMS,
|
|
|
- userPhoneMap, null, 0, null, JiguangPushPlugin.PLUGIN_NAME,
|
|
|
+ userPhoneMap, null, 0, null, YimeiSmsPlugin.PLUGIN_NAME,
|
|
|
tenantInfo.getName(), examinationBasic.getName(), expectRegistTime.toString(), examOrgan.getUrl());
|
|
|
}
|
|
|
|
|
@@ -357,6 +358,26 @@ public class ExamOrganizationRelationServiceImpl extends BaseServiceImpl<Long, E
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ @Transactional(rollbackFor = Exception.class)
|
|
|
+ public void examStatusChangePush(Long examId, ExamStatusEnum examStatus) {
|
|
|
+ if(Objects.isNull(examId)||Objects.isNull(examStatus)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ ExaminationBasic exam = examinationBasicDao.get(examId);
|
|
|
+ if(Objects.isNull(exam)){
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ TenantInfo tenantInfo = tenantInfoDao.getWithOrgan(exam.getOrganId());
|
|
|
+ SysUser organUser = sysUserDao.getWithOrgan(exam.getOrganId());
|
|
|
+ Map<Integer, String> userPhoneMap = new HashMap<>();
|
|
|
+ userPhoneMap.put(organUser.getId(), organUser.getPhone());
|
|
|
+
|
|
|
+ sysMessageService.batchSendMessage(MessageTypeEnum.EXAM_REGISTRATION_CLOSE_SMS,
|
|
|
+ userPhoneMap, null, 0, null, YimeiSmsPlugin.PLUGIN_NAME,
|
|
|
+ tenantInfo.getName(), exam.getName());
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
public ExamOrganStatisticsDto getExamOrganStatistics(Integer organId, Long examId) {
|
|
|
if(Objects.isNull(examId)){
|
|
|
throw new BizException("请指定考级项目");
|