|
@@ -18,6 +18,7 @@ import com.zhongzheng.common.core.redis.RedisCache;
|
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
import com.zhongzheng.common.utils.DateUtils;
|
|
|
import com.zhongzheng.common.utils.http.HttpUtils;
|
|
import com.zhongzheng.common.utils.http.HttpUtils;
|
|
|
import com.zhongzheng.common.utils.polyv.PolyvUtils;
|
|
import com.zhongzheng.common.utils.polyv.PolyvUtils;
|
|
|
|
|
+import com.zhongzheng.modules.alisms.vo.ResultBean;
|
|
|
import com.zhongzheng.modules.base.service.IProfileTpService;
|
|
import com.zhongzheng.modules.base.service.IProfileTpService;
|
|
|
import com.zhongzheng.modules.base.vo.ProfileTpVo;
|
|
import com.zhongzheng.modules.base.vo.ProfileTpVo;
|
|
|
import com.zhongzheng.modules.base.vo.UserProfileVo;
|
|
import com.zhongzheng.modules.base.vo.UserProfileVo;
|
|
@@ -246,11 +247,14 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
informUserAddBo.setGoodsId(goodsVo.getGoodsId());
|
|
informUserAddBo.setGoodsId(goodsVo.getGoodsId());
|
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(goodsVo.getGoodsId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(goodsVo.getGoodsId());
|
|
|
informUserAddBo.setText("尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "已经开通,请尽快去学习吧。");
|
|
informUserAddBo.setText("尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "已经开通,请尽快去学习吧。");
|
|
|
- iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
|
UserVo userVo = iUserService.queryById(goodsVo.getUserId());
|
|
UserVo userVo = iUserService.queryById(goodsVo.getUserId());
|
|
|
Map<String, Object> param = new HashMap<>();
|
|
Map<String, Object> param = new HashMap<>();
|
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
|
- IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), OpenTheGoodsCode);
|
|
|
|
|
|
|
+ ResultBean rb = IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), OpenTheGoodsCode);
|
|
|
|
|
+ if(Validator.isNotEmpty(rb)){
|
|
|
|
|
+ iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
}
|
|
}
|
|
|
if (informRemindTwoVo.getNoteStatus() == 1 && profileTpVo != null) {
|
|
if (informRemindTwoVo.getNoteStatus() == 1 && profileTpVo != null) {
|
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
@@ -265,11 +269,13 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
informUserAddBo.setGoodsId(goodsVo.getGoodsId());
|
|
informUserAddBo.setGoodsId(goodsVo.getGoodsId());
|
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(goodsVo.getGoodsId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(goodsVo.getGoodsId());
|
|
|
informUserAddBo.setText("尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "已经开通,请尽快去学习吧。");
|
|
informUserAddBo.setText("尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "已经开通,请尽快去学习吧。");
|
|
|
- iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
|
UserVo userVo = iUserService.queryById(goodsVo.getUserId());
|
|
UserVo userVo = iUserService.queryById(goodsVo.getUserId());
|
|
|
Map<String, Object> param = new HashMap<>();
|
|
Map<String, Object> param = new HashMap<>();
|
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
|
- IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), informationNotificationCode);
|
|
|
|
|
|
|
+ ResultBean rb = IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), informationNotificationCode);
|
|
|
|
|
+ if(Validator.isNotEmpty(rb)){
|
|
|
|
|
+ iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -359,12 +365,13 @@ 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("尊敬的用户:您购买的课程班级有效期还剩20天,未在"+resEnd+"前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
informUserAddBo.setText("尊敬的用户:您购买的课程班级有效期还剩20天,未在"+resEnd+"前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
|
- iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
|
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("time", resEnd);
|
|
param.put("time", resEnd);
|
|
|
param.put("day", 20);
|
|
param.put("day", 20);
|
|
|
- IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), remainingDaysValidityCode);
|
|
|
|
|
|
|
+ if(Validator.isNotEmpty(IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), remainingDaysValidityCode))){
|
|
|
|
|
+ iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -409,12 +416,14 @@ 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("尊敬的用户:您购买的课程班级有效期还剩10天,未在"+resEnd+"前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
informUserAddBo.setText("尊敬的用户:您购买的课程班级有效期还剩10天,未在"+resEnd+"前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
|
- iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
|
|
|
+
|
|
|
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("time", resEnd);
|
|
param.put("time", resEnd);
|
|
|
param.put("day", 10);
|
|
param.put("day", 10);
|
|
|
- IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), remainingDaysValidityCode);
|
|
|
|
|
|
|
+ if(Validator.isNotEmpty(IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), remainingDaysValidityCode))){
|
|
|
|
|
+ iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -459,12 +468,13 @@ 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("尊敬的用户:您购买的课程班级有效期还剩5天,未在"+resEnd+"前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
informUserAddBo.setText("尊敬的用户:您购买的课程班级有效期还剩5天,未在"+resEnd+"前完成全部学时,可能会影响审核进度,最终导致学时无效,请尽快完成学习");
|
|
|
- iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
|
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("time", resEnd);
|
|
param.put("time", resEnd);
|
|
|
param.put("day", 5);
|
|
param.put("day", 5);
|
|
|
- IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), remainingDaysValidityCode);
|
|
|
|
|
|
|
+ if(Validator.isNotEmpty(IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), remainingDaysValidityCode))){
|
|
|
|
|
+ iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -513,13 +523,14 @@ 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()+"");
|
|
"考试地点:"+subscribeVo.getApplySiteAddress()+"");
|
|
|
- iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
|
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());
|
|
|
param.put("time", res+"("+startTime+"-"+endTime+")");
|
|
param.put("time", res+"("+startTime+"-"+endTime+")");
|
|
|
param.put("address", subscribeVo.getApplySiteAddress());
|
|
param.put("address", subscribeVo.getApplySiteAddress());
|
|
|
- IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), examinationRemind);
|
|
|
|
|
|
|
+ if(Validator.isNotEmpty(IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), examinationRemind))){
|
|
|
|
|
+ iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -919,11 +930,12 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(examUserApplyVo.getGoodsId());
|
|
GoodsVo goodsVo1 = iGoodsService.queryById(examUserApplyVo.getGoodsId());
|
|
|
informUserAddBo.setGradeId(examUserApplyVo.getGradeId());
|
|
informUserAddBo.setGradeId(examUserApplyVo.getGradeId());
|
|
|
informUserAddBo.setText("尊敬的用户:七大员新考考试预约已经开始,预约截至时间"+res+",请马上点击进行预约考试。");
|
|
informUserAddBo.setText("尊敬的用户:七大员新考考试预约已经开始,预约截至时间"+res+",请马上点击进行预约考试。");
|
|
|
- iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
|
UserVo userVo = iUserService.queryById(examUserApplyVo.getUserId());
|
|
UserVo userVo = iUserService.queryById(examUserApplyVo.getUserId());
|
|
|
Map<String, Object> param = new HashMap<>();
|
|
Map<String, Object> param = new HashMap<>();
|
|
|
param.put("time", res);
|
|
param.put("time", res);
|
|
|
- IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), bookingReminder);
|
|
|
|
|
|
|
+ if(Validator.isNotEmpty(IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), bookingReminder))){
|
|
|
|
|
+ iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
|
|
+ }
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|