|
@@ -1,9 +1,6 @@
|
|
package com.ym.mec.biz.service.impl;
|
|
package com.ym.mec.biz.service.impl;
|
|
|
|
|
|
-import com.ym.mec.biz.dal.dao.MusicGroupDao;
|
|
|
|
-import com.ym.mec.biz.dal.dao.MusicGroupPaymentCalenderDao;
|
|
|
|
-import com.ym.mec.biz.dal.dao.MusicGroupPaymentCalenderDetailDao;
|
|
|
|
-import com.ym.mec.biz.dal.dao.MusicGroupStudentFeeDao;
|
|
|
|
|
|
+import com.ym.mec.biz.dal.dao.*;
|
|
import com.ym.mec.biz.dal.entity.MusicGroup;
|
|
import com.ym.mec.biz.dal.entity.MusicGroup;
|
|
import com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender;
|
|
import com.ym.mec.biz.dal.entity.MusicGroupPaymentCalender;
|
|
import com.ym.mec.biz.dal.entity.MusicGroupPaymentCalenderDetail;
|
|
import com.ym.mec.biz.dal.entity.MusicGroupPaymentCalenderDetail;
|
|
@@ -14,6 +11,7 @@ import com.ym.mec.biz.dal.enums.MessageTypeEnum;
|
|
import com.ym.mec.biz.dal.enums.PaymentStatusEnum;
|
|
import com.ym.mec.biz.dal.enums.PaymentStatusEnum;
|
|
import com.ym.mec.biz.dal.page.MusicCalenderQueryInfo;
|
|
import com.ym.mec.biz.dal.page.MusicCalenderQueryInfo;
|
|
import com.ym.mec.biz.service.MusicGroupPaymentCalenderService;
|
|
import com.ym.mec.biz.service.MusicGroupPaymentCalenderService;
|
|
|
|
+import com.ym.mec.biz.service.SysConfigService;
|
|
import com.ym.mec.biz.service.SysMessageService;
|
|
import com.ym.mec.biz.service.SysMessageService;
|
|
import com.ym.mec.common.dal.BaseDAO;
|
|
import com.ym.mec.common.dal.BaseDAO;
|
|
import com.ym.mec.common.exception.BizException;
|
|
import com.ym.mec.common.exception.BizException;
|
|
@@ -48,6 +46,8 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
@Autowired
|
|
@Autowired
|
|
private MusicGroupDao musicGroupDao;
|
|
private MusicGroupDao musicGroupDao;
|
|
@Autowired
|
|
@Autowired
|
|
|
|
+ private SysConfigDao sysConfigDao;
|
|
|
|
+ @Autowired
|
|
private SysMessageService sysMessageService;
|
|
private SysMessageService sysMessageService;
|
|
|
|
|
|
@Override
|
|
@Override
|
|
@@ -134,7 +134,8 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
push.put(userId, userId + "");
|
|
push.put(userId, userId + "");
|
|
}
|
|
}
|
|
MusicGroup musicGroup = musicGroupDao.get(musicGroupPaymentCalender.getMusicGroupId());
|
|
MusicGroup musicGroup = musicGroupDao.get(musicGroupPaymentCalender.getMusicGroupId());
|
|
- String memo = "4?http://mstuonline.dayaedu.com/#/renew?musicGroupId=" + musicGroup.getId();
|
|
|
|
|
|
+ String configValue = sysConfigDao.findConfigValue(SysConfigService.BASE_API_URL);
|
|
|
|
+ String memo = "4?" + configValue + "/#/renew?musicGroupId=" + musicGroup.getId();
|
|
// 发送续费通知
|
|
// 发送续费通知
|
|
sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG, MessageTypeEnum.STUDENT_PUSH_WAIT_RENEW_MESSAGE, push,
|
|
sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG, MessageTypeEnum.STUDENT_PUSH_WAIT_RENEW_MESSAGE, push,
|
|
null, 0, memo, "STUDENT", musicGroup.getName());
|
|
null, 0, memo, "STUDENT", musicGroup.getName());
|
|
@@ -224,7 +225,8 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
|
|
push.put(userId, userId + "");
|
|
push.put(userId, userId + "");
|
|
}
|
|
}
|
|
MusicGroup musicGroup = musicGroupDao.get(mgpc.getMusicGroupId());
|
|
MusicGroup musicGroup = musicGroupDao.get(mgpc.getMusicGroupId());
|
|
- String memo = "4?http://mstuonline.dayaedu.com/#/renew?musicGroupId=" + musicGroup.getId();
|
|
|
|
|
|
+ String baseUrl = sysConfigDao.findConfigValue(SysConfigService.BASE_API_URL);
|
|
|
|
+ String memo = "4?" + baseUrl + "/#/renew?musicGroupId=" + musicGroup.getId();
|
|
// 发送续费通知
|
|
// 发送续费通知
|
|
sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG, MessageTypeEnum.STUDENT_PUSH_WAIT_RENEW_MESSAGE, push,
|
|
sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG, MessageTypeEnum.STUDENT_PUSH_WAIT_RENEW_MESSAGE, push,
|
|
null, 0, memo, "STUDENT", musicGroup.getName());
|
|
null, 0, memo, "STUDENT", musicGroup.getName());
|