@@ -31,7 +31,7 @@ public class UploadFileService {
private int maxSize;
/** 支持的扩展名 */
- @Value("${common.upload.supportExtensions:jpg,jpeg,gif,png,mp3,mid,midi,aac,m4a,mp4,xml}")
+ @Value("${common.upload.supportExtensions:jpg,jpeg,gif,png,mp3,mid,midi,aac,m4a,mp4,xml,xlsx,xls,doc,docx,txt,pdf}")
private String supportExtensions;
/** 文件根目录 */
@@ -1418,6 +1418,10 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
//删除班级未开始课程
List<CourseSchedule> courseScheduleList = courseScheduleService.findNoStartCoursesByClassGroupId(classGroupId);
if (courseScheduleList.size() > 0) {
+ List<CourseSchedule> courseSchedules = courseScheduleDao.queryPreCourseListByClassGroupId(classGroupId);
+ if(courseSchedules.size() > 0){
+ throw new BizException("操作失败:该班级存在预排课程");
+ }
List<Long> courseScheduleIds = courseScheduleList.stream().map(courseSchedule -> courseSchedule.getId()).collect(Collectors.toList());
courseScheduleDao.batchDeleteCourseSchedules(courseScheduleIds);
courseScheduleTeacherSalaryDao.batchDeleteByCourseScheduleIds(courseScheduleIds);
@@ -1441,6 +1445,10 @@ public class ClassGroupServiceImpl extends BaseServiceImpl<Integer, ClassGroup>
@@ -174,7 +174,7 @@ public class MusicGroupPaymentCalenderServiceImpl extends BaseServiceImpl<Long,
//该学员是否在其他的会员团
boolean hasMemberGroup = studentRegistrationDao.checkHasMemberGroup(musicGroupId,userId);
if(hasMemberGroup){
- throw new BizException("操作失败:该学员已在其他系统收费团");
+ throw new BizException("操作失败:学员已在其他系统收费乐团中,不可报名该乐团请联系教务老师");
}
@@ -401,7 +401,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
boolean hasMemberGroup = studentRegistrationDao.checkHasMemberGroup(musicGroupId,user.getId());
- throw new BizException("乐团报名失败:该学员已在其他系统收费团");
+ throw new BizException("乐团报名失败:该学员已在其他系统收费乐团中,不可报名该乐团请联系教务老师");
user.setUsername(studentPreRegistration.getUserName());
@@ -726,7 +726,7 @@ public class StudentRegistrationServiceImpl extends BaseServiceImpl<Long, Studen
boolean hasMemberGroup = studentRegistrationDao.checkHasMemberGroup(musicGroupId,sysUser.getId());
+ throw new BizException("操作失败:该学员已在其他系统收费乐团中,不可报名该乐团请联系教务老师");
StudentRegistration oldReg = studentRegistrationDao.getByUserIdAndMusicGroupId(musicGroupId, sysUser.getId());
@@ -252,7 +252,7 @@
AND e.job_nature_ = #{jobNature}
</if>
<if test="search != null">
- AND (su.real_name_ LIKE CONCAT('%',#{search},'%') OR su.phone_ LIKE CONCAT('%',#{search},'%'))
+ AND (su.real_name_ LIKE CONCAT('%',#{search},'%') OR su.phone_ LIKE CONCAT('%',#{search},'%') or su.id_ like CONCAT('%',#{search},'%'))
<if test="roleId != null">
AND sur.role_id_ = #{roleId}
@@ -58,7 +58,7 @@ public class MusicGroupRegisterController extends BaseController {
if(musicGroup.getCourseViewType() == CourseViewTypeEnum.MEMBER_FEE){
boolean hasMemberGroup = studentRegistrationDao.checkHasMemberGroup(musicGroup.getId(), sysUser.getId());
- throw new BizException("乐团报名失败:您已在其他系统收费团");
+ throw new BizException("您已在其他系统收费乐团中,不可报名该乐团请联系教务老师");