|
@@ -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;
|
|
@@ -63,6 +64,23 @@ public class VipGroupManageController extends BaseController {
|
|
|
return succeed();
|
|
|
}
|
|
|
|
|
|
+ @ApiOperation(value = "vip修改")
|
|
|
+ @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();
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "vip课申请")
|
|
|
@PostMapping("/vipGroupApply")
|
|
|
@PreAuthorize("@pcs.hasPermissions('vipGroupManage/vipGroupApply')")
|