|
|
@ -501,11 +501,11 @@ public class CurriculumServiceImpl extends ServiceImpl<CurriculumMapper, Curricu |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
try { |
|
|
|
try { |
|
|
|
// 首先查询是否有订单
|
|
|
|
/*// 首先查询是否有订单
|
|
|
|
Integer count = orderMapper.whetherToRenewTheFeeCount(schoolId, mallId); |
|
|
|
Integer count = orderMapper.whetherToRenewTheFeeCount(schoolId, mallId); |
|
|
|
if (count == null || count == 0) { |
|
|
|
if (count == null || count == 0) { |
|
|
|
return buildResponse(-1); // 没有下过订单,应为试用
|
|
|
|
return buildResponse(-1); // 没有下过订单,应为试用
|
|
|
|
} |
|
|
|
}*/ |
|
|
|
|
|
|
|
|
|
|
|
SchoolCourseRes res = orderMapper.whetherToRenewTheFee(schoolId, mallId); // 返回是否续费 0表示没有该月订单的课程(显示续约按钮)
|
|
|
|
SchoolCourseRes res = orderMapper.whetherToRenewTheFee(schoolId, mallId); // 返回是否续费 0表示没有该月订单的课程(显示续约按钮)
|
|
|
|
// 1表示正常显示课程
|
|
|
|
// 1表示正常显示课程
|
|
|
|