|
@@ -58,15 +58,10 @@ public class TeacherController extends BaseController {
|
|
|
@GetMapping("/detail/{id}")
|
|
|
@ApiOperation(value = "详情", notes = "传入id")
|
|
|
public HttpResponseResult<TeacherVo> detail(@PathVariable("id") Long userId) {
|
|
|
- TenantInfo tenantInfo = getTenantInfo();
|
|
|
-
|
|
|
TeacherVo detail = teacherService.findTeacherDetailInfo(userId);
|
|
|
if (detail == null) {
|
|
|
throw new BizException("数据不存在");
|
|
|
}
|
|
|
- if (tenantInfo.getId().equals(detail.getTenantId())) {
|
|
|
- throw new BizException("非法请求");
|
|
|
- }
|
|
|
if (!CollectionUtils.isEmpty(detail.getStyleVideo())) {
|
|
|
List<TeacherStyleVideo> styleVideo = detail.getStyleVideo();
|
|
|
List<TeacherStyleVideo> collect =
|