|
@@ -265,8 +265,11 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
ClassGradeVo classGradeVo = this.queryById(bo.getGradeId());
|
|
ClassGradeVo classGradeVo = this.queryById(bo.getGradeId());
|
|
|
|
|
+
|
|
|
//开班发送短信
|
|
//开班发送短信
|
|
|
- if (update.getClassStatus() != null && update.getClassStatus().equals(1) && (classGradeVo.getClassStatus() == null || classGradeVo.getClassStatus().equals(0))) {
|
|
|
|
|
|
|
+ if ( update.getClassStatus() != null && update.getClassStatus().equals(1) && (classGradeVo.getClassStatus() == null || classGradeVo.getClassStatus().equals(0))) {
|
|
|
|
|
+ classGradeVo.setClassStartTime(update.getClassStartTime());
|
|
|
|
|
+ classGradeVo.setClassEndTime(update.getClassEndTime());
|
|
|
sendClassSMS(classGradeVo);
|
|
sendClassSMS(classGradeVo);
|
|
|
}
|
|
}
|
|
|
return this.updateById(update);
|
|
return this.updateById(update);
|
|
@@ -280,7 +283,8 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
|
if (!CollectionUtils.isEmpty(informRemindVo.getInformRemindBusiness())) {
|
|
if (!CollectionUtils.isEmpty(informRemindVo.getInformRemindBusiness())) {
|
|
|
Long businessId = 0L;
|
|
Long businessId = 0L;
|
|
|
for (InformRemindBusinessVo informRemindBusiness : informRemindVo.getInformRemindBusiness()) {
|
|
for (InformRemindBusinessVo informRemindBusiness : informRemindVo.getInformRemindBusiness()) {
|
|
|
- businessId += baseMapper.querClassSMS(classGradeVo.getGradeId(), informRemindBusiness.getBusinessId());
|
|
|
|
|
|
|
+ Long rs = baseMapper.querClassSMS(classGradeVo.getGradeId(), informRemindBusiness.getBusinessId());
|
|
|
|
|
+ businessId += rs;
|
|
|
}
|
|
}
|
|
|
String endTime;
|
|
String endTime;
|
|
|
String startTime;
|
|
String startTime;
|
|
@@ -288,7 +292,7 @@ public class ClassGradeServiceImpl extends ServiceImpl<ClassGradeMapper, ClassGr
|
|
|
Long timeId = classGradeVo.getClassEndTime()*1000;
|
|
Long timeId = classGradeVo.getClassEndTime()*1000;
|
|
|
Date date = new Date(timeId);
|
|
Date date = new Date(timeId);
|
|
|
endTime = simpleDateFormat.format(date);
|
|
endTime = simpleDateFormat.format(date);
|
|
|
- Long timeSId = classGradeVo.getClassEndTime()*1000;
|
|
|
|
|
|
|
+ Long timeSId = classGradeVo.getClassStartTime()*1000;
|
|
|
Date dateS = new Date(timeSId);
|
|
Date dateS = new Date(timeSId);
|
|
|
startTime = simpleDateFormat.format(dateS);
|
|
startTime = simpleDateFormat.format(dateS);
|
|
|
List<Long> userIds = baseMapper.queryUser(classGradeVo.getGradeId());
|
|
List<Long> userIds = baseMapper.queryUser(classGradeVo.getGradeId());
|