Explorar el Código

1、vip课列表增加字段;
2、vip课导出增加字段;
3、vip课加学员限制;
4、vip课休学限制;

Joburgess hace 5 años
padre
commit
ef2d68a89f

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

@@ -1574,12 +1574,9 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 		if(Objects.isNull(vipGroup)){
 			throw new BizException("指定的课程不存在");
 		}
-		if(vipGroup.getStatus().equals(VipGroupStatusEnum.CANCEL)){
-			throw new BizException("不能对已停止的课程进行此操作");
-		}
-		if(vipGroup.getStatus().equals(VipGroupStatusEnum.FINISHED)){
-			throw new BizException("此课程已结束");
-		}
+        if(!VipGroupStatusEnum.PROGRESS.equals(vipGroup.getStatus())){
+            throw new BizException("无法进行该操作");
+        }
 		List<StudentApplyRefunds> studentApplyRefunds = studentApplyRefundsDao.findByGroupAndUser(vipGroupId.toString(), GroupType.VIP.getCode(), studentId);
 		if(!CollectionUtils.isEmpty(studentApplyRefunds)){
 			throw new BizException("此学生存在退课申请,请到系统日志中查看");
@@ -2459,7 +2456,7 @@ public class VipGroupServiceImpl extends BaseServiceImpl<Long, VipGroup> impleme
 		}
 		if(Objects.isNull(vipGroupId)){
 			throw new BizException("请指定vip课程");
-		}
+//		}
 		VipGroup vipGroup=vipGroupDao.get(vipGroupId);
 		if(Objects.isNull(vipGroup)){
 			throw new BizException("未找到指定的vip课程");