限时折扣 商品重填

This commit is contained in:
wangw 2025-10-23 15:26:57 +08:00
parent 8985676d5b
commit b93e6d72cd
1 changed files with 3 additions and 3 deletions

View File

@ -73,10 +73,10 @@ public class MkLimitTimeDiscountServiceImpl extends ServiceImpl<MkLimitTimeDisco
.filter(StrUtil::isNotBlank)
.distinct()
.toList();
List<String> ids = productService.listAs(QueryWrapper.create().in(Product::getId, foodIds), String.class);
if(CollUtil.isEmpty(ids)){
List<String> ids = productService.listAs(QueryWrapper.create().select(Product::getId).in(Product::getId, foodIds), String.class);
if (CollUtil.isEmpty(ids)) {
record.setFoods("");
}else {
} else {
record.setFoods(String.join(",", ids));
}
}