|
@@ -504,12 +504,12 @@ func (s *GoodsServ) GetCaseOrdersNum(caseid string) (map[string]interface{}, err
|
504
|
504
|
if customer.UserId == "" {
|
505
|
505
|
return nil, errors.New("您没有权限查看此数据!")
|
506
|
506
|
}
|
507
|
|
- total, err := s.dao.GetOrdersCountByCase(caseid, customer.UserId)
|
|
507
|
+ total, err := s.dao.GetOrdersCountByCase(caseid, customer.CustomerId)
|
508
|
508
|
if err != nil {
|
509
|
509
|
utils.LogError("获取案场订单数量失败: " + err.Error())
|
510
|
510
|
return nil, errors.New("获取案场信息失败")
|
511
|
511
|
}
|
512
|
|
- monthtotal, err := s.dao.GetMonthOrdersCountByCase(caseid, customer.UserId)
|
|
512
|
+ monthtotal, err := s.dao.GetMonthOrdersCountByCase(caseid, customer.CustomerId)
|
513
|
513
|
if err != nil {
|
514
|
514
|
utils.LogError("获取月案场订单数量失败: " + err.Error())
|
515
|
515
|
return nil, errors.New("获取案场信息失败")
|