|
@@ -39,7 +39,7 @@
|
|
|
FROM
|
|
|
sy_order_data a
|
|
|
left join (
|
|
|
- select sy_order_data_id,total_price_and_tax,inventory_code,
|
|
|
+ select sy_order_data_id,sum(total_price_and_tax) as total_price_and_tax,inventory_code,
|
|
|
sum(surplus_num) as surplus_num,sum(quantity) as quantity
|
|
|
FROM sy_order_data_item GROUP BY sy_order_data_id
|
|
|
) b on a.id=b.sy_order_data_id
|