|
@@ -33,6 +33,7 @@ import com.zhongzheng.modules.inform.vo.InformRemindVo;
|
|
|
import com.zhongzheng.modules.user.domain.User;
|
|
|
import com.zhongzheng.modules.user.service.IUserService;
|
|
|
import com.zhongzheng.modules.user.vo.UserVo;
|
|
|
+import com.zhongzheng.modules.wx.service.IWxLoginService;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.beans.factory.annotation.Value;
|
|
|
import org.springframework.stereotype.Service;
|
|
@@ -101,6 +102,9 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
|
@Autowired
|
|
|
private ClassGradeUserMapper classGradeUserMapper;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private IWxLoginService iWxLoginService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private com.zhongzheng.modules.alisms.service.IAliSmsService IAliSmsService;
|
|
|
|
|
@@ -593,6 +597,33 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
|
Map<String, Object> param = new HashMap<>();
|
|
|
IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), ReminderApproval);
|
|
|
}
|
|
|
+ if (informRemindVo.getGzhTpStatus().equals(1)) {
|
|
|
+ InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
|
+ informUserAddBo.setUserId(bo.getUserId());
|
|
|
+ informUserAddBo.setSendStatus(1);
|
|
|
+ informUserAddBo.setSendTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setGradeId(bo.getGradeId());
|
|
|
+ informUserAddBo.setRemindId(11L);
|
|
|
+ informUserAddBo.setSystemStatus(4);
|
|
|
+ informUserAddBo.setOrderGoodsId(gradeUser.getOrderGoodsId());
|
|
|
+ informUserAddBo.setRemind("学时机构审核通过提醒");
|
|
|
+ informUserAddBo.setGoodsId(bo.getGoodsId());
|
|
|
+ informUserAddBo.setText("尊敬的用户:你已完成本课程的所有学时机构审核通过。");
|
|
|
+ Long informId = iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
+ UserVo userVo = iUserService.queryById(bo.getUserId());
|
|
|
+ if(Validator.isNotEmpty(userVo.getOpenId())){
|
|
|
+ Map<String,String> paramMap = new HashMap<>();
|
|
|
+ paramMap.put("first","您学习完成的《"+goodsVo1.getGoodsName()+"》课程的所有学时机构审核通过。");
|
|
|
+ paramMap.put("keyword1","学时审核");
|
|
|
+ paramMap.put("keyword2","通过");
|
|
|
+ paramMap.put("keyword3",DateUtils.getDate());
|
|
|
+ paramMap.put("remark","稍后老师会安排考试,请留意消息进行考试预约");
|
|
|
+ paramMap.put("pagepath","pages3/polyv/detail?id=0&goodsId="+bo.getGoodsId()+"&gradeId="+bo.getGradeId()+"&orderGoodsId="+gradeUser.getOrderGoodsId()+"&informId="+informId);
|
|
|
+ iWxLoginService.sendQdyTpMsg(userVo.getOpenId(),paramMap);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
} else {
|
|
|
InformRemindVo informRemindTwoVo = informRemindService.queryById(12L);
|
|
@@ -632,6 +663,33 @@ public class UserPeriodServiceImpl extends ServiceImpl<UserPeriodMapper, UserPer
|
|
|
param.put("goods", goodsVo1.getGoodsName());
|
|
|
IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), passTheReminder);
|
|
|
}
|
|
|
+ if (informRemindTwoVo.getGzhTpStatus().equals(1)) {
|
|
|
+ InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
|
+ informUserAddBo.setUserId(bo.getUserId());
|
|
|
+ informUserAddBo.setSendStatus(1);
|
|
|
+ informUserAddBo.setSendTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setGradeId(bo.getGradeId());
|
|
|
+ informUserAddBo.setRemindId(12L);
|
|
|
+ informUserAddBo.setSystemStatus(4);
|
|
|
+ informUserAddBo.setOrderGoodsId(gradeUser.getOrderGoodsId());
|
|
|
+ informUserAddBo.setRemind("学时机构审核通过提醒");
|
|
|
+ informUserAddBo.setGoodsId(bo.getGoodsId());
|
|
|
+ informUserAddBo.setText("尊敬的用户:您购买的" + goodsVo1.getGoodsName() + "课程学时审核不通过,为了不影响您的学习进度,请点击立即重学进行重学。");
|
|
|
+ Long informId = iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
+ UserVo userVo = iUserService.queryById(bo.getUserId());
|
|
|
+ if(Validator.isNotEmpty(userVo.getOpenId())){
|
|
|
+ Map<String,String> paramMap = new HashMap<>();
|
|
|
+ paramMap.put("first","您购买的《" + goodsVo1.getGoodsName() + "》课程学时审核不通过");
|
|
|
+ paramMap.put("keyword1","学时审核");
|
|
|
+ paramMap.put("keyword2","不通过");
|
|
|
+ paramMap.put("keyword3",DateUtils.getDate());
|
|
|
+ paramMap.put("remark","↓为了不影响您的学习进度,请点击立即重学进行重学。");
|
|
|
+ paramMap.put("pagepath","pages2/learn/details?id=0&goodsId="+bo.getGoodsId()+"&gradeId="+bo.getGradeId()+"&orderGoodsId="+gradeUser.getOrderGoodsId()+"&informId="+informId);
|
|
|
+ iWxLoginService.sendQdyTpMsg(userVo.getOpenId(),paramMap);
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
}
|