|
@@ -11,6 +11,7 @@ import org.apache.commons.lang3.StringUtils;
|
|
|
import org.slf4j.Logger;
|
|
|
import org.slf4j.LoggerFactory;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
+import org.springframework.http.HttpStatus;
|
|
|
import org.springframework.http.MediaType;
|
|
|
import org.springframework.web.bind.annotation.GetMapping;
|
|
|
import org.springframework.web.bind.annotation.PostMapping;
|
|
@@ -53,6 +54,8 @@ public class StudentManageController extends BaseController {
|
|
|
private SubjectService subjectService;
|
|
|
@Autowired
|
|
|
private OrganizationService organizationService;
|
|
|
+ @Autowired
|
|
|
+ private StudentService studentService;
|
|
|
|
|
|
private final static Logger LOGGER = LoggerFactory.getLogger(StudentManageController.class);
|
|
|
|
|
@@ -88,6 +91,18 @@ public class StudentManageController extends BaseController {
|
|
|
return succeed();
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+ @ApiOperation(value = "获取学员基本信息")
|
|
|
+ @GetMapping("student/queryUserInfo")
|
|
|
+ public Object queryUserInfo() {
|
|
|
+ SysUser user = sysUserFeignService.queryUserInfo();
|
|
|
+ if (user == null) {
|
|
|
+ return failed(HttpStatus.FORBIDDEN, "请登录");
|
|
|
+ }
|
|
|
+ Student student = studentService.get(user.getId());
|
|
|
+ return succeed(student);
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "根据群编号,获取群组所有成员基本信息")
|
|
|
@GetMapping("classGroup/findGroupUsers")
|
|
|
public Object findGroupUsers(Integer groupId,String search) {
|