|
@@ -6,6 +6,13 @@ import com.zhongzheng.common.utils.DateUtils;
|
|
|
import com.zhongzheng.modules.grade.bo.ClassGradeUserQueryBo;
|
|
import com.zhongzheng.modules.grade.bo.ClassGradeUserQueryBo;
|
|
|
import com.zhongzheng.modules.grade.mapper.ClassGradeUserMapper;
|
|
import com.zhongzheng.modules.grade.mapper.ClassGradeUserMapper;
|
|
|
import com.zhongzheng.modules.grade.vo.ClassGradeUserGoodsVo;
|
|
import com.zhongzheng.modules.grade.vo.ClassGradeUserGoodsVo;
|
|
|
|
|
+import com.zhongzheng.modules.inform.bo.InformQueryBo;
|
|
|
|
|
+import com.zhongzheng.modules.inform.domain.Inform;
|
|
|
|
|
+import com.zhongzheng.modules.inform.mapper.InformMapper;
|
|
|
|
|
+import com.zhongzheng.modules.inform.service.IInformCourseService;
|
|
|
|
|
+import com.zhongzheng.modules.inform.service.IInformExamService;
|
|
|
|
|
+import com.zhongzheng.modules.inform.service.IInformService;
|
|
|
|
|
+import com.zhongzheng.modules.inform.vo.InformVo;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
|
import org.springframework.stereotype.Service;
|
|
import org.springframework.stereotype.Service;
|
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
|
|
@@ -39,6 +46,18 @@ public class InformUserServiceImpl extends ServiceImpl<InformUserMapper, InformU
|
|
|
@Autowired
|
|
@Autowired
|
|
|
private ClassGradeUserMapper classGradeUserMapper;
|
|
private ClassGradeUserMapper classGradeUserMapper;
|
|
|
|
|
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private InformMapper informMapper;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IInformService informService;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IInformExamService iInformExamService;
|
|
|
|
|
+
|
|
|
|
|
+ @Autowired
|
|
|
|
|
+ private IInformCourseService iInformCourseService;
|
|
|
|
|
+
|
|
|
@Override
|
|
@Override
|
|
|
public InformUserVo queryById(Long id){
|
|
public InformUserVo queryById(Long id){
|
|
|
InformUser db = this.baseMapper.selectById(id);
|
|
InformUser db = this.baseMapper.selectById(id);
|
|
@@ -52,7 +71,16 @@ public class InformUserServiceImpl extends ServiceImpl<InformUserMapper, InformU
|
|
|
lqw.eq(bo.getSendTime() != null, InformUser::getSendTime, bo.getSendTime());
|
|
lqw.eq(bo.getSendTime() != null, InformUser::getSendTime, bo.getSendTime());
|
|
|
lqw.eq(bo.getSendStatus() != null, InformUser::getSendStatus, bo.getSendStatus());
|
|
lqw.eq(bo.getSendStatus() != null, InformUser::getSendStatus, bo.getSendStatus());
|
|
|
lqw.eq(bo.getReceiptStatus() != null, InformUser::getReceiptStatus, bo.getReceiptStatus());
|
|
lqw.eq(bo.getReceiptStatus() != null, InformUser::getReceiptStatus, bo.getReceiptStatus());
|
|
|
- return entity2Vo(this.list(lqw));
|
|
|
|
|
|
|
+ List<InformUserVo> informUserVos = entity2Vo(this.list(lqw));
|
|
|
|
|
+ for (InformUserVo informUserVo : informUserVos) {
|
|
|
|
|
+ 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);
|
|
|
|
|
+ }
|
|
|
|
|
+ }
|
|
|
|
|
+ return informUserVos;
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
/**
|
|
/**
|