@ -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) {