소스 검색

商品课程

he2802 3 년 전
부모
커밋
b66d4c29de
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  1. 4 1
      zhongzheng-api/src/main/java/com/zhongzheng/controller/goods/GoodsCourseController.java

+ 4 - 1
zhongzheng-api/src/main/java/com/zhongzheng/controller/goods/GoodsCourseController.java

@@ -10,6 +10,7 @@ import com.zhongzheng.modules.course.bo.CourseQueryBo;
 import com.zhongzheng.modules.course.vo.CourseSectionVo;
 import com.zhongzheng.modules.course.vo.CourseVo;
 import com.zhongzheng.modules.goods.bo.GoodsCourseAddBo;
+import com.zhongzheng.modules.goods.bo.GoodsCourseQueryBo;
 import com.zhongzheng.modules.goods.service.IGoodsCourseService;
 import com.zhongzheng.modules.goods.vo.GoodsVo;
 import com.zhongzheng.modules.user.entity.ClientLoginUser;
@@ -44,7 +45,9 @@ public class GoodsCourseController extends BaseController {
     @GetMapping("/list/{id}")
     public TableDataInfo<CourseVo> list(@PathVariable Long id) {
         startPage();
-        List<CourseVo> list = iGoodsCourseService.selectList(id);
+        GoodsCourseQueryBo courseQueryBo = new GoodsCourseQueryBo();
+        courseQueryBo.setGoodsId(id);
+        List<CourseVo> list = iGoodsCourseService.selectList(courseQueryBo);
         return getDataTable(list);
     }