活动商品字段改变逻辑修改
This commit is contained in:
parent
fa80c2fca3
commit
ef4db7a0bf
@ -2278,10 +2278,10 @@ public class ShopProductItemServiceImpl extends BaseServiceImpl<ShopProductItemM
|
||||
*/
|
||||
queryWrapper.select("product_id", "GROUP_CONCAT(item_id SEPARATOR ',') AS mergedItemId", "GROUP_CONCAT(item_unit_price SEPARATOR ',') AS mergedUnitPrices,category_id");
|
||||
productNumbers.forEach(productNumber -> {
|
||||
queryWrapper.or(q -> q.eq("store_id", store_id).eq("item_src_id", productNumber));
|
||||
queryWrapper.or(q -> q.eq("store_id", store_id).eq("item_number", productNumber));
|
||||
});
|
||||
queryWrapper.eq("store_id", store_id);
|
||||
queryWrapper.groupBy("product_id");
|
||||
queryWrapper.groupBy("product_id","category_id");
|
||||
List<ShopProductItem> shopProductItems = this.list(queryWrapper);
|
||||
// Map map=shopProductItems.stream().collect(Collectors.toMap(ShopProductItem::getProduct_id,shopProductItem->shopProductItem.getMergedItemId()
|
||||
// +"_"+shopProductItem.getMergedUnitPrices()));
|
||||
|
||||
Loading…
Reference in New Issue
Block a user