|
@@ -139,9 +139,9 @@ sparestore.min_stock
|
|
|
(
|
|
|
SELECT
|
|
|
sparestore.spare_id,
|
|
|
- sparestore.min_stock maxStock,
|
|
|
- sparestore.max_stock minStock,
|
|
|
- SUM( num ) AS totalStock
|
|
|
+ any_value(sparestore.min_stock) maxStock,
|
|
|
+ any_value(sparestore.max_stock) minStock,
|
|
|
+ SUM( any_value(num) ) AS totalStock
|
|
|
FROM
|
|
|
t_spare_store sparestore
|
|
|
<where>
|