group by 根据product_name查
This commit is contained in:
@@ -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();
|
||||
|
||||
// 客户分布热力图
|
||||
|
||||
Reference in New Issue
Block a user