abiao лет назад: 5
Родитель
Сommit
4cc5893486

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

@@ -48,6 +48,7 @@ func (self *RailsadminController) UserPerfomance() {
 	userSummary.ShopOrderPerfomance = shopOrderPerfomance
 	userSummary.ShopPerfomance = shopPerfomance
 	userSummary.BalancePerfomance = balanceOrderPerfomance
+	userSummary.Total = orderPerfomance + shopOrderPerfomance + shopPerfomance + balanceOrderPerfomance
 
 	userSummary.Save()
 

+ 3 - 0
go/gopath/src/fohow.com/apps/models/summary_model/user_perfomance.go

@@ -86,6 +86,9 @@ func GetSumShopPerfomance(wxUserId, beginTime, endTime int64) int64 {
 	type Ret struct {
 		Count int64
 	}
+	//减8H再计算
+	beginTime = beginTime - 28800
+	endTime = endTime - 28800
 	state := int64(1)
 	ret := &Ret{}
 	o := orm.NewOrm()