|
|
@@ -10,6 +10,8 @@ import com.zhongzheng.modules.course.bo.CourseChapterSectionListAddBo;
|
|
|
import com.zhongzheng.modules.course.bo.CourseQueryBo;
|
|
|
import com.zhongzheng.modules.course.domain.CourseChapterSection;
|
|
|
import com.zhongzheng.modules.course.mapper.CourseChapterMapper;
|
|
|
+import com.zhongzheng.modules.course.mapper.CourseMapper;
|
|
|
+import com.zhongzheng.modules.course.service.ICourseService;
|
|
|
import com.zhongzheng.modules.exam.bo.ExamNumberGoodsQueryBo;
|
|
|
import com.zhongzheng.modules.exam.vo.ExamNumberGoodsVo;
|
|
|
import com.zhongzheng.modules.goods.bo.*;
|
|
|
@@ -55,6 +57,9 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
@Autowired
|
|
|
private IGoodsAuditionConfigService iGoodsAuditionConfigService;
|
|
|
|
|
|
+ @Autowired
|
|
|
+ private CourseMapper courseMapper;
|
|
|
+
|
|
|
@Override
|
|
|
public GoodsVo queryById(Long goodsId){
|
|
|
Goods db = this.baseMapper.selectById(goodsId);
|
|
|
@@ -352,6 +357,9 @@ public class GoodsServiceImpl extends ServiceImpl<GoodsMapper, Goods> implements
|
|
|
@Override
|
|
|
public GoodsVo selectUserDetail(CourseQueryBo bo) {
|
|
|
GoodsVo goodsVo = goodsMapper.selectUserDetail(bo);
|
|
|
+ //获得当前所在班级
|
|
|
+ Long gradeId = courseMapper.gradeIdSelect(bo.getUserId(),bo.getGoodsId());
|
|
|
+ goodsVo.setGradeId(gradeId);
|
|
|
return goodsVo;
|
|
|
}
|
|
|
}
|