|
@@ -179,4 +179,21 @@ public class InformUserServiceImpl extends ServiceImpl<InformUserMapper, InformU
|
|
|
public List<ExamUserApplyVo> listUserApply() {
|
|
|
return baseMapper.listUserApply();
|
|
|
}
|
|
|
+
|
|
|
+ @Override
|
|
|
+ public InformUserVo queryByIdUser(Long id, Long userId) {
|
|
|
+ InformUser db = this.baseMapper.selectById(id);
|
|
|
+ InformUserVo informUserVo = BeanUtil.toBean(db, InformUserVo.class);
|
|
|
+ if (informUserVo.getSystemStatus() == 2) {
|
|
|
+ InformVo informVo = informService.queryById(informUserVo.getInformId());
|
|
|
+ informVo.setInformExamVo(iInformExamService.queryExam(informVo.getInformId()));
|
|
|
+ informVo.setInformCourseVo(iInformCourseService.queryCourse(informVo.getInformId()));
|
|
|
+ informUserVo.setInformVo(informVo);
|
|
|
+ }
|
|
|
+ if(informUserVo.getGoodsId() != null && informUserVo.getGradeId() == null){
|
|
|
+ Long gradeId = baseMapper.selectGradeId(informUserVo.getGoodsId(),userId);
|
|
|
+ informUserVo.setGradeId(gradeId);
|
|
|
+ }
|
|
|
+ return informUserVo;
|
|
|
+ }
|
|
|
}
|