group by 根据product_name查

This commit is contained in:
2025-07-22 15:37:22 +08:00
parent 63c8541bc5
commit 4422ca9099

View File

@@ -44,7 +44,7 @@ public interface WmsProductMapper extends BaseMapperPlus<WmsProductMapper, WmsPr
"(SELECT IFNULL(SUM(quantity),0) FROM wms_stock s WHERE s.item_type='product' AND s.item_id = p.product_id AND s.del_flag=0) AS stockCount, " +
"0 AS purchaseCycle " +
"FROM wms_order_detail od JOIN wms_product p ON od.product_id = p.product_id " +
"GROUP BY p.product_name")
"GROUP BY p.product_id, p.product_name")
List<OrderMaterialVO> selectOrderMaterial();
// 客户分布热力图