|
@@ -269,6 +269,9 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
|
|
|
calendarEntity.setFullCourse(0);// 0:未满 1满
|
|
|
} else {
|
|
|
//将日历时间与课程时间进行对比,如果有交集则将日历的时间数据删除
|
|
|
+ if (CollectionUtils.isEmpty(calendarEntity.getCourseTime())) {
|
|
|
+ return;
|
|
|
+ }
|
|
|
Iterator<CourseTimeEntity> iterator = calendarEntity.getCourseTime().iterator();
|
|
|
while (iterator.hasNext()) {
|
|
|
CourseTimeEntity next = iterator.next();
|
|
@@ -647,7 +650,7 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
|
|
|
List<Long> userList = paymentDao.selectAll();
|
|
|
//取差集
|
|
|
userList.removeAll(studentList);
|
|
|
- if (userList.isEmpty()) {
|
|
|
+ if (CollectionUtils.isEmpty(userList)) {
|
|
|
return page.setRecords(new ArrayList<>());
|
|
|
}
|
|
|
search.setRepliedIds(userList);
|
|
@@ -908,7 +911,7 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
|
|
|
log.info("buyPracticeCourseSuccess param:{}", JSON.toJSONString(orderParam));
|
|
|
String orderNo = orderParam.getOrderNo();
|
|
|
List<CourseScheduleStudentPaymentVo> paymentList = paymentDao.selectPaymentList(orderNo);
|
|
|
- if (paymentList.isEmpty()) {
|
|
|
+ if (CollectionUtils.isEmpty(paymentList)) {
|
|
|
throw new BizException("订单不存在!");
|
|
|
}
|
|
|
|
|
@@ -961,7 +964,7 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
|
|
|
String orderNo = orderParam.getOrderNo();
|
|
|
List<CourseScheduleStudentPayment> paymentList = paymentDao.selectList(Wrappers.<CourseScheduleStudentPayment>lambdaQuery()
|
|
|
.eq(CourseScheduleStudentPayment::getOrderNo, orderNo));
|
|
|
- if (paymentList.isEmpty()) {
|
|
|
+ if (CollectionUtils.isEmpty(paymentList)) {
|
|
|
throw new BizException("订单不存在!");
|
|
|
}
|
|
|
|
|
@@ -1104,6 +1107,13 @@ public class CourseScheduleServiceImpl extends ServiceImpl<CourseScheduleDao, Co
|
|
|
* @Date: 2022/5/6
|
|
|
*/
|
|
|
public void courseRemind(){
|
|
|
+ String tomorrow = new SimpleDateFormat("yyyy-MM-dd").format(DateUtil.addDays1(new Date(), 1));
|
|
|
+ //查询明天有课的老师
|
|
|
+ List<SysUser> userList=baseMapper.selectTeacher(tomorrow);
|
|
|
+ if (CollectionUtils.isNotEmpty(userList)){
|
|
|
+ for (SysUser sysUser : userList) {
|
|
|
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
}
|