|
@@ -29,7 +29,7 @@ public class PracticeGroupController extends BaseController {
|
|
private PracticeGroupService practiceGroupService;
|
|
private PracticeGroupService practiceGroupService;
|
|
@Autowired
|
|
@Autowired
|
|
private SysUserFeignService sysUserFeignService;
|
|
private SysUserFeignService sysUserFeignService;
|
|
- List<Integer> excludeOrganIds=new ArrayList<>(Arrays.asList(new Integer[]{36,38}));
|
|
|
|
|
|
+ List<Integer> excludeOrganIds=new ArrayList<>(Arrays.asList(new Integer[]{36}));
|
|
|
|
|
|
@ApiOperation("获取学生的陪练课")
|
|
@ApiOperation("获取学生的陪练课")
|
|
@GetMapping(value = "/findUserPracticeCourses")
|
|
@GetMapping(value = "/findUserPracticeCourses")
|
|
@@ -154,6 +154,9 @@ public class PracticeGroupController extends BaseController {
|
|
if (sysUser == null) {
|
|
if (sysUser == null) {
|
|
return failed(HttpStatus.FORBIDDEN, "请登录");
|
|
return failed(HttpStatus.FORBIDDEN, "请登录");
|
|
}
|
|
}
|
|
|
|
+ if(excludeOrganIds.contains(sysUser.getOrganId())){
|
|
|
|
+ throw new BizException("请联系老师确认您的所属分部");
|
|
|
|
+ }
|
|
practiceGroupBuyParams.setStudentId(sysUser.getId());
|
|
practiceGroupBuyParams.setStudentId(sysUser.getId());
|
|
return practiceGroupService.buyPracticeGroup(practiceGroupBuyParams);
|
|
return practiceGroupService.buyPracticeGroup(practiceGroupBuyParams);
|
|
}
|
|
}
|