|
@@ -91,6 +91,7 @@ import com.zhongzheng.modules.mock.service.IMockMajorSubjectTimeService;
|
|
import com.zhongzheng.modules.mock.vo.MockApplyVo;
|
|
import com.zhongzheng.modules.mock.vo.MockApplyVo;
|
|
import com.zhongzheng.modules.order.bo.OrderQueryBo;
|
|
import com.zhongzheng.modules.order.bo.OrderQueryBo;
|
|
import com.zhongzheng.modules.order.domain.Order;
|
|
import com.zhongzheng.modules.order.domain.Order;
|
|
|
|
+import com.zhongzheng.modules.order.domain.OrderGoods;
|
|
import com.zhongzheng.modules.order.mapper.OrderGoodsMapper;
|
|
import com.zhongzheng.modules.order.mapper.OrderGoodsMapper;
|
|
import com.zhongzheng.modules.order.mapper.OrderMapper;
|
|
import com.zhongzheng.modules.order.mapper.OrderMapper;
|
|
import com.zhongzheng.modules.order.service.IOrderBusinessService;
|
|
import com.zhongzheng.modules.order.service.IOrderBusinessService;
|
|
@@ -126,6 +127,7 @@ import net.polyv.common.v1.util.StringUtils;
|
|
import net.polyv.live.v1.entity.channel.playback.LiveChannelVideoListResponse;
|
|
import net.polyv.live.v1.entity.channel.playback.LiveChannelVideoListResponse;
|
|
import net.polyv.live.v1.entity.channel.playback.LiveListChannelSessionInfoResponse;
|
|
import net.polyv.live.v1.entity.channel.playback.LiveListChannelSessionInfoResponse;
|
|
import net.polyv.live.v1.entity.channel.playback.LiveListChannelVideoLibraryResponse;
|
|
import net.polyv.live.v1.entity.channel.playback.LiveListChannelVideoLibraryResponse;
|
|
|
|
+import org.apache.commons.lang3.time.DateFormatUtils;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
@@ -355,6 +357,8 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
//查找购买后没发送消息的商品,发送购买消息
|
|
//查找购买后没发送消息的商品,发送购买消息
|
|
List<OrderGoodsVo> orderGoodsVo = iOrderGoodsService.selectOrderGoods();
|
|
List<OrderGoodsVo> orderGoodsVo = iOrderGoodsService.selectOrderGoods();
|
|
InformRemindVo informRemindTwoVo = informRemindService.queryByName("商品购买成功需填写资料");
|
|
InformRemindVo informRemindTwoVo = informRemindService.queryByName("商品购买成功需填写资料");
|
|
|
|
+ //需求通知E管证的订单集合
|
|
|
|
+ List<OrderGoodsVo> voList = new ArrayList<>();
|
|
if (!CollectionUtils.isEmpty(orderGoodsVo)) {
|
|
if (!CollectionUtils.isEmpty(orderGoodsVo)) {
|
|
for (OrderGoodsVo goodsVo : orderGoodsVo) {
|
|
for (OrderGoodsVo goodsVo : orderGoodsVo) {
|
|
ProfileTpVo profileTpVo = iProfileTpService.queryByGoodsId(goodsVo.getGoodsId());
|
|
ProfileTpVo profileTpVo = iProfileTpService.queryByGoodsId(goodsVo.getGoodsId());
|
|
@@ -373,6 +377,9 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
informUserAddBo.setOrderGoodsId(goodsVo.getOrderGoodsId());
|
|
informUserAddBo.setOrderGoodsId(goodsVo.getOrderGoodsId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(goodsVo.getGoodsId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(goodsVo.getGoodsId());
|
|
informUserAddBo.setText("尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "已经开通,请尽快去学习吧。");
|
|
informUserAddBo.setText("尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "已经开通,请尽快去学习吧。");
|
|
|
|
+ goodsVo.setContext("尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "已经开通,请尽快去学习吧。");
|
|
|
|
+ goodsVo.setGoodsName(goodsVo1.getGoodsName());
|
|
|
|
+ voList.add(goodsVo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
}
|
|
}
|
|
if (informRemindTwoVo.getWayStatus() == 1 && profileTpVo != null) {
|
|
if (informRemindTwoVo.getWayStatus() == 1 && profileTpVo != null) {
|
|
@@ -390,6 +397,9 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
informUserAddBo.setOrderGoodsId(goodsVo.getOrderGoodsId());
|
|
informUserAddBo.setOrderGoodsId(goodsVo.getOrderGoodsId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(goodsVo.getGoodsId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(goodsVo.getGoodsId());
|
|
informUserAddBo.setText("尊敬的用户:已为您开通了" + goodsVo1.getGoodsName() + "课程,本课程需完善信息方可学习,请尽快去完善资料吧。");
|
|
informUserAddBo.setText("尊敬的用户:已为您开通了" + goodsVo1.getGoodsName() + "课程,本课程需完善信息方可学习,请尽快去完善资料吧。");
|
|
|
|
+ goodsVo.setContext("尊敬的用户:已为您开通了" + goodsVo1.getGoodsName() + "课程,本课程需完善信息方可学习,请尽快去完善资料吧。");
|
|
|
|
+ goodsVo.setGoodsName(goodsVo1.getGoodsName());
|
|
|
|
+ voList.add(goodsVo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -421,7 +431,11 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
if (Validator.isNotEmpty(rb)) {
|
|
if (Validator.isNotEmpty(rb)) {
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
}
|
|
}
|
|
-
|
|
|
|
|
|
+ if (voList.stream().allMatch(x -> !x.getGoodsId().equals(goodsVo.getGoodsId()))){
|
|
|
|
+ goodsVo.setContext("尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "已经开通,请尽快去学习吧。");
|
|
|
|
+ goodsVo.setGoodsName(goodsVo1.getGoodsName());
|
|
|
|
+ voList.add(goodsVo);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
if (informRemindTwoVo.getNoteStatus() == 1 && profileTpVo != null) {
|
|
if (informRemindTwoVo.getNoteStatus() == 1 && profileTpVo != null) {
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
@@ -446,9 +460,24 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
if (Validator.isNotEmpty(rb)) {
|
|
if (Validator.isNotEmpty(rb)) {
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
}
|
|
}
|
|
|
|
+ if (voList.stream().allMatch(x -> !x.getGoodsId().equals(goodsVo.getGoodsId()))){
|
|
|
|
+ goodsVo.setContext("尊敬的用户:已为您开通了" + goodsVo1.getGoodsName() + "课程,本课程需完善信息方可学习,请尽快去完善资料吧。");
|
|
|
|
+ goodsVo.setGoodsName(goodsVo1.getGoodsName());
|
|
|
|
+ voList.add(goodsVo);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ if (!CollectionUtils.isEmpty(voList)){
|
|
|
|
+ //通知E管证
|
|
|
|
+ voList.forEach(item -> {
|
|
|
|
+ iGoodsService.informOldSys(item.getUserId(),item.getGoodsId(),item.getOrderGoodsId(),
|
|
|
|
+ item.getGradeId(),2,item.getContext(),
|
|
|
|
+ Arrays.asList(item.getGoodsName(),"已开通", DateFormatUtils.format(new Date(), "yyyy/MM/dd"),item.getContext()));
|
|
|
|
+ });
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+
|
|
//同步用户购买商品的考试次数和前培次数
|
|
//同步用户购买商品的考试次数和前培次数
|
|
// sendGoods();
|
|
// sendGoods();
|
|
return "请求成功";
|
|
return "请求成功";
|
|
@@ -504,7 +533,8 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
Date dateEnd = new Date(timeEndId);
|
|
Date dateEnd = new Date(timeEndId);
|
|
res = simpleDateFormat.format(date);
|
|
res = simpleDateFormat.format(date);
|
|
resEnd = simpleDateFormat.format(dateEnd);
|
|
resEnd = simpleDateFormat.format(dateEnd);
|
|
-
|
|
|
|
|
|
+ String context = "";
|
|
|
|
+ String goodsName = "";
|
|
if (informTwentyRemindVo.getWayStatus().equals(1)) {
|
|
if (informTwentyRemindVo.getWayStatus().equals(1)) {
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
informUserAddBo.setUserId(classTwentyGradeUserVo.getUserId());
|
|
informUserAddBo.setUserId(classTwentyGradeUserVo.getUserId());
|
|
@@ -520,6 +550,8 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(classTwentyGradeUserVo.getGoodsId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(classTwentyGradeUserVo.getGoodsId());
|
|
informUserAddBo.setText("尊敬的用户:您购买的课程班级有效期还剩20天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
informUserAddBo.setText("尊敬的用户:您购买的课程班级有效期还剩20天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
+ context ="尊敬的用户:您购买的课程班级有效期还剩20天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习";
|
|
|
|
+ goodsName = goodsVo1.getGoodsName();
|
|
}
|
|
}
|
|
if (informTwentyRemindVo.getNoteStatus().equals(1)) {
|
|
if (informTwentyRemindVo.getNoteStatus().equals(1)) {
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
@@ -535,6 +567,8 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
informUserAddBo.setGradeId(classTwentyGradeUserVo.getGradeId());
|
|
informUserAddBo.setGradeId(classTwentyGradeUserVo.getGradeId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(classTwentyGradeUserVo.getGoodsId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(classTwentyGradeUserVo.getGoodsId());
|
|
informUserAddBo.setText("尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "课程班级有效期还剩20天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
informUserAddBo.setText("尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "课程班级有效期还剩20天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
|
|
+ context = "尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "课程班级有效期还剩20天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习";
|
|
|
|
+ goodsName = goodsVo1.getGoodsName();
|
|
UserVo userVo = iUserService.queryById(classTwentyGradeUserVo.getUserId());
|
|
UserVo userVo = iUserService.queryById(classTwentyGradeUserVo.getUserId());
|
|
Map<String, Object> param = new HashMap<>();
|
|
Map<String, Object> param = new HashMap<>();
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
@@ -544,6 +578,11 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //E管证督学通知
|
|
|
|
+ if (informTwentyRemindVo.getNoteStatus().equals(1) || informTwentyRemindVo.getGzhTpStatus().equals(1) || informTwentyRemindVo.getWayStatus().equals(1)){
|
|
|
|
+ iGoodsService.informOldSys(classTwentyGradeUserVo.getUserId(),classTwentyGradeUserVo.getGoodsId(),classTwentyGradeUserVo.getOrderGoodsId(),
|
|
|
|
+ classTwentyGradeUserVo.getGradeId(),9,context, Arrays.asList(goodsName, resEnd,context));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
for (ClassGradeUserGoodsVo classTenGradeUserVo : classTenGradeUserVos) {
|
|
for (ClassGradeUserGoodsVo classTenGradeUserVo : classTenGradeUserVos) {
|
|
@@ -556,7 +595,8 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
Date dateEnd = new Date(timeEndId);
|
|
Date dateEnd = new Date(timeEndId);
|
|
res = simpleDateFormat.format(date);
|
|
res = simpleDateFormat.format(date);
|
|
resEnd = simpleDateFormat.format(dateEnd);
|
|
resEnd = simpleDateFormat.format(dateEnd);
|
|
-
|
|
|
|
|
|
+ String context = "";
|
|
|
|
+ String goodsName = "";
|
|
if (informTenRemindVo.getWayStatus().equals(1)) {
|
|
if (informTenRemindVo.getWayStatus().equals(1)) {
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
informUserAddBo.setUserId(classTenGradeUserVo.getUserId());
|
|
informUserAddBo.setUserId(classTenGradeUserVo.getUserId());
|
|
@@ -572,6 +612,8 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(classTenGradeUserVo.getGoodsId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(classTenGradeUserVo.getGoodsId());
|
|
informUserAddBo.setText("尊敬的用户:您购买的课程班级有效期还剩10天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
informUserAddBo.setText("尊敬的用户:您购买的课程班级有效期还剩10天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
+ context = "尊敬的用户:您购买的课程班级有效期还剩10天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习";
|
|
|
|
+ goodsName = goodsVo1.getGoodsName();
|
|
}
|
|
}
|
|
if (informTenRemindVo.getNoteStatus().equals(1)) {
|
|
if (informTenRemindVo.getNoteStatus().equals(1)) {
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
@@ -587,7 +629,8 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
informUserAddBo.setGradeId(classTenGradeUserVo.getGradeId());
|
|
informUserAddBo.setGradeId(classTenGradeUserVo.getGradeId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(classTenGradeUserVo.getGoodsId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(classTenGradeUserVo.getGoodsId());
|
|
informUserAddBo.setText("尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "课程班级有效期还剩10天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
informUserAddBo.setText("尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "课程班级有效期还剩10天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
-
|
|
|
|
|
|
+ context = "尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "课程班级有效期还剩10天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习";
|
|
|
|
+ goodsName = goodsVo1.getGoodsName();
|
|
UserVo userVo = iUserService.queryById(classTenGradeUserVo.getUserId());
|
|
UserVo userVo = iUserService.queryById(classTenGradeUserVo.getUserId());
|
|
Map<String, Object> param = new HashMap<>();
|
|
Map<String, Object> param = new HashMap<>();
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
@@ -596,6 +639,12 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
if (Validator.isNotEmpty(IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), remainingDaysValidityCode))) {
|
|
if (Validator.isNotEmpty(IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), remainingDaysValidityCode))) {
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ }
|
|
|
|
+ //E管证督学通知
|
|
|
|
+ if (informTwentyRemindVo.getNoteStatus().equals(1) || informTwentyRemindVo.getGzhTpStatus().equals(1) || informTwentyRemindVo.getWayStatus().equals(1)){
|
|
|
|
+ iGoodsService.informOldSys(classTenGradeUserVo.getUserId(),classTenGradeUserVo.getGoodsId(),classTenGradeUserVo.getOrderGoodsId(),
|
|
|
|
+ classTenGradeUserVo.getGradeId(),9,context, Arrays.asList(goodsName, resEnd,context));
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -609,7 +658,8 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
Date dateEnd = new Date(timeEndId);
|
|
Date dateEnd = new Date(timeEndId);
|
|
res = simpleDateFormat.format(date);
|
|
res = simpleDateFormat.format(date);
|
|
resEnd = simpleDateFormat.format(dateEnd);
|
|
resEnd = simpleDateFormat.format(dateEnd);
|
|
-
|
|
|
|
|
|
+ String context = "";
|
|
|
|
+ String goodsName = "";
|
|
if (informTenRemindVo.getWayStatus().equals(1)) {
|
|
if (informTenRemindVo.getWayStatus().equals(1)) {
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
informUserAddBo.setUserId(classFiveGradeUserVo.getUserId());
|
|
informUserAddBo.setUserId(classFiveGradeUserVo.getUserId());
|
|
@@ -625,6 +675,8 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(classFiveGradeUserVo.getGoodsId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(classFiveGradeUserVo.getGoodsId());
|
|
informUserAddBo.setText("尊敬的用户:您购买的课程班级有效期还剩5天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
informUserAddBo.setText("尊敬的用户:您购买的课程班级有效期还剩5天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
+ context = "尊敬的用户:您购买的课程班级有效期还剩5天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习";
|
|
|
|
+ goodsName = goodsVo1.getGoodsName();
|
|
}
|
|
}
|
|
if (informTenRemindVo.getNoteStatus().equals(1)) {
|
|
if (informTenRemindVo.getNoteStatus().equals(1)) {
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
@@ -640,6 +692,8 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
informUserAddBo.setGradeId(classFiveGradeUserVo.getGradeId());
|
|
informUserAddBo.setGradeId(classFiveGradeUserVo.getGradeId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(classFiveGradeUserVo.getGoodsId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(classFiveGradeUserVo.getGoodsId());
|
|
informUserAddBo.setText("尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "课程班级有效期还剩5天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
informUserAddBo.setText("尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "课程班级有效期还剩5天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
|
|
+ context = "尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "课程班级有效期还剩5天,未在" + resEnd + "前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习";
|
|
|
|
+ goodsName = goodsVo1.getGoodsName();
|
|
UserVo userVo = iUserService.queryById(classFiveGradeUserVo.getUserId());
|
|
UserVo userVo = iUserService.queryById(classFiveGradeUserVo.getUserId());
|
|
Map<String, Object> param = new HashMap<>();
|
|
Map<String, Object> param = new HashMap<>();
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
@@ -649,6 +703,12 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //E管证督学通知
|
|
|
|
+ if (informTwentyRemindVo.getNoteStatus().equals(1) || informTwentyRemindVo.getGzhTpStatus().equals(1) || informTwentyRemindVo.getWayStatus().equals(1)){
|
|
|
|
+ iGoodsService.informOldSys(classFiveGradeUserVo.getUserId(),classFiveGradeUserVo.getGoodsId(),classFiveGradeUserVo.getOrderGoodsId(),
|
|
|
|
+ classFiveGradeUserVo.getGradeId(),9,context, Arrays.asList(goodsName, resEnd,context));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -667,6 +727,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
res = simpleDateFormat.format(date);
|
|
res = simpleDateFormat.format(date);
|
|
String startTime = subscribeVo.getApplySiteStartTime();
|
|
String startTime = subscribeVo.getApplySiteStartTime();
|
|
String endTime = subscribeVo.getApplySiteEndTime();
|
|
String endTime = subscribeVo.getApplySiteEndTime();
|
|
|
|
+ String content = "";
|
|
if (informRemindVo.getWayStatus().equals(1)) {
|
|
if (informRemindVo.getWayStatus().equals(1)) {
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
informUserAddBo.setUserId(subscribeVo.getUserId());
|
|
informUserAddBo.setUserId(subscribeVo.getUserId());
|
|
@@ -682,6 +743,8 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(subscribeVo.getGoodsId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(subscribeVo.getGoodsId());
|
|
informUserAddBo.setText("尊敬的用户:您预约的施工现场专业人员" + goodsVo1.getGoodsName() + "考试将在" + res + "(" + startTime + "-" + endTime + ")进行," +
|
|
informUserAddBo.setText("尊敬的用户:您预约的施工现场专业人员" + goodsVo1.getGoodsName() + "考试将在" + res + "(" + startTime + "-" + endTime + ")进行," +
|
|
"考试地点:" + subscribeVo.getApplySiteAddress() + seatTxt);
|
|
"考试地点:" + subscribeVo.getApplySiteAddress() + seatTxt);
|
|
|
|
+ content = "尊敬的用户:您预约的施工现场专业人员" + goodsVo1.getGoodsName() + "考试将在" + res + "(" + startTime + "-" + endTime + ")进行," +
|
|
|
|
+ "考试地点:" + subscribeVo.getApplySiteAddress() + seatTxt;
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
}
|
|
}
|
|
if (informRemindVo.getNoteStatus().equals(1)) {
|
|
if (informRemindVo.getNoteStatus().equals(1)) {
|
|
@@ -699,6 +762,8 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(subscribeVo.getGoodsId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(subscribeVo.getGoodsId());
|
|
informUserAddBo.setText("尊敬的用户:您预约的施工现场专业人员" + goodsVo1.getGoodsName() + "考试将在" + res + "(" + startTime + "-" + endTime + ")进行," +
|
|
informUserAddBo.setText("尊敬的用户:您预约的施工现场专业人员" + goodsVo1.getGoodsName() + "考试将在" + res + "(" + startTime + "-" + endTime + ")进行," +
|
|
"考试地点:" + subscribeVo.getApplySiteAddress() + seatTxt);
|
|
"考试地点:" + subscribeVo.getApplySiteAddress() + seatTxt);
|
|
|
|
+ content = "尊敬的用户:您预约的施工现场专业人员" + goodsVo1.getGoodsName() + "考试将在" + res + "(" + startTime + "-" + endTime + ")进行," +
|
|
|
|
+ "考试地点:" + subscribeVo.getApplySiteAddress() + seatTxt;
|
|
UserVo userVo = iUserService.queryById(subscribeVo.getUserId());
|
|
UserVo userVo = iUserService.queryById(subscribeVo.getUserId());
|
|
Map<String, Object> param = new HashMap<>();
|
|
Map<String, Object> param = new HashMap<>();
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
@@ -723,6 +788,8 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(subscribeVo.getGoodsId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(subscribeVo.getGoodsId());
|
|
informUserAddBo.setText("尊敬的用户:您预约的施工现场专业人员" + goodsVo1.getGoodsName() + "考试将在" + res + "(" + startTime + "-" + endTime + ")进行," +
|
|
informUserAddBo.setText("尊敬的用户:您预约的施工现场专业人员" + goodsVo1.getGoodsName() + "考试将在" + res + "(" + startTime + "-" + endTime + ")进行," +
|
|
"考试地点:" + subscribeVo.getApplySiteAddress() + seatTxt);
|
|
"考试地点:" + subscribeVo.getApplySiteAddress() + seatTxt);
|
|
|
|
+ content = "尊敬的用户:您预约的施工现场专业人员" + goodsVo1.getGoodsName() + "考试将在" + res + "(" + startTime + "-" + endTime + ")进行," +
|
|
|
|
+ "考试地点:" + subscribeVo.getApplySiteAddress() + seatTxt;
|
|
UserVo userVo = iUserService.queryById(subscribeVo.getUserId());
|
|
UserVo userVo = iUserService.queryById(subscribeVo.getUserId());
|
|
Map<String, Object> param = new HashMap<>();
|
|
Map<String, Object> param = new HashMap<>();
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
@@ -740,6 +807,13 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
iWxLoginService.sendQdyExamTpMsg(userVo.getOpenId(),paramMap);
|
|
iWxLoginService.sendQdyExamTpMsg(userVo.getOpenId(),paramMap);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //E管证督学通知
|
|
|
|
+ if (informRemindVo.getNoteStatus().equals(1) || informRemindVo.getWayStatus().equals(1) || informRemindVo.getGzhTpStatus().equals(1)){
|
|
|
|
+ OrderGoods orderGoods = iOrderGoodsService.getById(subscribeVo.getOrderGoodsId());
|
|
|
|
+ iGoodsService.informOldSys(subscribeVo.getUserId(),subscribeVo.getGoodsId(),null,
|
|
|
|
+ null,6,content, Arrays.asList(subscribeVo.getApplyName(), startTime ,subscribeVo.getApplySiteAddress()));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -817,6 +891,16 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
iWxLoginService.sendSignatureTpMsg(userVo.getOpenId(),paramMap);
|
|
iWxLoginService.sendSignatureTpMsg(userVo.getOpenId(),paramMap);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //E管证督学通知
|
|
|
|
+ if (informRemindVo.getNoteStatus().equals(1) || informRemindVo.getWayStatus().equals(1) || informRemindVo.getGzhTpStatus().equals(1)){
|
|
|
|
+ String content = "尊敬的用户:您参加的"+subscribeVo.getApplyName()+"考试即将开始,您还没有在线上签署疫情防控承诺书。立即打开小程序签署承诺书!";
|
|
|
|
+ OrderGoods orderGoods = iOrderGoodsService.getById(subscribeVo.getOrderGoodsId());
|
|
|
|
+ User user = iUserService.getById(subscribeVo.getUserId());
|
|
|
|
+ Goods goods = iGoodsService.getById(subscribeVo.getGoodsId());
|
|
|
|
+ iGoodsService.informOldSys(subscribeVo.getUserId(),subscribeVo.getGoodsId(),subscribeVo.getOrderGoodsId(),
|
|
|
|
+ orderGoods.getGradeId(),3,content, Arrays.asList(user.getRealname(), goods.getGoodsName() ,"未签署疫情防控承诺书",content));
|
|
|
|
+ }
|
|
|
|
+
|
|
LambdaUpdateWrapper<UserSubscribe> objectLambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
|
LambdaUpdateWrapper<UserSubscribe> objectLambdaUpdateWrapper = Wrappers.lambdaUpdate();
|
|
objectLambdaUpdateWrapper.eq(UserSubscribe::getSubscribeId, subscribeVo.getSubscribeId());
|
|
objectLambdaUpdateWrapper.eq(UserSubscribe::getSubscribeId, subscribeVo.getSubscribeId());
|
|
objectLambdaUpdateWrapper.set(UserSubscribe::getSignaturePushTime,DateUtils.getNowTime());
|
|
objectLambdaUpdateWrapper.set(UserSubscribe::getSignaturePushTime,DateUtils.getNowTime());
|
|
@@ -1663,6 +1747,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
Long timeId = examUserApplyVo.getApplyEndTime() * 1000;
|
|
Long timeId = examUserApplyVo.getApplyEndTime() * 1000;
|
|
Date date = new Date(timeId);
|
|
Date date = new Date(timeId);
|
|
res = simpleDateFormat.format(date);
|
|
res = simpleDateFormat.format(date);
|
|
|
|
+ String content = "";
|
|
if (informRemindVo.getWayStatus().equals(1)) {
|
|
if (informRemindVo.getWayStatus().equals(1)) {
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
informUserAddBo.setUserId(examUserApplyVo.getUserId());
|
|
informUserAddBo.setUserId(examUserApplyVo.getUserId());
|
|
@@ -1677,6 +1762,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
informUserAddBo.setGradeId(examUserApplyVo.getGradeId());
|
|
informUserAddBo.setGradeId(examUserApplyVo.getGradeId());
|
|
informUserAddBo.setOrderGoodsId(examUserApplyVo.getOrderGoodsId());
|
|
informUserAddBo.setOrderGoodsId(examUserApplyVo.getOrderGoodsId());
|
|
informUserAddBo.setText("尊敬的用户:七大员新考考试预约已经开始,预约截至时间" + res + ",请马上点击进行预约考试。");
|
|
informUserAddBo.setText("尊敬的用户:七大员新考考试预约已经开始,预约截至时间" + res + ",请马上点击进行预约考试。");
|
|
|
|
+ content = "尊敬的用户:七大员新考考试预约已经开始,预约截至时间" + res + ",请马上点击进行预约考试。";
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
}
|
|
}
|
|
if (informRemindVo.getNoteStatus().equals(1)) {
|
|
if (informRemindVo.getNoteStatus().equals(1)) {
|
|
@@ -1700,6 +1786,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
if (Validator.isNotEmpty(IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), bookingReminder))) {
|
|
if (Validator.isNotEmpty(IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), bookingReminder))) {
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
}
|
|
}
|
|
|
|
+ content = "尊敬的用户:七大员新考考试预约已经开始,预约截至时间" + res + ",请马上点击进行预约考试。";
|
|
}
|
|
}
|
|
if (informRemindVo.getGzhTpStatus().equals(1)) {
|
|
if (informRemindVo.getGzhTpStatus().equals(1)) {
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
@@ -1717,7 +1804,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
informUserAddBo.setText("尊敬的用户:七大员新考考试预约已经开始,预约截至时间" + res + ",请马上点击进行预约考试。");
|
|
informUserAddBo.setText("尊敬的用户:七大员新考考试预约已经开始,预约截至时间" + res + ",请马上点击进行预约考试。");
|
|
UserVo userVo = iUserService.queryById(examUserApplyVo.getUserId());
|
|
UserVo userVo = iUserService.queryById(examUserApplyVo.getUserId());
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
-
|
|
|
|
|
|
+ content = "尊敬的用户:七大员新考考试预约已经开始,预约截至时间" + res + ",请马上点击进行预约考试。";
|
|
if(Validator.isNotEmpty(userVo.getOpenId())){
|
|
if(Validator.isNotEmpty(userVo.getOpenId())){
|
|
String startTime = DateUtils.timestampToDate(examUserApplyVo.getApplyStartTime() );
|
|
String startTime = DateUtils.timestampToDate(examUserApplyVo.getApplyStartTime() );
|
|
String endTime = DateUtils.timestampToDate(examUserApplyVo.getApplyEndTime() );
|
|
String endTime = DateUtils.timestampToDate(examUserApplyVo.getApplyEndTime() );
|
|
@@ -1732,6 +1819,11 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
iWxLoginService.sendQdySubTpMsg(userVo.getOpenId(),paramMap);
|
|
iWxLoginService.sendQdySubTpMsg(userVo.getOpenId(),paramMap);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //E管证督学通知
|
|
|
|
+ if (informRemindVo.getNoteStatus().equals(1) || informRemindVo.getWayStatus().equals(1) || informRemindVo.getGzhTpStatus().equals(1)){
|
|
|
|
+ iGoodsService.informOldSys(examUserApplyVo.getUserId(),examUserApplyVo.getGoodsId(),examUserApplyVo.getOrderGoodsId(),
|
|
|
|
+ examUserApplyVo.getGradeId(),5,content, Arrays.asList("七大员新考", "七大员新考考试预约已经开始",res ,content));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -1777,6 +1869,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
List<OrderGoodsVo> orderGoodsVoList = iOrderGoodsService.selectBuyUserList(mockApplyVo.getMockMajorSubjectId());
|
|
List<OrderGoodsVo> orderGoodsVoList = iOrderGoodsService.selectBuyUserList(mockApplyVo.getMockMajorSubjectId());
|
|
orderGoodsVoList.forEach(orderGoodsVo -> {
|
|
orderGoodsVoList.forEach(orderGoodsVo -> {
|
|
InformRemindVo informRemindVo = informRemindService.queryByName("一二建考前模考报名提醒");
|
|
InformRemindVo informRemindVo = informRemindService.queryByName("一二建考前模考报名提醒");
|
|
|
|
+ String content = "";
|
|
if (informRemindVo.getWayStatus().equals(1)) {
|
|
if (informRemindVo.getWayStatus().equals(1)) {
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
informUserAddBo.setUserId(orderGoodsVo.getUserId());
|
|
informUserAddBo.setUserId(orderGoodsVo.getUserId());
|
|
@@ -1788,6 +1881,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
informUserAddBo.setSystemStatus(1);
|
|
informUserAddBo.setSystemStatus(1);
|
|
informUserAddBo.setRemind("模考预约提醒");
|
|
informUserAddBo.setRemind("模考预约提醒");
|
|
informUserAddBo.setText("尊敬的用户:【" + mockApplyVo.getBusinessName() + mockApplyVo.getProjectName() + "】考前模拟考试将开始报名参加模拟考试。请登录【祥粤云小程序】或【web.xyyxt.net】进行报名。");
|
|
informUserAddBo.setText("尊敬的用户:【" + mockApplyVo.getBusinessName() + mockApplyVo.getProjectName() + "】考前模拟考试将开始报名参加模拟考试。请登录【祥粤云小程序】或【web.xyyxt.net】进行报名。");
|
|
|
|
+ content = "尊敬的用户:【" + mockApplyVo.getBusinessName() + mockApplyVo.getProjectName() + "】考前模拟考试将开始报名参加模拟考试。";
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
}
|
|
}
|
|
if (informRemindVo.getNoteStatus().equals(1)) {
|
|
if (informRemindVo.getNoteStatus().equals(1)) {
|
|
@@ -1801,6 +1895,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
informUserAddBo.setSystemStatus(3);
|
|
informUserAddBo.setSystemStatus(3);
|
|
informUserAddBo.setRemind("模考预约提醒");
|
|
informUserAddBo.setRemind("模考预约提醒");
|
|
informUserAddBo.setText("尊敬的用户:【" + mockApplyVo.getBusinessName() + mockApplyVo.getProjectName() + "】考前模拟考试将开始报名参加模拟考试。请登录【祥粤云小程序】或【web.xyyxt.net】进行报名。");
|
|
informUserAddBo.setText("尊敬的用户:【" + mockApplyVo.getBusinessName() + mockApplyVo.getProjectName() + "】考前模拟考试将开始报名参加模拟考试。请登录【祥粤云小程序】或【web.xyyxt.net】进行报名。");
|
|
|
|
+ content = "尊敬的用户:【" + mockApplyVo.getBusinessName() + mockApplyVo.getProjectName() + "】考前模拟考试将开始报名参加模拟考试。";
|
|
UserVo userVo = iUserService.queryById(orderGoodsVo.getUserId());
|
|
UserVo userVo = iUserService.queryById(orderGoodsVo.getUserId());
|
|
Map<String, Object> param = new HashMap<>();
|
|
Map<String, Object> param = new HashMap<>();
|
|
param.put("businessName", mockApplyVo.getBusinessName() + mockApplyVo.getProjectName());
|
|
param.put("businessName", mockApplyVo.getBusinessName() + mockApplyVo.getProjectName());
|
|
@@ -1808,6 +1903,11 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ //E管证督学通知
|
|
|
|
+ if (informRemindVo.getNoteStatus().equals(1) || informRemindVo.getWayStatus().equals(1) || informRemindVo.getGzhTpStatus().equals(1)){
|
|
|
|
+ iGoodsService.informOldSys(orderGoodsVo.getUserId(),orderGoodsVo.getGoodsId(),null,
|
|
|
|
+ null,5,content, Arrays.asList("一二建考前模考", content ,"","一二建考前模考报名提醒"));
|
|
|
|
+ }
|
|
});
|
|
});
|
|
});
|
|
});
|
|
mockApplyVos.forEach(mockApplyVo -> {
|
|
mockApplyVos.forEach(mockApplyVo -> {
|
|
@@ -1855,6 +1955,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
bo1.setSubscribeId(subscribeVo.getSubscribeId());
|
|
bo1.setSubscribeId(subscribeVo.getSubscribeId());
|
|
bo1.setHasMockRemind(1);
|
|
bo1.setHasMockRemind(1);
|
|
iUserMockSubscribeService.updateByEditBo(bo1);
|
|
iUserMockSubscribeService.updateByEditBo(bo1);
|
|
|
|
+ String content = "";
|
|
if (subscribeVo.getMockRemind() == 1) {
|
|
if (subscribeVo.getMockRemind() == 1) {
|
|
if (informRemindVo.getWayStatus().equals(1)) {
|
|
if (informRemindVo.getWayStatus().equals(1)) {
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
@@ -1867,6 +1968,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
informUserAddBo.setSystemStatus(1);
|
|
informUserAddBo.setSystemStatus(1);
|
|
informUserAddBo.setRemind("模考提醒");
|
|
informUserAddBo.setRemind("模考提醒");
|
|
informUserAddBo.setText("祥粤云学堂提醒:您学习【" + courseSubject.getSubjectName() + "】科目中的【" + mockApply.getApplyName() + "模考】已将于60分钟后开始考试,请及时在【祥粤云小程序】或【web.xyyxt.net】进行考试。");
|
|
informUserAddBo.setText("祥粤云学堂提醒:您学习【" + courseSubject.getSubjectName() + "】科目中的【" + mockApply.getApplyName() + "模考】已将于60分钟后开始考试,请及时在【祥粤云小程序】或【web.xyyxt.net】进行考试。");
|
|
|
|
+ content = "祥粤云学堂提醒:您学习【" + courseSubject.getSubjectName() + "】科目中的【" + mockApply.getApplyName() + "模考】已将于60分钟后开始考试。";
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1881,6 +1983,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
informUserAddBo.setSystemStatus(3);
|
|
informUserAddBo.setSystemStatus(3);
|
|
informUserAddBo.setRemind("模考提醒");
|
|
informUserAddBo.setRemind("模考提醒");
|
|
informUserAddBo.setText("祥粤云学堂提醒:您学习【" + courseSubject.getSubjectName() + "】科目中的【" + mockApply.getApplyName() + "模考】已将于60分钟后开始考试,请及时在【祥粤云小程序】或【web.xyyxt.net】进行考试。");
|
|
informUserAddBo.setText("祥粤云学堂提醒:您学习【" + courseSubject.getSubjectName() + "】科目中的【" + mockApply.getApplyName() + "模考】已将于60分钟后开始考试,请及时在【祥粤云小程序】或【web.xyyxt.net】进行考试。");
|
|
|
|
+ content = "祥粤云学堂提醒:您学习【" + courseSubject.getSubjectName() + "】科目中的【" + mockApply.getApplyName() + "模考】已将于60分钟后开始考试。";
|
|
UserVo userVo = iUserService.queryById(subscribeVo.getUserId());
|
|
UserVo userVo = iUserService.queryById(subscribeVo.getUserId());
|
|
Map<String, Object> param = new HashMap<>();
|
|
Map<String, Object> param = new HashMap<>();
|
|
param.put("subjectName", courseSubject.getSubjectName());
|
|
param.put("subjectName", courseSubject.getSubjectName());
|
|
@@ -1889,6 +1992,12 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //E管证督学通知
|
|
|
|
+ if (informRemindVo.getNoteStatus().equals(1) || informRemindVo.getWayStatus().equals(1) || informRemindVo.getGzhTpStatus().equals(1)){
|
|
|
|
+ iGoodsService.informOldSys(subscribeVo.getUserId(),null,null,
|
|
|
|
+ null,6,content, Arrays.asList(mockApply.getApplyName(), DateUtils.timestampToDate(mockApply.getApplyStartTime()) ,""));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1899,6 +2008,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
userMockSubscribeVoList.removeIf(userMockSubscribeVo -> System.currentTimeMillis()/1000 + 3600 <= userMockSubscribeVo.getLiveStartTime());
|
|
userMockSubscribeVoList.removeIf(userMockSubscribeVo -> System.currentTimeMillis()/1000 + 3600 <= userMockSubscribeVo.getLiveStartTime());
|
|
for (UserMockSubscribeVo userMockSubscribeVo : userMockSubscribeVoList) {
|
|
for (UserMockSubscribeVo userMockSubscribeVo : userMockSubscribeVoList) {
|
|
InformRemindVo informRemindVo = informRemindService.queryByName("一二建考前直播前一小时提醒");
|
|
InformRemindVo informRemindVo = informRemindService.queryByName("一二建考前直播前一小时提醒");
|
|
|
|
+ String content = "";
|
|
if (userMockSubscribeVo.getLiveSubscribe() == 1) {
|
|
if (userMockSubscribeVo.getLiveSubscribe() == 1) {
|
|
if (informRemindVo.getWayStatus().equals(1)) {
|
|
if (informRemindVo.getWayStatus().equals(1)) {
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
@@ -1911,6 +2021,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
informUserAddBo.setSystemStatus(1);
|
|
informUserAddBo.setSystemStatus(1);
|
|
informUserAddBo.setRemind("直播开课提醒");
|
|
informUserAddBo.setRemind("直播开课提醒");
|
|
informUserAddBo.setText("祥粤云学堂提醒:您学习【" + userMockSubscribeVo.getSubjectName() + "】科目中的【" + userMockSubscribeVo.getName() + "直播】已将于60分钟后开始直播,请及时在【祥粤云小程序】或【web.xyyxt.net】进行观看。");
|
|
informUserAddBo.setText("祥粤云学堂提醒:您学习【" + userMockSubscribeVo.getSubjectName() + "】科目中的【" + userMockSubscribeVo.getName() + "直播】已将于60分钟后开始直播,请及时在【祥粤云小程序】或【web.xyyxt.net】进行观看。");
|
|
|
|
+ content = "祥粤云学堂提醒:您学习【" + userMockSubscribeVo.getSubjectName() + "】科目中的【" + userMockSubscribeVo.getName() + "直播】已将于60分钟后开始直播。";
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -1925,6 +2036,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
informUserAddBo.setSystemStatus(3);
|
|
informUserAddBo.setSystemStatus(3);
|
|
informUserAddBo.setRemind("直播开课提醒");
|
|
informUserAddBo.setRemind("直播开课提醒");
|
|
informUserAddBo.setText("祥粤云学堂提醒:您学习【" + userMockSubscribeVo.getSubjectName() + "】科目中的【" + userMockSubscribeVo.getName() + "直播】已将于60分钟后开始直播,请及时在【祥粤云小程序】或【web.xyyxt.net】进行观看。");
|
|
informUserAddBo.setText("祥粤云学堂提醒:您学习【" + userMockSubscribeVo.getSubjectName() + "】科目中的【" + userMockSubscribeVo.getName() + "直播】已将于60分钟后开始直播,请及时在【祥粤云小程序】或【web.xyyxt.net】进行观看。");
|
|
|
|
+ content = "祥粤云学堂提醒:您学习【" + userMockSubscribeVo.getSubjectName() + "】科目中的【" + userMockSubscribeVo.getName() + "直播】已将于60分钟后开始直播。";
|
|
UserVo userVo = iUserService.queryById(userMockSubscribeVo.getUserId());
|
|
UserVo userVo = iUserService.queryById(userMockSubscribeVo.getUserId());
|
|
Map<String, Object> param = new HashMap<>();
|
|
Map<String, Object> param = new HashMap<>();
|
|
param.put("subjectName", userMockSubscribeVo.getSubjectName());
|
|
param.put("subjectName", userMockSubscribeVo.getSubjectName());
|
|
@@ -1934,6 +2046,12 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //E管证督学通知
|
|
|
|
+ if (informRemindVo.getNoteStatus().equals(1) || informRemindVo.getWayStatus().equals(1) || informRemindVo.getGzhTpStatus().equals(1)){
|
|
|
|
+ iGoodsService.informOldSys(userMockSubscribeVo.getUserId(),null,null,
|
|
|
|
+ null,5,content, Arrays.asList(userMockSubscribeVo.getName() + "直播", DateUtils.timestampToDate(userMockSubscribeVo.getLiveStartTime()) ,"","一二建考前直播前一小时提醒"));
|
|
|
|
+ }
|
|
UserMockSubscribeEditBo bo1 = new UserMockSubscribeEditBo();
|
|
UserMockSubscribeEditBo bo1 = new UserMockSubscribeEditBo();
|
|
bo1.setSubscribeId(userMockSubscribeVo.getSubscribeId());
|
|
bo1.setSubscribeId(userMockSubscribeVo.getSubscribeId());
|
|
bo1.setHasLiveSubscribe(1);
|
|
bo1.setHasLiveSubscribe(1);
|
|
@@ -2022,6 +2140,14 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
iWxLoginService.sendSmallTpMsg(userVo.getOpenId(),paramMap);
|
|
iWxLoginService.sendSmallTpMsg(userVo.getOpenId(),paramMap);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //E管证督学通知
|
|
|
|
+ if (informRemindVo.getNoteStatus().equals(1) || informRemindVo.getWayStatus().equals(1) || informRemindVo.getGzhTpStatus().equals(1)){
|
|
|
|
+ User user = iUserService.getById(goodsVo.getUserId());
|
|
|
|
+ String content = "您开通《"+goods.getGoodsName()+"》课程已有2天,但未开始学习,请尽快去学习吧。";
|
|
|
|
+ iGoodsService.informOldSys(goodsVo.getUserId(),goodsVo.getGoodsId(),goodsVo.getOrderGoodsId(),
|
|
|
|
+ goodsVo.getGradeId(),3,content, Arrays.asList(user.getRealname(), goodsVo.getGoodsName() ,"未开始学习",content));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -2106,6 +2232,14 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
iWxLoginService.sendSmallTpMsg(userVo.getOpenId(),paramMap);
|
|
iWxLoginService.sendSmallTpMsg(userVo.getOpenId(),paramMap);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //E管证督学通知
|
|
|
|
+ if (informRemindVo.getNoteStatus().equals(1) || informRemindVo.getWayStatus().equals(1) || informRemindVo.getGzhTpStatus().equals(1)){
|
|
|
|
+ User user = iUserService.getById(goodsVo.getUserId());
|
|
|
|
+ String content = "您开通《"+goods.getGoodsName()+"》课程已有5天,但未开始学习,请尽快去学习吧。";
|
|
|
|
+ iGoodsService.informOldSys(goodsVo.getUserId(),goodsVo.getGoodsId(),goodsVo.getOrderGoodsId(),
|
|
|
|
+ goodsVo.getGradeId(),3,content, Arrays.asList(user.getRealname(), goodsVo.getGoodsName() ,"未开始学习",content));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -2190,6 +2324,14 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
iWxLoginService.sendSmallTpMsg(userVo.getOpenId(),paramMap);
|
|
iWxLoginService.sendSmallTpMsg(userVo.getOpenId(),paramMap);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //E管证督学通知
|
|
|
|
+ if (informRemindVo.getNoteStatus().equals(1) || informRemindVo.getWayStatus().equals(1) || informRemindVo.getGzhTpStatus().equals(1)){
|
|
|
|
+ User user = iUserService.getById(goodsVo.getUserId());
|
|
|
|
+ String content = "您开通《"+goods.getGoodsName()+"》课程已有15天,但未开始学习,请尽快去学习吧。";
|
|
|
|
+ iGoodsService.informOldSys(goodsVo.getUserId(),goodsVo.getGoodsId(),goodsVo.getOrderGoodsId(),
|
|
|
|
+ goodsVo.getGradeId(),3,content, Arrays.asList(user.getRealname(), goodsVo.getGoodsName() ,"未开始学习",content));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -2274,6 +2416,14 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
iWxLoginService.sendSmallTpMsg(userVo.getOpenId(),paramMap);
|
|
iWxLoginService.sendSmallTpMsg(userVo.getOpenId(),paramMap);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //E管证督学通知
|
|
|
|
+ if (informRemindVo.getNoteStatus().equals(1) || informRemindVo.getWayStatus().equals(1) || informRemindVo.getGzhTpStatus().equals(1)){
|
|
|
|
+ User user = iUserService.getById(goodsVo.getUserId());
|
|
|
|
+ String content = "您开通《"+goods.getGoodsName()+"》课程已有30天,但未开始学习,请尽快去学习吧。";
|
|
|
|
+ iGoodsService.informOldSys(goodsVo.getUserId(),goodsVo.getGoodsId(),goodsVo.getOrderGoodsId(),
|
|
|
|
+ goodsVo.getGradeId(),3,content, Arrays.asList(user.getRealname(), goodsVo.getGoodsName() ,"未开始学习",content));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -2358,6 +2508,14 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
iWxLoginService.sendSmallTpMsg(userVo.getOpenId(),paramMap);
|
|
iWxLoginService.sendSmallTpMsg(userVo.getOpenId(),paramMap);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //E管证督学通知
|
|
|
|
+ if (informRemindVo.getNoteStatus().equals(1) || informRemindVo.getWayStatus().equals(1) || informRemindVo.getGzhTpStatus().equals(1)){
|
|
|
|
+ User user = iUserService.getById(goodsVo.getUserId());
|
|
|
|
+ String content = "您开通《"+goods.getGoodsName()+"》课程已有55天,但未开始学习,请尽快去学习吧。";
|
|
|
|
+ iGoodsService.informOldSys(goodsVo.getUserId(),goodsVo.getGoodsId(),goodsVo.getOrderGoodsId(),
|
|
|
|
+ goodsVo.getGradeId(),3,content, Arrays.asList(user.getRealname(), goodsVo.getGoodsName() ,"未开始学习",content));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -2718,6 +2876,14 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
iWxLoginService.sendSmallTpMsg(userVo.getOpenId(),paramMap);
|
|
iWxLoginService.sendSmallTpMsg(userVo.getOpenId(),paramMap);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //E管证督学通知
|
|
|
|
+ if (informRemindVo.getNoteStatus().equals(1) || informRemindVo.getWayStatus().equals(1) || informRemindVo.getGzhTpStatus().equals(1)){
|
|
|
|
+ User user = iUserService.getById(goodsVo.getUserId());
|
|
|
|
+ String content = "您已超过3天没有学习《"+goods.getGoodsName()+"》课程,为了您的学习效果,请尽快去学习吧。";
|
|
|
|
+ iGoodsService.informOldSys(goodsVo.getUserId(),goodsVo.getGoodsId(),goodsVo.getOrderGoodsId(),
|
|
|
|
+ goodsVo.getGradeId(),3,content, Arrays.asList(user.getRealname(), goodsVo.getGoodsName() ,"3天没有学习",content));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
@@ -2800,6 +2966,14 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
iWxLoginService.sendSmallTpMsg(userVo.getOpenId(),paramMap);
|
|
iWxLoginService.sendSmallTpMsg(userVo.getOpenId(),paramMap);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+
|
|
|
|
+ //E管证督学通知
|
|
|
|
+ if (informRemindVo.getNoteStatus().equals(1) || informRemindVo.getWayStatus().equals(1) || informRemindVo.getGzhTpStatus().equals(1)){
|
|
|
|
+ User user = iUserService.getById(goodsVo.getUserId());
|
|
|
|
+ String content = "您已超过5天没有学习《"+goods.getGoodsName()+"》课程,为了您的学习效果,请尽快去学习吧。";
|
|
|
|
+ iGoodsService.informOldSys(goodsVo.getUserId(),goodsVo.getGoodsId(),goodsVo.getOrderGoodsId(),
|
|
|
|
+ goodsVo.getGradeId(),3,content, Arrays.asList(user.getRealname(), goodsVo.getGoodsName() ,"5天没有学习",content));
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|