API更新
This commit is contained in:
@@ -31,13 +31,15 @@ async function getOrders(ctx) {
|
||||
'goods_name', oi.goods_name,
|
||||
'price', oi.price,
|
||||
'quantity', oi.quantity,
|
||||
'weight', oi.weight,
|
||||
'Weight', oi.weight,
|
||||
'subtotal', oi.subtotal,
|
||||
'unit', oi.unit
|
||||
'unit', oi.unit,
|
||||
'image', g.images
|
||||
)
|
||||
) as items_json
|
||||
FROM orders o
|
||||
LEFT JOIN order_items oi ON o.id = oi.order_id
|
||||
LEFT JOIN goods g ON oi.goods_id = g.id
|
||||
WHERE 1=1
|
||||
`
|
||||
const params = []
|
||||
|
||||
Reference in New Issue
Block a user