This commit is contained in:
wangjinlei
2024-05-09 18:08:37 +08:00
parent 14c70bb6c5
commit 452a246875
5 changed files with 21 additions and 8 deletions

View File

@@ -233,6 +233,7 @@ public class ShopProductServiceImpl extends ServiceImpl<ShopProductDao, ShopProd
wrapper.select(CourseEntity::getImage);
wrapper.selectAs(CourseEntity::getId,"courseId");
wrapper.selectAs(CourseCatalogueEntity::getId,"catalogueId");
wrapper.select(ShopProductCourseEntity::getDays);
wrapper.leftJoin(CourseCatalogueEntity.class,CourseCatalogueEntity::getId,ShopProductCourseEntity::getCatalogueId);
wrapper.leftJoin(CourseEntity.class,CourseEntity::getId,ShopProductCourseEntity::getCourseId);
wrapper.eq(ShopProductCourseEntity::getProductId,productId);
@@ -255,6 +256,11 @@ public class ShopProductServiceImpl extends ServiceImpl<ShopProductDao, ShopProd
return flag;
}
@Override
public void bindProductAndCourse(ShopProductCourseEntity shopProductCourseEntity) {
}
@Override
public Map<String, Object> getProductToLabel(Integer productId) {
HashMap<String, Object> flag = new HashMap<>();