|
@@ -4,6 +4,7 @@ package com.keao.edu.user.service.impl;
|
|
|
import com.keao.edu.auth.api.client.SysUserFeignService;
|
|
|
import com.keao.edu.auth.api.entity.SysUser;
|
|
|
import com.keao.edu.common.dal.BaseDAO;
|
|
|
+import com.keao.edu.common.entity.SysConfig;
|
|
|
import com.keao.edu.common.enums.MessageTypeEnum;
|
|
|
import com.keao.edu.common.exception.BizException;
|
|
|
import com.keao.edu.common.page.PageInfo;
|
|
@@ -22,10 +23,7 @@ import com.keao.edu.user.enums.TransStatusEnum;
|
|
|
import com.keao.edu.user.page.ApplyListQueryInfo;
|
|
|
import com.keao.edu.user.page.ExamRecordQueryInfo;
|
|
|
import com.keao.edu.user.page.ExamRegistrationQueryInfo;
|
|
|
-import com.keao.edu.user.service.ExamRegistrationPaymentService;
|
|
|
-import com.keao.edu.user.service.ExamRegistrationService;
|
|
|
-import com.keao.edu.user.service.OrganizationService;
|
|
|
-import com.keao.edu.user.service.PayService;
|
|
|
+import com.keao.edu.user.service.*;
|
|
|
import com.keao.edu.util.collection.MapUtil;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -64,6 +62,8 @@ public class ExamRegistrationServiceImpl extends BaseServiceImpl<Long, ExamRegis
|
|
|
private SysUserDao sysUserDao;
|
|
|
@Autowired
|
|
|
private SysUserFeignService sysUserFeignService;
|
|
|
+ @Autowired
|
|
|
+ private SysConfigService sysConfigService;
|
|
|
|
|
|
@Override
|
|
|
public BaseDAO<Long, ExamRegistration> getDAO() {
|
|
@@ -286,6 +286,14 @@ public class ExamRegistrationServiceImpl extends BaseServiceImpl<Long, ExamRegis
|
|
|
}
|
|
|
er.setStatus(status);
|
|
|
er.setMemo(memo);
|
|
|
+
|
|
|
+ SysConfig baseUrlConfig = sysConfigService.findByParamName(SysConfigService.BASE_API_URL);
|
|
|
+ String baseUrl="";
|
|
|
+ if(Objects.nonNull(baseUrlConfig)){
|
|
|
+ baseUrl=baseUrlConfig.getParanValue();
|
|
|
+ }
|
|
|
+ baseUrl = "1?" + baseUrl+"/#/appDetail?id=" + registId;
|
|
|
+
|
|
|
Map<Integer, String> receiverMap = new HashMap<>(1);
|
|
|
receiverMap.put(er.getStudentId(), er.getStudentId().toString());
|
|
|
if(StudentRegistrationStatusEnum.AUDIT_PASS.equals(er.getStatus())){
|
|
@@ -293,7 +301,7 @@ public class ExamRegistrationServiceImpl extends BaseServiceImpl<Long, ExamRegis
|
|
|
receiverMap, null, 0, null, JiguangPushPlugin.PLUGIN_NAME);
|
|
|
}else if(StudentRegistrationStatusEnum.AUDIT_REJECT.equals(er.getStatus())){
|
|
|
sysMessageService.batchSendMessage(MessageTypeEnum.REGIST_REJECT_PUSH,
|
|
|
- receiverMap, null, 0, null, JiguangPushPlugin.PLUGIN_NAME);
|
|
|
+ receiverMap, null, 0, baseUrl, JiguangPushPlugin.PLUGIN_NAME);
|
|
|
|
|
|
SysUser student = sysUserDao.get(er.getStudentId());
|
|
|
Map<Integer, String> phoneMap = new HashMap<>(1);
|