|
@@ -285,8 +285,12 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
//生成vip课信息
|
|
|
List<String> bySubIds = subjectDao.findBySubIds(vipGroupApplyBaseInfoDto.getSubjectIdList());
|
|
|
StringBuffer className=new StringBuffer();
|
|
|
- className.append(StringUtils.join(bySubIds,","));
|
|
|
- className.append(vipGroupCategory.getName());
|
|
|
+ if(Objects.isNull(vipGroupCategory.getMusicTheory())||!vipGroupCategory.getMusicTheory()){
|
|
|
+ className.append(StringUtils.join(bySubIds,","));
|
|
|
+ className.append(vipGroupCategory.getName());
|
|
|
+ }else{
|
|
|
+ className.append("乐理课•");
|
|
|
+ }
|
|
|
className.append(StringUtils.join(studentNames, ","));
|
|
|
vipGroupApplyBaseInfoDto.setName(className.toString());
|
|
|
|
|
@@ -948,7 +952,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
|
|
|
VipGroupCategory vipGroupCategory = vipGroupCategoryDao.get(vipGroup.getVipGroupCategoryId().intValue());
|
|
|
if(Objects.isNull(vipGroupCategory)){
|
|
|
- throw new BizException("未找到课程形式");
|
|
|
+ throw new BizException("课程形式不存在");
|
|
|
}
|
|
|
|
|
|
TeacherDefaultVipGroupSalary teacherDefaultVipGroupSalary = teacherDefaultVipGroupSalaryDao.findByTeacherAndCategory(teacherId,
|
|
@@ -1009,6 +1013,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
throw new BizException("课程单价异常");
|
|
|
}
|
|
|
BigDecimal onlineVipGroupCharge = onlineClassesUnitPrice.multiply(onlineClassNum);
|
|
|
+
|
|
|
BigDecimal offlineClassesUnitPrice=vipGroup.getOfflineClassesUnitPrice();
|
|
|
if(Objects.isNull(offlineClassesUnitPrice)){
|
|
|
throw new BizException("课程单价异常");
|
|
@@ -1017,10 +1022,6 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
|
|
|
BigDecimal totalClassNum=offlineClassNum.add(onlineClassNum);
|
|
|
BigDecimal teacherOnlineSalary=null,teacherOfflineSalary=null;
|
|
|
|
|
|
- if(Objects.isNull(vipGroupActivity.getType())){
|
|
|
- throw new BizException("此活动未设置活动类型");
|
|
|
- }
|
|
|
-
|
|
|
//课程购买费用计算
|
|
|
BigDecimal totalPrice;
|
|
|
switch (vipGroupActivity.getType()){
|