Explorar el Código

考试业务功能,考试列表学生查询按账号搜索

zhaosongshan hace 7 meses
padre
commit
35ffbdbe51

+ 2 - 2
snowy-plugin/snowy-plugin-exam/snowy-plugin-exam-func/src/main/java/vip/xiaonuo/exam/controller/student/TExamController.java

@@ -63,10 +63,10 @@ public class TExamController extends BaseApiController {
     @GetMapping("/page")
     public CommonResult<Page<TExam>> page(TExamPageParam tExamPageParam) {
         SaBaseLoginUser currentUser = getCurrentUser();
-        if(currentUser == null || currentUser.getId() == null){
+        if(currentUser == null || currentUser.getAccount() == null){
             throw new RuntimeException("未登录!!!");
         }
-        tExamPageParam.setUserId(currentUser.getId());
+        tExamPageParam.setUserId(currentUser.getAccount());
         return CommonResult.data(tExamService.page(tExamPageParam));
     }