|
@@ -335,6 +335,9 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
@Value("${aliyun.sms.todayExamNotRecordTeachWarn}")
|
|
|
private String todayExamNotRecordTeachWarn;
|
|
|
|
|
|
+ @Value("${aliyun.sms.noFinishExamNoteCode}")
|
|
|
+ private String noFinishExamNoteCode;
|
|
|
+
|
|
|
@Autowired
|
|
|
private RedisCache redisCache;
|
|
|
|
|
@@ -2862,10 +2865,10 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
public void noFinishExamToStudentThree(UserQueryBo bo) {
|
|
|
//3天要结束
|
|
|
Calendar cal1 = new GregorianCalendar();
|
|
|
- cal1.add(Calendar.DATE, -4);
|
|
|
+ cal1.add(Calendar.DATE, 3);
|
|
|
Long startTime = cal1.getTimeInMillis() / 1000;
|
|
|
Calendar cal2 = new GregorianCalendar();
|
|
|
- cal2.add(Calendar.DATE, -3);
|
|
|
+ cal2.add(Calendar.DATE, 4);
|
|
|
Long endTime = cal2.getTimeInMillis() / 1000;
|
|
|
ClassGradeQueryBo queryBo = new ClassGradeQueryBo();
|
|
|
queryBo.setStartTime(startTime);
|
|
@@ -2875,6 +2878,7 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
for(ClassGradeVo gradeVo : gradeVoList){
|
|
|
List<ClassGradeVo> userList = iCourseService.gradeIdUserSelect(gradeVo.getGoodsId(),gradeVo.getGradeId());
|
|
|
for(ClassGradeVo user : userList){
|
|
|
+ System.out.println(user);
|
|
|
if(user.getExamNum().longValue()!=user.getRecordNum().longValue()){
|
|
|
Long diffV = user.getExamNum() - user.getRecordNum();
|
|
|
SubjectStudyRecordQueryBo subjectStudyRecordQueryBo = new SubjectStudyRecordQueryBo();
|
|
@@ -2888,9 +2892,13 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
secLong = new BigDecimal(secLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getSectionNum().toString())).longValue();
|
|
|
studyLong = new BigDecimal(studyLong.toString()).add(new BigDecimal(subjectStudyRecordVo.getRecordNum().toString())).longValue();
|
|
|
}
|
|
|
+ System.out.println(secLong);
|
|
|
+ System.out.println(studyLong);
|
|
|
if(secLong.longValue()==studyLong.longValue()){
|
|
|
GoodsVo goods = iGoodsService.queryById(gradeVo.getGoodsId());
|
|
|
+ System.out.println(goods);
|
|
|
if (!CollectionUtils.isEmpty(informRemindVo.getInformRemindBusiness()) && !CollectionUtils.isEmpty(informRemindVo.getInformRemindBusiness().stream().filter(informRemindBusinessVo -> informRemindBusinessVo.getBusinessId().equals(goods.getBusinessId())).collect(Collectors.toList()))) {
|
|
|
+ System.out.println(232323);
|
|
|
UserVo userVo = iUserService.queryById(user.getUserId());
|
|
|
if (informRemindVo.getWayStatus().equals(1)) {
|
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
@@ -2923,11 +2931,11 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
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))) {
|
|
|
+ param.put("goods", goods.getGoodsName());
|
|
|
+ param.put("num", diffV);
|
|
|
+ if (Validator.isNotEmpty(IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), noFinishExamNoteCode))) {
|
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
- }*/
|
|
|
+ }
|
|
|
}
|
|
|
if (informRemindVo.getGzhTpStatus().equals(1)) {
|
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
@@ -2965,10 +2973,10 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
public void noFinishExamToStudentFive(UserQueryBo bo) {
|
|
|
//5天要结束
|
|
|
Calendar cal1 = new GregorianCalendar();
|
|
|
- cal1.add(Calendar.DATE, -6);
|
|
|
+ cal1.add(Calendar.DATE, 5);
|
|
|
Long startTime = cal1.getTimeInMillis() / 1000;
|
|
|
Calendar cal2 = new GregorianCalendar();
|
|
|
- cal2.add(Calendar.DATE, -5);
|
|
|
+ cal2.add(Calendar.DATE, 6);
|
|
|
Long endTime = cal2.getTimeInMillis() / 1000;
|
|
|
ClassGradeQueryBo queryBo = new ClassGradeQueryBo();
|
|
|
queryBo.setStartTime(startTime);
|
|
@@ -3026,11 +3034,11 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
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))) {
|
|
|
+ param.put("goods", goods.getGoodsName());
|
|
|
+ param.put("num", diffV);
|
|
|
+ if (Validator.isNotEmpty(IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), noFinishExamNoteCode))) {
|
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
- }*/
|
|
|
+ }
|
|
|
}
|
|
|
if (informRemindVo.getGzhTpStatus().equals(1)) {
|
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|
|
@@ -3068,10 +3076,10 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
public void noFinishExamToStudentSeven(UserQueryBo bo) {
|
|
|
//7天要结束
|
|
|
Calendar cal1 = new GregorianCalendar();
|
|
|
- cal1.add(Calendar.DATE, -8);
|
|
|
+ cal1.add(Calendar.DATE, 7);
|
|
|
Long startTime = cal1.getTimeInMillis() / 1000;
|
|
|
Calendar cal2 = new GregorianCalendar();
|
|
|
- cal2.add(Calendar.DATE, -7);
|
|
|
+ cal2.add(Calendar.DATE, 8);
|
|
|
Long endTime = cal2.getTimeInMillis() / 1000;
|
|
|
ClassGradeQueryBo queryBo = new ClassGradeQueryBo();
|
|
|
queryBo.setStartTime(startTime);
|
|
@@ -3129,11 +3137,11 @@ public class ScheduleServiceImpl extends ServiceImpl<PolyvVideoMapper, PolyvVide
|
|
|
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))) {
|
|
|
+ param.put("goods", goods.getGoodsName());
|
|
|
+ param.put("num", diffV);
|
|
|
+ if (Validator.isNotEmpty(IAliSmsService.sendInformSms(userVo.getTelphone(), JSON.toJSONString(param), noFinishExamNoteCode))) {
|
|
|
iInformUserService.insertByAddBo(informUserAddBo);
|
|
|
- }*/
|
|
|
+ }
|
|
|
}
|
|
|
if (informRemindVo.getGzhTpStatus().equals(1)) {
|
|
|
InformUserAddBo informUserAddBo = new InformUserAddBo();
|