|
@@ -5,6 +5,7 @@ import com.ym.mec.auth.api.entity.SysUser;
|
|
|
import com.ym.mec.biz.dal.entity.PracticeGroup;
|
|
|
import com.ym.mec.biz.service.PracticeGroupService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
+import com.ym.mec.common.exception.BizException;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -67,6 +68,9 @@ public class PracticeGroupController extends BaseController {
|
|
|
if (sysUser == null) {
|
|
|
return failed(HttpStatus.FORBIDDEN, "请登录");
|
|
|
}
|
|
|
+ if("36".equals(sysUser.getOrganId())){
|
|
|
+ throw new BizException("暂无预约资格");
|
|
|
+ }
|
|
|
practiceGroup.setStudentId(sysUser.getId());
|
|
|
return succeed(practiceGroupService.practiceApply(practiceGroup));
|
|
|
}
|