|
|
@ -98,8 +98,8 @@ func (t *CustomerOrder) CountCustomerOrder(activityId, rehearsalId, archId inter |
|
|
|
return buyerCount, err |
|
|
|
} |
|
|
|
|
|
|
|
func (t *CustomerOrder) SumCustomerOrder(activityId, rehearsalId, archId interface{}, limit int) ([]map[string]interface{}, error) { |
|
|
|
res := make([]map[string]interface{}, 0) |
|
|
|
func (t *CustomerOrder) SumCustomerOrder(activityId, rehearsalId, archId interface{}, limit int) ([]map[string]string, error) { |
|
|
|
res := make([]map[string]string, 0) |
|
|
|
err := core.GetXormAuto().Table(t).Select("order_entry_person_id, order_entry_person_name, SUM(goods_num) as num"). |
|
|
|
NoAutoCondition().Where("is_delete=0 and activity_id=? and rehearsal_id=? and arch_id=?", |
|
|
|
activityId, rehearsalId, archId).Limit(limit).Desc("num").Find(&res) |
|
|
|