diff --git a/business/model/dao/dao_order.go b/business/model/dao/dao_order.go index fe2a7896f..47ac825e5 100644 --- a/business/model/dao/dao_order.go +++ b/business/model/dao/dao_order.go @@ -278,7 +278,7 @@ func GetPayStatistics(db *DaoDB, userID string, pop int, cityCodes []int, mobile } } sql2 += ` - LEFT JOIN user_bill c + LEFT JOIN user_bill c ON c.user_id = a.user_id LEFT JOIN bill_expend d ON d.bill_id = c.bill_id AND d.type = ? WHERE a.status = ? AND a.deleted_at = ? `