diff --git a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/PaperManager.java b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/PaperManager.java index 23fa78f..0b8d154 100644 --- a/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/PaperManager.java +++ b/ruoyi-admin/src/main/java/com/ruoyi/web/controller/manager/PaperManager.java @@ -494,7 +494,7 @@ public class PaperManager { // 试题基本信息 ElPaper paper = paperService.getById(paperId); ExamResultRespDTO respDTO = Convert.convert(ExamResultRespDTO.class, paper); - SysUser user = userService.getById(paper.getUserId()); + SysUser user = userService.selectUserById(respDTO.getUserId()); respDTO.setUserName(user.getUserName()); List quList = paperQuService.listForPaperResult(paperId); respDTO.setQuList(quList);