|
@@ -1,6 +1,7 @@
|
|
|
package com.ym.mec.biz.service.impl;
|
|
|
|
|
|
import com.ym.mec.biz.dal.dto.ConditionDto;
|
|
|
+import com.ym.mec.common.exception.BizException;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
|
|
|
@@ -11,6 +12,7 @@ import com.ym.mec.common.dal.BaseDAO;
|
|
|
import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
|
|
|
|
import java.util.List;
|
|
|
+import java.util.Objects;
|
|
|
|
|
|
@Service
|
|
|
public class VipGroupCategoryServiceImpl extends BaseServiceImpl<Integer, VipGroupCategory> implements VipGroupCategoryService {
|
|
@@ -29,6 +31,14 @@ public class VipGroupCategoryServiceImpl extends BaseServiceImpl<Integer, VipGro
|
|
|
}
|
|
|
|
|
|
@Override
|
|
|
+ public List<VipGroupCategory> findTeacherSalary(Integer userId) {
|
|
|
+ if(Objects.isNull(userId)){
|
|
|
+ throw new BizException("请确定教师");
|
|
|
+ }
|
|
|
+ return vipGroupCategoryDao.findTeacherDefaultSalary(userId);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override
|
|
|
public List<ConditionDto> findConditionCategorys() {
|
|
|
return vipGroupCategoryDao.findConditionCategorys();
|
|
|
}
|