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