|
@@ -248,7 +248,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
String musicGroupId = idGeneratorService.generatorId() + "";
|
|
|
musicGroup.setId(musicGroupId);
|
|
|
if(musicGroup.getStatus() != MusicGroupStatusEnum.DRAFT && musicGroup.getStatus() != MusicGroupStatusEnum.AUDIT){
|
|
|
- throw new Exception("乐团初始状态错误");
|
|
|
+ throw new BizException("乐团初始状态错误");
|
|
|
}
|
|
|
// 保存乐团基本信息
|
|
|
musicGroupDao.insert(musicGroup);
|
|
@@ -631,14 +631,14 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
public void updateSubjectInfo(SubFeeSettingDto subFeeSettingDto) throws Exception {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if(sysUser == null){
|
|
|
- throw new Exception("身份校验失败");
|
|
|
+ throw new BizException("身份校验失败");
|
|
|
}
|
|
|
String musicGroupId = subFeeSettingDto.getMusicGroupId();
|
|
|
//乐团状态是否正确
|
|
|
MusicGroup musicGroup = musicGroupDao.get(musicGroupId);
|
|
|
if(musicGroup != null){
|
|
|
if(subFeeSettingDto.getMusicGroupStatus() == null){
|
|
|
- throw new Exception("参数校验异常");
|
|
|
+ throw new BizException("参数校验异常");
|
|
|
}
|
|
|
if(musicGroup.getStatus() == MusicGroupStatusEnum.DRAFT || musicGroup.getStatus() == MusicGroupStatusEnum.AUDIT_FAILED){
|
|
|
musicGroup.setStatus(subFeeSettingDto.getMusicGroupStatus());
|
|
@@ -671,7 +671,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
musicGroupSubjectGoodsGroupDao.batchInsert(subFeeSettingDto.getMusicGroupSubjectGoodsGroups(), musicGroupId);
|
|
|
}
|
|
|
}else {
|
|
|
- throw new Exception("乐团信息不存在");
|
|
|
+ throw new BizException("乐团信息不存在");
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -688,7 +688,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
public void musicGroupAction(String musicGroupId) throws Exception {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if(sysUser == null){
|
|
|
- throw new Exception("用户信息获取失败");
|
|
|
+ throw new BizException("用户信息获取失败");
|
|
|
}
|
|
|
MusicGroup musicGroup = saveLog(musicGroupId,MusicGroupStatusEnum.PREPARE);
|
|
|
//乐器采购清单是否确认
|
|
@@ -696,13 +696,13 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
param.put("musicGroupId",musicGroupId);
|
|
|
int i = musicGroupPurchaseListDao.queryCount(param);
|
|
|
if(i <= 0){
|
|
|
- throw new Exception("采购清单未确认");
|
|
|
+ throw new BizException("采购清单未确认");
|
|
|
}
|
|
|
//课酬是否确认
|
|
|
Integer courseScheduleNum = courseScheduleDao.countCourseScheduleByMusicGroupId(musicGroupId);
|
|
|
if(courseScheduleNum != null && courseScheduleNum > 0){
|
|
|
if(classGroupService.checkSetSalary(musicGroupId) == false){
|
|
|
- throw new Exception("课酬未确认");
|
|
|
+ throw new BizException("课酬未确认");
|
|
|
}
|
|
|
}
|
|
|
//生成学员费用表
|
|
@@ -738,10 +738,10 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
Date date = new Date();
|
|
|
MusicGroup musicGroup = musicGroupDao.get(musicGroupId);
|
|
|
if(musicGroup == null){
|
|
|
- throw new Exception("乐团信息不存在");
|
|
|
+ throw new BizException("乐团信息不存在");
|
|
|
}
|
|
|
if(musicGroup.getStatus() != statusEnum){
|
|
|
- throw new Exception("当前乐团状态不支持此操作");
|
|
|
+ throw new BizException("当前乐团状态不支持此操作");
|
|
|
}
|
|
|
musicGroup.setUpdateTime(date);
|
|
|
return musicGroup;
|
|
@@ -752,7 +752,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
public void musicGroupAudit(String musicGroupId) throws Exception {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if(sysUser == null){
|
|
|
- throw new Exception("用户信息获取失败");
|
|
|
+ throw new BizException("用户信息获取失败");
|
|
|
}
|
|
|
MusicGroup musicGroup = saveLog(musicGroupId,MusicGroupStatusEnum.DRAFT);
|
|
|
//记录操作日志
|
|
@@ -770,7 +770,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
public void musicGroupAuditFailed(String musicGroupId,String memo) throws Exception {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if(sysUser == null){
|
|
|
- throw new Exception("用户信息获取失败");
|
|
|
+ throw new BizException("用户信息获取失败");
|
|
|
}
|
|
|
MusicGroup musicGroup = saveLog(musicGroupId,MusicGroupStatusEnum.AUDIT);
|
|
|
//记录操作日志
|
|
@@ -785,7 +785,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
public void musicGroupAuditSuccess(String musicGroupId) throws Exception {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if(sysUser == null){
|
|
|
- throw new Exception("用户信息获取失败");
|
|
|
+ throw new BizException("用户信息获取失败");
|
|
|
}
|
|
|
MusicGroup musicGroup = saveLog(musicGroupId,MusicGroupStatusEnum.AUDIT);
|
|
|
//记录操作日志
|
|
@@ -1564,13 +1564,13 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
public void updateBaseInfo(SubFeeSettingDto subFeeSettingDto) throws Exception {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if(sysUser == null){
|
|
|
- throw new Exception("用户信息获取失败");
|
|
|
+ throw new BizException("用户信息获取失败");
|
|
|
}
|
|
|
String musicGroupId = subFeeSettingDto.getMusicGroup().getId();
|
|
|
MusicGroup group = musicGroupDao.get(musicGroupId);
|
|
|
MusicGroup musicGroup = subFeeSettingDto.getMusicGroup();
|
|
|
if(group == null){
|
|
|
- throw new Exception("乐团信息不存在");
|
|
|
+ throw new BizException("乐团信息不存在");
|
|
|
}else if(group.getSchoolId() != musicGroup.getSchoolId()){
|
|
|
//如果已生成课表,那么修改未上课时教学点
|
|
|
courseScheduleDao.updateCourseScheduleSchool("MUSIC",musicGroupId,musicGroup.getSchoolId());
|
|
@@ -1585,7 +1585,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
musicGroupPaymentCalenderDao.batchAdd(months,musicGroupId);
|
|
|
Integer num = musicGroupStudentFeeDao.countStudentNoPayNum(musicGroupId);
|
|
|
if(num > 0){
|
|
|
- throw new Exception("缴费周期更新失败,当前乐团有未缴费的学员");
|
|
|
+ throw new BizException("缴费周期更新失败,当前乐团有未缴费的学员");
|
|
|
}
|
|
|
//修改学员下次缴费日期
|
|
|
musicGroupStudentFeeDao.updateNextPaymentDate(musicGroupId,musicGroupPaymentCalenderService.getNextPaymentDate(musicGroupId));
|
|
@@ -1643,7 +1643,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
public MusicGroup openPay(String musicGroupId, String expireDate) throws Exception {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if(sysUser == null){
|
|
|
- throw new Exception("用户信息获取失败");
|
|
|
+ throw new BizException("用户信息获取失败");
|
|
|
}
|
|
|
MusicGroup musicGroup = saveLog(musicGroupId,MusicGroupStatusEnum.APPLY);
|
|
|
//记录操作日志
|
|
@@ -1716,7 +1716,7 @@ public class MusicGroupServiceImpl extends BaseServiceImpl<String, MusicGroup> i
|
|
|
public void musicGroupFound(String musicGroupId) throws Exception {
|
|
|
SysUser sysUser = sysUserFeignService.queryUserInfo();
|
|
|
if(sysUser == null){
|
|
|
- throw new Exception("用户信息获取失败");
|
|
|
+ throw new BizException("用户信息获取失败");
|
|
|
}
|
|
|
MusicGroup musicGroup = saveLog(musicGroupId,MusicGroupStatusEnum.PAY);
|
|
|
//记录操作日志
|