瀏覽代碼

搜索条件新增

change 4 年之前
父節點
當前提交
b1b8e134f8

+ 8 - 0
zhongzheng-system/src/main/java/com/zhongzheng/modules/goods/service/impl/GoodsServiceImpl.java

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