瀏覽代碼

get user perfomance total

abiao 5 年之前
父節點
當前提交
c88ce43800

+ 1 - 1
go/gopath/src/fohow.com/apps/controllers/railsadmin_controller/user_perfomance_controller.go

@@ -63,7 +63,7 @@ func GetTeamPerfomance(list []*user_model.WxUser, beginTime, endTime int64) (ord
 		orderPerfomance += summary_model.GetSumOrderPerfomance(item.Id, int64(0), beginTime, endTime)
 		shopOrderPerfomance += summary_model.GetSumOrderPerfomance(item.Id, int64(2), beginTime, endTime)
 		shopPerfomance += summary_model.GetSumShopPerfomance(item.Id, beginTime, endTime)
-		balanceOrderPerfomance += summary_model.GetSumOrderPerfomance(item.Id, int64(0), beginTime, endTime)
+		balanceOrderPerfomance += summary_model.GetSumBalancePerfomance(item.Id, beginTime, endTime)
 
 		secondList := user_model.GetWxUsersByInviteIdAll(item.Id, false)
 		newOrderPerfomance, newShopOrderPerfomance, newShopPerfomance, newBalanceOrderPerfomance := GetTeamPerfomance(secondList, beginTime, endTime)