|  | @@ -10,6 +10,7 @@ import com.ym.mec.biz.dal.dto.VipGroupApplyDto;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.*;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.entity.StudentApplyRefunds.StudentApplyRefundsStatus;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.enums.AuditStatusEnum;
 | 
	
		
			
				|  |  | +import com.ym.mec.biz.dal.enums.VipGroupStatusEnum;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.page.VipGroupAttendanceQueryInfo;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.page.VipGroupQueryInfo;
 | 
	
		
			
				|  |  |  import com.ym.mec.biz.dal.page.VipGroupSalaryQueryInfo;
 | 
	
	
		
			
				|  | @@ -67,6 +68,15 @@ public class VipGroupManageController extends BaseController {
 | 
	
		
			
				|  |  |      @PostMapping("/update")
 | 
	
		
			
				|  |  |      @PreAuthorize("@pcs.hasPermissions('vipGroupManage/update')")
 | 
	
		
			
				|  |  |      public HttpResponseResult update(VipGroup vipGroup){
 | 
	
		
			
				|  |  | +        if(Objects.nonNull(vipGroup.getCoursesExpireDate())){
 | 
	
		
			
				|  |  | +            VipGroup oldVipGroup = vipGroupService.get(vipGroup.getId());
 | 
	
		
			
				|  |  | +            if(Objects.isNull(oldVipGroup)){
 | 
	
		
			
				|  |  | +                throw new BizException("此课程组不存在");
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +            if(!VipGroupStatusEnum.PROGRESS.equals(oldVipGroup.getStatus())){
 | 
	
		
			
				|  |  | +                throw new BizException("此课程组状态暂不支持修改");
 | 
	
		
			
				|  |  | +            }
 | 
	
		
			
				|  |  | +        }
 | 
	
		
			
				|  |  |          vipGroupService.update(vipGroup);
 | 
	
		
			
				|  |  |          return succeed();
 | 
	
		
			
				|  |  |      }
 |