From df45d21e3879f897d9b9a491c9dd7e7bb6ff4ad8 Mon Sep 17 00:00:00 2001 From: tommy <3405129587@qq.com> Date: Wed, 5 Aug 2020 16:48:57 +0800 Subject: [PATCH] fix:bug --- models/customer_order.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/models/customer_order.go b/models/customer_order.go index e8f331d..30cf96c 100644 --- a/models/customer_order.go +++ b/models/customer_order.go @@ -99,8 +99,8 @@ func (t *CustomerOrder) CountCustomerOrder(activityId, rehearsalId, archId inter if _type == 1 { s.Distinct("buyer_id") } - s.Count(t) - return buyerCount, err + count, err := s.Count(t) + return count, err } func (t *CustomerOrder) SumCustomerOrder(activityId, rehearsalId, archId interface{}, limit int) ([]map[string]string, error) {