|
|
@@ -131,6 +131,7 @@ import org.springframework.transaction.annotation.Transactional;
|
|
|
import org.springframework.util.CollectionUtils;
|
|
|
|
|
|
import java.io.IOException;
|
|
|
+import java.math.BigDecimal;
|
|
|
import java.text.ParseException;
|
|
|
import java.text.SimpleDateFormat;
|
|
|
import java.util.*;
|
|
|
@@ -176,8 +177,6 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
@Autowired
|
|
|
private IOrderGoodsService iOrderGoodsService;
|
|
|
|
|
|
- @Autowired
|
|
|
- private IOrderBusinessService iOrderBusinessService;
|
|
|
@Autowired
|
|
|
private IGoodsService iGoodsService;
|
|
|
@Autowired
|
|
|
@@ -287,6 +286,10 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
@Autowired
|
|
|
private IWxLoginService iWxLoginService;
|
|
|
|
|
|
+
|
|
|
+ @Autowired
|
|
|
+ private ICourseService iCourseService;
|
|
|
+
|
|
|
@Autowired
|
|
|
private IWisdomService iWisdomService;
|
|
|
|
|
|
@@ -2868,19 +2871,300 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
queryBo.setStartTime(startTime);
|
|
|
queryBo.setEndTime(endTime);
|
|
|
List<ClassGradeVo> gradeVoList = iClassGradeService.queryGradeList(queryBo);
|
|
|
+ InformRemindVo informRemindVo = informRemindService.queryByName("课程试卷未做完3天提醒");
|
|
|
for(ClassGradeVo gradeVo : gradeVoList){
|
|
|
-
|
|
|
+ List<ClassGradeVo> userList = iCourseService.gradeIdUserSelect(gradeVo.getGoodsId(),gradeVo.getGradeId());
|
|
|
+ for(ClassGradeVo user : userList){
|
|
|
+ if(user.getExamNum().longValue()!=user.getRecordNum().longValue()){
|
|
|
+ Long diffV = user.getExamNum() - user.getRecordNum();
|
|
|
+ SubjectStudyRecordQueryBo subjectStudyRecordQueryBo = new SubjectStudyRecordQueryBo();
|
|
|
+ subjectStudyRecordQueryBo.setGoodsId(gradeVo.getGoodsId());
|
|
|
+ subjectStudyRecordQueryBo.setUserId(user.getUserId());
|
|
|
+ subjectStudyRecordQueryBo.setGradeId(gradeVo.getGradeId());
|
|
|
+ List<SubjectStudyRecordVo> subjectStudyRecordVos = iUserStudyRecordService.listSubject(subjectStudyRecordQueryBo);
|
|
|
+ Long secLong = 0L;
|
|
|
+ Long studyLong = 0L;
|
|
|
+ for (SubjectStudyRecordVo subjectStudyRecordVo : subjectStudyRecordVos) {
|
|
|
+ secLong = new BigDecimal(secLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getSectionNum().toString())).longValue();
|
|
|
+ studyLong = new BigDecimal(studyLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getRecordNum().toString())).longValue();
|
|
|
+ }
|
|
|
+ if(secLong.longValue()==studyLong.longValue()){
|
|
|
+ GoodsVo goods = iGoodsService.queryById(gradeVo.getGoodsId());
|
|
|
+ if (!CollectionUtils.isEmpty(informRemindVo.getInformRemindBusiness()) && !CollectionUtils.isEmpty(informRemindVo.getInformRemindBusiness().stream().filter(informRemindBusinessVo -> informRemindBusinessVo.getBusinessId().equals(goods.getBusinessId())).collect(Collectors.toList()))) {
|
|
|
+ UserVo userVo = iUserService.queryById(user.getUserId());
|
|
|
+ if (informRemindVo.getWayStatus().equals(1)) {
|
|
|
+ InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
|
+ informUserAddBo.setUserId(userVo.getUserId());
|
|
|
+ informUserAddBo.setSendStatus(1);
|
|
|
+ informUserAddBo.setSendTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setRemindId(informRemindVo.getId());
|
|
|
+ informUserAddBo.setGradeId(gradeVo.getGradeId());
|
|
|
+ informUserAddBo.setSystemStatus(1);
|
|
|
+ informUserAddBo.setOrderGoodsId(user.getOrderGoodsId());
|
|
|
+ informUserAddBo.setRemind("您学习的课程,还有考试未完成");
|
|
|
+ informUserAddBo.setGoodsId(gradeVo.getGoodsId());
|
|
|
+ informUserAddBo.setText("您学习的《"+goods.getGoodsName()+"》课程,还有"+diffV+"套试卷没有考试完成,请尽快完成考试!");
|
|
|
+ iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
+ }
|
|
|
+ if (informRemindVo.getNoteStatus().equals(1)) {
|
|
|
+ InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
|
+ informUserAddBo.setUserId(userVo.getUserId());
|
|
|
+ informUserAddBo.setSendStatus(1);
|
|
|
+ informUserAddBo.setSendTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setRemindId(informRemindVo.getId());
|
|
|
+ informUserAddBo.setGradeId(gradeVo.getGradeId());
|
|
|
+ informUserAddBo.setSystemStatus(3);
|
|
|
+ informUserAddBo.setOrderGoodsId(user.getOrderGoodsId());
|
|
|
+ informUserAddBo.setRemind("您学习的课程,还有考试未完成");
|
|
|
+ informUserAddBo.setGoodsId(gradeVo.getGoodsId());
|
|
|
+ informUserAddBo.setText("您学习的《"+goods.getGoodsName()+"》课程,还有"+diffV+"套试卷没有考试完成,请尽快完成考试!");
|
|
|
+ Map<String, Object> param = new HashMap<>();
|
|
|
+ param.put("goodsName", goods.getGoodsName());
|
|
|
+ param.put("day", "30");
|
|
|
+ /* if (Validator.isNotEmpty(IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), buyNotStudyStudentRemind))) {
|
|
|
+ iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
+ }*/
|
|
|
+ }
|
|
|
+ if (informRemindVo.getGzhTpStatus().equals(1)) {
|
|
|
+ InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
|
+ informUserAddBo.setUserId(userVo.getUserId());
|
|
|
+ informUserAddBo.setSendStatus(1);
|
|
|
+ informUserAddBo.setSendTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setRemindId(informRemindVo.getId());
|
|
|
+ informUserAddBo.setGradeId(gradeVo.getGradeId());
|
|
|
+ informUserAddBo.setSystemStatus(4);
|
|
|
+ informUserAddBo.setOrderGoodsId(user.getOrderGoodsId());
|
|
|
+ informUserAddBo.setRemind("您学习的课程,还有考试未完成");
|
|
|
+ informUserAddBo.setGoodsId(gradeVo.getGoodsId());
|
|
|
+ informUserAddBo.setText("您学习的《"+goods.getGoodsName()+"》课程,还有"+diffV+"套试卷没有考试完成,请尽快完成考试!");
|
|
|
+ Long informId = iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
+ if(Validator.isNotEmpty(userVo.getOpenId())){
|
|
|
+ Map<String,String> paramMap = new HashMap<>();
|
|
|
+ paramMap.put("first","您学习的课程,还有"+diffV+"套试卷没有考试完成");
|
|
|
+ paramMap.put("keyword1",goods.getGoodsName());
|
|
|
+ paramMap.put("keyword2","考试未完成");
|
|
|
+ paramMap.put("remark","↓点我去考试~");
|
|
|
+ paramMap.put("pagepath","pages3/polyv/detail?id=0&goodsId="+gradeVo.getGoodsId()+"&gradeId="+gradeVo.getGradeId()+"&orderGoodsId="+user.getOrderGoodsId()+"&informId="+informId);
|
|
|
+ iWxLoginService.sendSignatureTpMsg(userVo.getOpenId(),paramMap);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void noFinishExamToStudentFive(UserQueryBo bo) {
|
|
|
-
|
|
|
+ //5天要结束
|
|
|
+ Calendar cal1 = new GregorianCalendar();
|
|
|
+ cal1.add(Calendar.DATE, -6);
|
|
|
+ Long startTime = cal1.getTimeInMillis() / 1000;
|
|
|
+ Calendar cal2 = new GregorianCalendar();
|
|
|
+ cal2.add(Calendar.DATE, -5);
|
|
|
+ Long endTime = cal2.getTimeInMillis() / 1000;
|
|
|
+ ClassGradeQueryBo queryBo = new ClassGradeQueryBo();
|
|
|
+ queryBo.setStartTime(startTime);
|
|
|
+ queryBo.setEndTime(endTime);
|
|
|
+ List<ClassGradeVo> gradeVoList = iClassGradeService.queryGradeList(queryBo);
|
|
|
+ InformRemindVo informRemindVo = informRemindService.queryByName("课程试卷未做完5天提醒");
|
|
|
+ for(ClassGradeVo gradeVo : gradeVoList){
|
|
|
+ List<ClassGradeVo> userList = iCourseService.gradeIdUserSelect(gradeVo.getGoodsId(),gradeVo.getGradeId());
|
|
|
+ for(ClassGradeVo user : userList){
|
|
|
+ if(user.getExamNum().longValue()!=user.getRecordNum().longValue()){
|
|
|
+ Long diffV = user.getExamNum() - user.getRecordNum();
|
|
|
+ SubjectStudyRecordQueryBo subjectStudyRecordQueryBo = new SubjectStudyRecordQueryBo();
|
|
|
+ subjectStudyRecordQueryBo.setGoodsId(gradeVo.getGoodsId());
|
|
|
+ subjectStudyRecordQueryBo.setUserId(user.getUserId());
|
|
|
+ subjectStudyRecordQueryBo.setGradeId(gradeVo.getGradeId());
|
|
|
+ List<SubjectStudyRecordVo> subjectStudyRecordVos = iUserStudyRecordService.listSubject(subjectStudyRecordQueryBo);
|
|
|
+ Long secLong = 0L;
|
|
|
+ Long studyLong = 0L;
|
|
|
+ for (SubjectStudyRecordVo subjectStudyRecordVo : subjectStudyRecordVos) {
|
|
|
+ secLong = new BigDecimal(secLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getSectionNum().toString())).longValue();
|
|
|
+ studyLong = new BigDecimal(studyLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getRecordNum().toString())).longValue();
|
|
|
+ }
|
|
|
+ if(secLong.longValue()==studyLong.longValue()){
|
|
|
+ GoodsVo goods = iGoodsService.queryById(gradeVo.getGoodsId());
|
|
|
+ if (!CollectionUtils.isEmpty(informRemindVo.getInformRemindBusiness()) && !CollectionUtils.isEmpty(informRemindVo.getInformRemindBusiness().stream().filter(informRemindBusinessVo -> informRemindBusinessVo.getBusinessId().equals(goods.getBusinessId())).collect(Collectors.toList()))) {
|
|
|
+ UserVo userVo = iUserService.queryById(user.getUserId());
|
|
|
+ if (informRemindVo.getWayStatus().equals(1)) {
|
|
|
+ InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
|
+ informUserAddBo.setUserId(userVo.getUserId());
|
|
|
+ informUserAddBo.setSendStatus(1);
|
|
|
+ informUserAddBo.setSendTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setRemindId(informRemindVo.getId());
|
|
|
+ informUserAddBo.setGradeId(gradeVo.getGradeId());
|
|
|
+ informUserAddBo.setSystemStatus(1);
|
|
|
+ informUserAddBo.setOrderGoodsId(user.getOrderGoodsId());
|
|
|
+ informUserAddBo.setRemind("您学习的课程,还有考试未完成");
|
|
|
+ informUserAddBo.setGoodsId(gradeVo.getGoodsId());
|
|
|
+ informUserAddBo.setText("您学习的《"+goods.getGoodsName()+"》课程,还有"+diffV+"套试卷没有考试完成,请尽快完成考试!");
|
|
|
+ iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
+ }
|
|
|
+ if (informRemindVo.getNoteStatus().equals(1)) {
|
|
|
+ InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
|
+ informUserAddBo.setUserId(userVo.getUserId());
|
|
|
+ informUserAddBo.setSendStatus(1);
|
|
|
+ informUserAddBo.setSendTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setRemindId(informRemindVo.getId());
|
|
|
+ informUserAddBo.setGradeId(gradeVo.getGradeId());
|
|
|
+ informUserAddBo.setSystemStatus(3);
|
|
|
+ informUserAddBo.setOrderGoodsId(user.getOrderGoodsId());
|
|
|
+ informUserAddBo.setRemind("您学习的课程,还有考试未完成");
|
|
|
+ informUserAddBo.setGoodsId(gradeVo.getGoodsId());
|
|
|
+ informUserAddBo.setText("您学习的《"+goods.getGoodsName()+"》课程,还有"+diffV+"套试卷没有考试完成,请尽快完成考试!");
|
|
|
+ Map<String, Object> param = new HashMap<>();
|
|
|
+ param.put("goodsName", goods.getGoodsName());
|
|
|
+ param.put("day", "30");
|
|
|
+ /* if (Validator.isNotEmpty(IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), buyNotStudyStudentRemind))) {
|
|
|
+ iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
+ }*/
|
|
|
+ }
|
|
|
+ if (informRemindVo.getGzhTpStatus().equals(1)) {
|
|
|
+ InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
|
+ informUserAddBo.setUserId(userVo.getUserId());
|
|
|
+ informUserAddBo.setSendStatus(1);
|
|
|
+ informUserAddBo.setSendTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setRemindId(informRemindVo.getId());
|
|
|
+ informUserAddBo.setGradeId(gradeVo.getGradeId());
|
|
|
+ informUserAddBo.setSystemStatus(4);
|
|
|
+ informUserAddBo.setOrderGoodsId(user.getOrderGoodsId());
|
|
|
+ informUserAddBo.setRemind("您学习的课程,还有考试未完成");
|
|
|
+ informUserAddBo.setGoodsId(gradeVo.getGoodsId());
|
|
|
+ informUserAddBo.setText("您学习的《"+goods.getGoodsName()+"》课程,还有"+diffV+"套试卷没有考试完成,请尽快完成考试!");
|
|
|
+ Long informId = iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
+ if(Validator.isNotEmpty(userVo.getOpenId())){
|
|
|
+ Map<String,String> paramMap = new HashMap<>();
|
|
|
+ paramMap.put("first","您学习的课程,还有"+diffV+"套试卷没有考试完成");
|
|
|
+ paramMap.put("keyword1",goods.getGoodsName());
|
|
|
+ paramMap.put("keyword2","考试未完成");
|
|
|
+ paramMap.put("remark","↓点我去考试~");
|
|
|
+ paramMap.put("pagepath","pages3/polyv/detail?id=0&goodsId="+gradeVo.getGoodsId()+"&gradeId="+gradeVo.getGradeId()+"&orderGoodsId="+user.getOrderGoodsId()+"&informId="+informId);
|
|
|
+ iWxLoginService.sendSignatureTpMsg(userVo.getOpenId(),paramMap);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
public void noFinishExamToStudentSeven(UserQueryBo bo) {
|
|
|
-
|
|
|
+ //7天要结束
|
|
|
+ Calendar cal1 = new GregorianCalendar();
|
|
|
+ cal1.add(Calendar.DATE, -8);
|
|
|
+ Long startTime = cal1.getTimeInMillis() / 1000;
|
|
|
+ Calendar cal2 = new GregorianCalendar();
|
|
|
+ cal2.add(Calendar.DATE, -7);
|
|
|
+ Long endTime = cal2.getTimeInMillis() / 1000;
|
|
|
+ ClassGradeQueryBo queryBo = new ClassGradeQueryBo();
|
|
|
+ queryBo.setStartTime(startTime);
|
|
|
+ queryBo.setEndTime(endTime);
|
|
|
+ List<ClassGradeVo> gradeVoList = iClassGradeService.queryGradeList(queryBo);
|
|
|
+ InformRemindVo informRemindVo = informRemindService.queryByName("课程试卷未做完7天提醒");
|
|
|
+ for(ClassGradeVo gradeVo : gradeVoList){
|
|
|
+ List<ClassGradeVo> userList = iCourseService.gradeIdUserSelect(gradeVo.getGoodsId(),gradeVo.getGradeId());
|
|
|
+ for(ClassGradeVo user : userList){
|
|
|
+ if(user.getExamNum().longValue()!=user.getRecordNum().longValue()){
|
|
|
+ Long diffV = user.getExamNum() - user.getRecordNum();
|
|
|
+ SubjectStudyRecordQueryBo subjectStudyRecordQueryBo = new SubjectStudyRecordQueryBo();
|
|
|
+ subjectStudyRecordQueryBo.setGoodsId(gradeVo.getGoodsId());
|
|
|
+ subjectStudyRecordQueryBo.setUserId(user.getUserId());
|
|
|
+ subjectStudyRecordQueryBo.setGradeId(gradeVo.getGradeId());
|
|
|
+ List<SubjectStudyRecordVo> subjectStudyRecordVos = iUserStudyRecordService.listSubject(subjectStudyRecordQueryBo);
|
|
|
+ Long secLong = 0L;
|
|
|
+ Long studyLong = 0L;
|
|
|
+ for (SubjectStudyRecordVo subjectStudyRecordVo : subjectStudyRecordVos) {
|
|
|
+ secLong = new BigDecimal(secLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getSectionNum().toString())).longValue();
|
|
|
+ studyLong = new BigDecimal(studyLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getRecordNum().toString())).longValue();
|
|
|
+ }
|
|
|
+ if(secLong.longValue()==studyLong.longValue()){
|
|
|
+ GoodsVo goods = iGoodsService.queryById(gradeVo.getGoodsId());
|
|
|
+ if (!CollectionUtils.isEmpty(informRemindVo.getInformRemindBusiness()) && !CollectionUtils.isEmpty(informRemindVo.getInformRemindBusiness().stream().filter(informRemindBusinessVo -> informRemindBusinessVo.getBusinessId().equals(goods.getBusinessId())).collect(Collectors.toList()))) {
|
|
|
+ UserVo userVo = iUserService.queryById(user.getUserId());
|
|
|
+ if (informRemindVo.getWayStatus().equals(1)) {
|
|
|
+ InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
|
+ informUserAddBo.setUserId(userVo.getUserId());
|
|
|
+ informUserAddBo.setSendStatus(1);
|
|
|
+ informUserAddBo.setSendTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setRemindId(informRemindVo.getId());
|
|
|
+ informUserAddBo.setGradeId(gradeVo.getGradeId());
|
|
|
+ informUserAddBo.setSystemStatus(1);
|
|
|
+ informUserAddBo.setOrderGoodsId(user.getOrderGoodsId());
|
|
|
+ informUserAddBo.setRemind("您学习的课程,还有考试未完成");
|
|
|
+ informUserAddBo.setGoodsId(gradeVo.getGoodsId());
|
|
|
+ informUserAddBo.setText("您学习的《"+goods.getGoodsName()+"》课程,还有"+diffV+"套试卷没有考试完成,请尽快完成考试!");
|
|
|
+ iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
+ }
|
|
|
+ if (informRemindVo.getNoteStatus().equals(1)) {
|
|
|
+ InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
|
+ informUserAddBo.setUserId(userVo.getUserId());
|
|
|
+ informUserAddBo.setSendStatus(1);
|
|
|
+ informUserAddBo.setSendTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setRemindId(informRemindVo.getId());
|
|
|
+ informUserAddBo.setGradeId(gradeVo.getGradeId());
|
|
|
+ informUserAddBo.setSystemStatus(3);
|
|
|
+ informUserAddBo.setOrderGoodsId(user.getOrderGoodsId());
|
|
|
+ informUserAddBo.setRemind("您学习的课程,还有考试未完成");
|
|
|
+ informUserAddBo.setGoodsId(gradeVo.getGoodsId());
|
|
|
+ informUserAddBo.setText("您学习的《"+goods.getGoodsName()+"》课程,还有"+diffV+"套试卷没有考试完成,请尽快完成考试!");
|
|
|
+ Map<String, Object> param = new HashMap<>();
|
|
|
+ param.put("goodsName", goods.getGoodsName());
|
|
|
+ param.put("day", "30");
|
|
|
+ /* if (Validator.isNotEmpty(IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), buyNotStudyStudentRemind))) {
|
|
|
+ iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
+ }*/
|
|
|
+ }
|
|
|
+ if (informRemindVo.getGzhTpStatus().equals(1)) {
|
|
|
+ InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
|
+ informUserAddBo.setUserId(userVo.getUserId());
|
|
|
+ informUserAddBo.setSendStatus(1);
|
|
|
+ informUserAddBo.setSendTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setCreateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setUpdateTime(DateUtils.getNowTime());
|
|
|
+ informUserAddBo.setRemindId(informRemindVo.getId());
|
|
|
+ informUserAddBo.setGradeId(gradeVo.getGradeId());
|
|
|
+ informUserAddBo.setSystemStatus(4);
|
|
|
+ informUserAddBo.setOrderGoodsId(user.getOrderGoodsId());
|
|
|
+ informUserAddBo.setRemind("您学习的课程,还有考试未完成");
|
|
|
+ informUserAddBo.setGoodsId(gradeVo.getGoodsId());
|
|
|
+ informUserAddBo.setText("您学习的《"+goods.getGoodsName()+"》课程,还有"+diffV+"套试卷没有考试完成,请尽快完成考试!");
|
|
|
+ Long informId = iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
+ if(Validator.isNotEmpty(userVo.getOpenId())){
|
|
|
+ Map<String,String> paramMap = new HashMap<>();
|
|
|
+ paramMap.put("first","您学习的课程,还有"+diffV+"套试卷没有考试完成");
|
|
|
+ paramMap.put("keyword1",goods.getGoodsName());
|
|
|
+ paramMap.put("keyword2","考试未完成");
|
|
|
+ paramMap.put("remark","↓点我去考试~");
|
|
|
+ paramMap.put("pagepath","pages3/polyv/detail?id=0&goodsId="+gradeVo.getGoodsId()+"&gradeId="+gradeVo.getGradeId()+"&orderGoodsId="+user.getOrderGoodsId()+"&informId="+informId);
|
|
|
+ iWxLoginService.sendSignatureTpMsg(userVo.getOpenId(),paramMap);
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
|
|
|
@Override
|