|
@@ -17,6 +17,7 @@ import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
import com.ym.mec.thirdparty.message.MessageSenderPluginContext;
|
|
import com.ym.mec.thirdparty.message.MessageSenderPluginContext;
|
|
import com.ym.mec.util.collection.MapUtil;
|
|
import com.ym.mec.util.collection.MapUtil;
|
|
import com.ym.mec.util.date.DateUtil;
|
|
import com.ym.mec.util.date.DateUtil;
|
|
|
|
+import com.ym.mec.util.http.HttpUtil;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.apache.commons.lang3.StringUtils;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -170,10 +171,10 @@ public class MusicGroupSchoolTermCourseDetailServiceImpl extends BaseServiceImpl
|
|
@Override
|
|
@Override
|
|
@Transactional(rollbackFor = Exception.class)
|
|
@Transactional(rollbackFor = Exception.class)
|
|
public void musicSchoolTermPush() {
|
|
public void musicSchoolTermPush() {
|
|
-// Object o = redisCache.get("musicSchoolTermPush");
|
|
|
|
-// if(o != null){
|
|
|
|
-// return;
|
|
|
|
-// }
|
|
|
|
|
|
+ Object o = redisCache.get("musicSchoolTermPush");
|
|
|
|
+ if(o != null){
|
|
|
|
+ return;
|
|
|
|
+ }
|
|
String remindCourseTime = sysConfigDao.findConfigValue(SysConfigService.REMIND_COURSE_TIME);
|
|
String remindCourseTime = sysConfigDao.findConfigValue(SysConfigService.REMIND_COURSE_TIME);
|
|
if(StringUtils.isEmpty(remindCourseTime)){
|
|
if(StringUtils.isEmpty(remindCourseTime)){
|
|
remindCourseTime = "14";
|
|
remindCourseTime = "14";
|
|
@@ -323,7 +324,7 @@ public class MusicGroupSchoolTermCourseDetailServiceImpl extends BaseServiceImpl
|
|
}
|
|
}
|
|
MusicGroupPaymentCalender calender = musicGroupPaymentCalenderService.findByBatchNo(batchNo).get(0);
|
|
MusicGroupPaymentCalender calender = musicGroupPaymentCalenderService.findByBatchNo(batchNo).get(0);
|
|
Set<Integer> userIdList = Arrays.stream(studentMusicMap.get(musicGroupId).split(",")).map(Integer::new).collect(Collectors.toSet());
|
|
Set<Integer> userIdList = Arrays.stream(studentMusicMap.get(musicGroupId).split(",")).map(Integer::new).collect(Collectors.toSet());
|
|
- musicGroupPaymentCalenderDetailService.batchAdd(calender.getId(),userIdList,musicGroup);
|
|
|
|
|
|
+ musicGroupPaymentCalenderDetailService.batchAdd(calender.getId(),userIdList,musicGroup,true);
|
|
Map<Integer, String> studentPhoneMap = MapUtil.convertMybatisMap(teacherDao.queryPhoneByIds(studentMusicMap.get(musicGroupId)));
|
|
Map<Integer, String> studentPhoneMap = MapUtil.convertMybatisMap(teacherDao.queryPhoneByIds(studentMusicMap.get(musicGroupId)));
|
|
Map<Integer,String> userMap = new HashMap<>(userIdList.size());
|
|
Map<Integer,String> userMap = new HashMap<>(userIdList.size());
|
|
Map<Integer,String> userMap1 = new HashMap<>(userIdList.size());
|
|
Map<Integer,String> userMap1 = new HashMap<>(userIdList.size());
|
|
@@ -338,7 +339,7 @@ public class MusicGroupSchoolTermCourseDetailServiceImpl extends BaseServiceImpl
|
|
userMap,
|
|
userMap,
|
|
null,
|
|
null,
|
|
0,
|
|
0,
|
|
- pushUrl,
|
|
|
|
|
|
+ HttpUtil.getSortUrl(pushUrl),
|
|
null,memberName,autoCreateMemberRenew,pushUrl);
|
|
null,memberName,autoCreateMemberRenew,pushUrl);
|
|
|
|
|
|
sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG,
|
|
sysMessageService.batchSendMessage(MessageSenderPluginContext.MessageSender.JIGUANG,
|