|
@@ -1,6 +1,7 @@
|
|
|
package com.keao.edu.user.service.impl;
|
|
|
|
|
|
|
|
|
+import com.keao.edu.auth.api.entity.SysUser;
|
|
|
import com.keao.edu.common.dal.BaseDAO;
|
|
|
import com.keao.edu.common.enums.MessageTypeEnum;
|
|
|
import com.keao.edu.common.exception.BizException;
|
|
@@ -60,6 +61,8 @@ public class ExamRegistrationServiceImpl extends BaseServiceImpl<Long, ExamRegis
|
|
|
private OrganizationDao organizationDao;
|
|
|
@Autowired
|
|
|
private SysMessageService sysMessageService;
|
|
|
+ @Autowired
|
|
|
+ private SysUserDao sysUserDao;
|
|
|
|
|
|
@Override
|
|
|
public BaseDAO<Long, ExamRegistration> getDAO() {
|
|
@@ -292,8 +295,12 @@ public class ExamRegistrationServiceImpl extends BaseServiceImpl<Long, ExamRegis
|
|
|
}else if(StudentRegistrationStatusEnum.AUDIT_REJECT.equals(examRegistration.getStatus())){
|
|
|
sysMessageService.batchSendMessage(MessageTypeEnum.REGIST_REJECT_PUSH,
|
|
|
receiverMap, null, 0, null, JiguangPushPlugin.PLUGIN_NAME);
|
|
|
+
|
|
|
+ SysUser student = sysUserDao.get(er.getStudentId());
|
|
|
+ Map<Integer, String> phoneMap = new HashMap<>(1);
|
|
|
+ phoneMap.put(er.getStudentId(), student.getPhone());
|
|
|
sysMessageService.batchSendMessage(MessageTypeEnum.REGIST_REJECT_SMS,
|
|
|
- receiverMap, null, 0, null, YimeiSmsPlugin.PLUGIN_NAME);
|
|
|
+ phoneMap, null, 0, null, YimeiSmsPlugin.PLUGIN_NAME);
|
|
|
}
|
|
|
examRegistrationDao.update(examRegistration);
|
|
|
}
|