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