Kaynağa Gözat

1、课堂作业提交联动服务指标限制;
2、vip课创建无运营主管提示;
3、vip课购买添加学员限制;

Joburgess 5 yıl önce
ebeveyn
işleme
9453a7d88a

+ 2 - 2
mec-biz/src/main/java/com/ym/mec/biz/service/impl/VipGroupServiceImpl.java

@@ -1171,7 +1171,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
         VipGroup vipGroup = vipGroupDao.get(vipGroupBuyParams.getVipGroupId());
 
 
-		if(classGroup.getStudentNum()>1&&(VipGroupStatusEnum.APPLYING.equals(vipGroup.getStatus()))){
+		if(classGroup.getStudentNum()>0&&(VipGroupStatusEnum.APPLYING.equals(vipGroup.getStatus()))){
 			int i = studentPaymentOrderDao.countGroupOrderWithoutFailed(vipGroupBuyParams.getVipGroupId().toString(), GroupType.VIP);
 			if(i<=0){
 				throw new BizException("该课程已经无法通过购买加入,请联系教务老师!");
@@ -2484,7 +2484,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 
 		ClassGroup classGroup = classGroupDao.findByVipGroup(vipGroupId, null);
 
-		if(classGroup.getStudentNum()>1&&(VipGroupStatusEnum.APPLYING.equals(vipGroup.getStatus()))){
+		if(classGroup.getStudentNum()>0&&(VipGroupStatusEnum.APPLYING.equals(vipGroup.getStatus()))){
 			int i = studentPaymentOrderDao.countGroupOrderWithoutFailed(vipGroupId.toString(), GroupType.VIP);
 			if(i>0){
 				throw new BizException("该课程组学员为购买加入,无法添加学员加入,请走学员走购买流程!");