|
@@ -7,9 +7,11 @@ import com.ynfy.buss.exam.userexam.service.IUserExamService;
|
|
|
import io.swagger.annotations.Api;
|
|
|
import io.swagger.annotations.ApiOperation;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
+import org.apache.shiro.SecurityUtils;
|
|
|
import org.jeecg.common.api.vo.Result;
|
|
|
import org.jeecg.common.aspect.annotation.AutoLog;
|
|
|
import org.jeecg.common.system.base.controller.JeecgController;
|
|
|
+import org.jeecg.common.system.vo.LoginUser;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.web.bind.annotation.*;
|
|
|
import org.springframework.web.servlet.ModelAndView;
|
|
@@ -50,6 +52,8 @@ public class UserExamController extends JeecgController<UserExam, IUserExamServi
|
|
|
@RequestParam(name = "pageSize", defaultValue = "10") Integer pageSize,
|
|
|
HttpServletRequest req) {
|
|
|
Page<UserExam> page = new Page<>(pageNo, pageSize);
|
|
|
+ LoginUser user = (LoginUser) SecurityUtils.getSubject().getPrincipal();
|
|
|
+ userExam.setUserId(user.getId());
|
|
|
IPage<UserExam> pageList = userExamService.selectPageList(page, userExam);
|
|
|
return Result.OK(pageList);
|
|
|
}
|