|
@@ -20,7 +20,6 @@ import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.dal.BaseDAO;
|
|
|
import com.ym.mec.common.entity.HttpResponseResult;
|
|
|
import com.ym.mec.common.exception.BizException;
|
|
|
-import com.ym.mec.common.page.PageInfo;
|
|
|
import com.ym.mec.common.service.IdGeneratorService;
|
|
|
import com.ym.mec.common.service.impl.BaseServiceImpl;
|
|
|
import com.ym.mec.thirdparty.adapay.Payment;
|
|
@@ -189,7 +188,7 @@ public class MemberRankSettingServiceImpl extends BaseServiceImpl<Integer, Membe
|
|
|
}
|
|
|
|
|
|
// 是否已被购买
|
|
|
- int count = cloudTeacherOrderDao.countByMemberRankSetttingId(memberRankSettingId);
|
|
|
+ int count = cloudTeacherOrderDao.countByMemberRankSettingId(memberRankSettingId);
|
|
|
result.setBuyFlag(count > 0);
|
|
|
|
|
|
// 查询上级
|
|
@@ -1159,7 +1158,7 @@ public class MemberRankSettingServiceImpl extends BaseServiceImpl<Integer, Membe
|
|
|
// 判断是否买过
|
|
|
|
|
|
// 是否已被购买
|
|
|
- int count = cloudTeacherOrderDao.countByMemberRankSetttingId(id);
|
|
|
+ int count = cloudTeacherOrderDao.countByMemberRankSettingId(id);
|
|
|
if (count > 0) {
|
|
|
throw new BizException("存在学员使用、或销售,不可删除");
|
|
|
}
|