This commit is contained in:
suyl
2021-06-21 17:58:03 +08:00
parent eea15cf7c0
commit 7feb689ed3
2 changed files with 3 additions and 2 deletions

View File

@@ -802,6 +802,7 @@ func GetOrders(db *DaoDB, ids []int64, isIncludeSku, isIncludeFake bool, fromDat
LEFT JOIN user tu1 ON tu1.mobile = t5.operator_phone
LEFT JOIN user tu2 ON tu2.mobile = t5.operator_phone2
LEFT JOIN user tu3 ON tu3.mobile = t5.operator_phone3
LEFT JOIN (SELECT MAX(created_at), vendor_order_id FROM afs_order GROUP BY 2) t7 ON t7.vendor_order_id = t1.vendor_order_id
`
if isIncludeSku {
sql += `