feat:添加判断

pg_adapter
wangxy 9 months ago
parent 344980827a
commit 992ce097ff

@ -81,6 +81,10 @@ public class PaperManager {
private ISysJobService jobService;
@Autowired
private ISysUserService userService;
@Resource
private UserExamManager userExamManager;
@ -490,6 +494,8 @@ public class PaperManager {
// 试题基本信息
ElPaper paper = paperService.getById(paperId);
ExamResultRespDTO respDTO = Convert.convert(ExamResultRespDTO.class, paper);
SysUser user = userService.getById(paper.getUserId());
respDTO.setUserName(user.getUserName());
List<PaperQuDetailDTO> quList = paperQuService.listForPaperResult(paperId);
respDTO.setQuList(quList);
return respDTO;

@ -28,6 +28,9 @@ public class PaperDTO implements Serializable {
@ApiModelProperty(value = "用户ID")
private Long userId;
@ApiModelProperty(value = "用户名")
private String userName;
@ApiModelProperty(value = "部门ID")
private String departId;

Loading…
Cancel
Save