|
@@ -1,5 +1,6 @@
|
|
|
package com.ym.mec.student.controller;
|
|
|
|
|
|
+import com.ym.mec.biz.service.*;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import io.swagger.annotations.ApiParam;
|
|
@@ -10,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;
|
|
@@ -22,15 +24,6 @@ import com.ym.mec.auth.api.entity.SysUser;
|
|
|
import com.ym.mec.biz.dal.dto.CashAccountDetail;
|
|
|
import com.ym.mec.biz.dal.entity.SysSuggestion;
|
|
|
import com.ym.mec.biz.dal.entity.SysUserBankCard;
|
|
|
-import com.ym.mec.biz.service.ClassGroupService;
|
|
|
-import com.ym.mec.biz.service.ImGroupNoticeService;
|
|
|
-import com.ym.mec.biz.service.StudentManageService;
|
|
|
-import com.ym.mec.biz.service.SubjectService;
|
|
|
-import com.ym.mec.biz.service.SysSuggestionService;
|
|
|
-import com.ym.mec.biz.service.SysUserBankCardService;
|
|
|
-import com.ym.mec.biz.service.SysUserCashAccountDetailService;
|
|
|
-import com.ym.mec.biz.service.SysUserCashAccountService;
|
|
|
-import com.ym.mec.biz.service.UploadFileService;
|
|
|
import com.ym.mec.common.controller.BaseController;
|
|
|
import com.ym.mec.common.entity.UploadReturnBean;
|
|
|
import com.ym.mec.common.filters.TenantIdThreadLocal;
|
|
@@ -59,6 +52,8 @@ public class StudentManageController extends BaseController {
|
|
|
private StudentManageService studentManageService;
|
|
|
@Autowired
|
|
|
private SubjectService subjectService;
|
|
|
+ @Autowired
|
|
|
+ private StudentService studentService;
|
|
|
|
|
|
private final static Logger LOGGER = LoggerFactory.getLogger(StudentManageController.class);
|
|
|
|
|
@@ -94,6 +89,17 @@ 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, "请登录");
|
|
|
+ }
|
|
|
+ return succeed(studentService.get(user.getId()));
|
|
|
+ }
|
|
|
+
|
|
|
@ApiOperation(value = "根据群编号,获取群组所有成员基本信息")
|
|
|
@GetMapping("classGroup/findGroupUsers")
|
|
|
public Object findGroupUsers(Integer groupId,String search) {
|