|  | @@ -1,23 +1,34 @@
 | 
	
		
			
				|  |  |  package com.yonge.cooleshow.teacher.controller;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | -import java.util.List;
 | 
	
		
			
				|  |  | -import com.baomidou.mybatisplus.core.metadata.IPage;
 | 
	
		
			
				|  |  | -
 | 
	
		
			
				|  |  | -import com.yonge.cooleshow.biz.dal.support.Condition;
 | 
	
		
			
				|  |  | -import com.yonge.cooleshow.biz.dal.support.Query;
 | 
	
		
			
				|  |  | -import com.yonge.cooleshow.common.controller.BaseController;
 | 
	
		
			
				|  |  | -import com.yonge.cooleshow.common.entity.HttpResponseResult;
 | 
	
		
			
				|  |  | -import com.yonge.toolset.utils.string.StringUtil;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.Api;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.ApiOperation;
 | 
	
		
			
				|  |  |  import io.swagger.annotations.ApiParam;
 | 
	
		
			
				|  |  | -import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | -import org.springframework.web.bind.annotation.*;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +import java.util.List;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  import javax.validation.Valid;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +import org.apache.commons.lang3.StringUtils;
 | 
	
		
			
				|  |  | +import org.springframework.beans.factory.annotation.Autowired;
 | 
	
		
			
				|  |  | +import org.springframework.http.HttpStatus;
 | 
	
		
			
				|  |  | +import org.springframework.web.bind.annotation.GetMapping;
 | 
	
		
			
				|  |  | +import org.springframework.web.bind.annotation.PostMapping;
 | 
	
		
			
				|  |  | +import org.springframework.web.bind.annotation.RequestBody;
 | 
	
		
			
				|  |  | +import org.springframework.web.bind.annotation.RequestMapping;
 | 
	
		
			
				|  |  | +import org.springframework.web.bind.annotation.RequestParam;
 | 
	
		
			
				|  |  | +import org.springframework.web.bind.annotation.RestController;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +import com.baomidou.mybatisplus.core.metadata.IPage;
 | 
	
		
			
				|  |  | +import com.yonge.cooleshow.auth.api.client.SysUserFeignService;
 | 
	
		
			
				|  |  | +import com.yonge.cooleshow.auth.api.entity.SysUser;
 | 
	
		
			
				|  |  | +import com.yonge.cooleshow.biz.dal.dao.SubjectDao;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.biz.dal.entity.Teacher;
 | 
	
		
			
				|  |  |  import com.yonge.cooleshow.biz.dal.service.TeacherService;
 | 
	
		
			
				|  |  | +import com.yonge.cooleshow.biz.dal.support.Condition;
 | 
	
		
			
				|  |  | +import com.yonge.cooleshow.biz.dal.support.Query;
 | 
	
		
			
				|  |  | +import com.yonge.cooleshow.common.controller.BaseController;
 | 
	
		
			
				|  |  | +import com.yonge.cooleshow.common.entity.HttpResponseResult;
 | 
	
		
			
				|  |  | +import com.yonge.toolset.utils.string.StringUtil;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  |  @RestController
 | 
	
		
			
				|  |  |  @RequestMapping("/Teacher")
 | 
	
	
		
			
				|  | @@ -27,6 +38,24 @@ public class TeacherController extends BaseController {
 | 
	
		
			
				|  |  |      @Autowired
 | 
	
		
			
				|  |  |      private TeacherService teacherService;
 | 
	
		
			
				|  |  |  
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private SysUserFeignService sysUserFeignService;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @Autowired
 | 
	
		
			
				|  |  | +    private SubjectDao subjectDao;
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +    @ApiOperation(value = "根据教师编号查询教师基本信息")
 | 
	
		
			
				|  |  | +    @GetMapping("/queryUserInfo")
 | 
	
		
			
				|  |  | +    public Object queryUserInfo() {
 | 
	
		
			
				|  |  | +    	SysUser user = sysUserFeignService.queryUserInfo();
 | 
	
		
			
				|  |  | +		if (user == null) {
 | 
	
		
			
				|  |  | +			return failed(HttpStatus.FORBIDDEN, "请登录");
 | 
	
		
			
				|  |  | +		}
 | 
	
		
			
				|  |  | +		Teacher teacher = teacherService.getById(user.getId());
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  | +		return succeed(teacher);
 | 
	
		
			
				|  |  | +    }
 | 
	
		
			
				|  |  | +
 | 
	
		
			
				|  |  |  	/**
 | 
	
		
			
				|  |  |       * 查询单条
 | 
	
		
			
				|  |  |       */
 |