This commit is contained in:
苏尹岚
2021-04-12 17:43:55 +08:00
parent accfdcb4ab
commit 812432837d
2 changed files with 4 additions and 3 deletions

View File

@@ -934,8 +934,9 @@ func (c *OrderManager) GetAfsOrders(ctx *jxcontext.Context, keyword, afsOrderID,
offset = jxutils.FormalizePageOffset(offset)
sql := `
SELECT SQL_CALC_FOUND_ROWS
t1.*
t1.*, t2.name store_name
FROM afs_order t1
LEFT JOIN store t2 ON t2.id = IF(t1.jx_store_id != 0, t1.jx_store_id, t1.store_id)
`
var (
sqlWhere string