|
@@ -38,8 +38,8 @@ public class VipGroupDefaultClassesUnitPriceServiceImpl extends BaseServiceImpl<
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
- public BigDecimal getAmount(Integer organId, BigDecimal courseNum) {
|
|
|
- VipGroupDefaultClassesUnitPrice vipGroupDefaultClassesUnitPrice = Optional.ofNullable(vipGroupDefaultClassesUnitPriceDao.getByVipGroup(organId.longValue())).
|
|
|
+ public BigDecimal getAmount(Integer categoryId,Integer organId, BigDecimal courseNum) {
|
|
|
+ VipGroupDefaultClassesUnitPrice vipGroupDefaultClassesUnitPrice = Optional.ofNullable(vipGroupDefaultClassesUnitPriceDao.getByVipGroupCategory(categoryId,organId)).
|
|
|
orElseThrow(()->new BizException("课程单价设置错误"));
|
|
|
return vipGroupDefaultClassesUnitPrice.getOnlineClassesUnitPrice().multiply(courseNum);
|
|
|
}
|