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