课程详情添加购买后开始、结束时间

This commit is contained in:
wuchunlei
2024-06-17 14:13:22 +08:00
parent 073870209b
commit 264f1f7ab9
3 changed files with 24 additions and 5 deletions

View File

@@ -295,9 +295,11 @@ public class CourseServiceImpl extends ServiceImpl<CourseDao, CourseEntity> impl
Page<ShopProduct> resPage = null;
LambdaQueryWrapper<ShopProduct> w = new LambdaQueryWrapper<>();
w.like(ShopProduct::getProductName,param.get("productName"));
if (StringUtils.isNotBlank(c.getRelationProductIds())){
String[] productIds = c.getRelationProductIds().split(",");
w.notIn(ShopProduct::getProductId,productIds);
if (c != null) {
if (StringUtils.isNotBlank(c.getRelationProductIds())){
String[] productIds = c.getRelationProductIds().split(",");
w.notIn(ShopProduct::getProductId,productIds);
}
}
resPage = shopProductDao.selectPage(new Page<>(page, limit), w);
return resPage;