Browse Source

活动排课

zouxuan 4 years ago
parent
commit
cc0277d509

+ 1 - 3
mec-biz/src/main/java/com/ym/mec/biz/service/impl/PracticeGroupServiceImpl.java

@@ -4805,7 +4805,7 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
         }
 
         int repeatVipGroups = practiceGroupDao.countUserRepeatPracticeGroupInCourseStartEndTime(applyBaseInfo.getUserId(), firstCourseSchedule.getStartClassTime(), latestCourseSchedule.getEndClassTime());
-        if(repeatVipGroups>0){
+        if(repeatVipGroups > 0){
             SysUser sysUser = sysUserFeignService.queryUserById(applyBaseInfo.getUserId());
             throw new BizException("{}课程时间冲突({}-{})", sysUser.getRealName(), DateUtil.dateToString(firstCourseSchedule.getStartClassTime(), "yyyy-MM-dd HH:mm:ss"), DateUtil.dateToString(latestCourseSchedule.getEndClassTime(), "HH:mm:ss"));
         }
@@ -4914,8 +4914,6 @@ public class PracticeGroupServiceImpl extends BaseServiceImpl<Long, PracticeGrou
         courseScheduleTeacherSalaryService.createCourseScheduleTeacherPracticeSalary(courseSchedules,
                 classGroupTeacherSalary.getOnlineClassesSalary());
 
-        SysUser sysUser = sysUserFeignService.queryUserById(applyBaseInfo.getUserId());
-
         List<ClassGroupStudentMapper> classGroupStudents = classGroupStudentMapperDao.findByClassGroup(classGroup.getId());
 
         Map<Integer,String> userRoleMap = new HashMap<>();