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

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

@@ -70,7 +70,7 @@ func GetSumOrderPerfomance(wxUserId, orderType, beginTime, endTime int64) int64
 	ret := &Ret{}
 	o := orm.NewOrm()
 	tbn := "orders"
-	sql := fmt.Sprintf("SELECT sum(`paied_price`-`freight`) as count FROM `%s` WHERE  paied_at >%d and paied_at<%d and  status in (%s,%s,%s) and wx_user_id=%d and order_type=%d;", tbn, beginTime, endTime, order_model.STATUS_PROCESSING, order_model.STATUS_DISPATCH, order_model.STATUS_COMPLETE, wxUserId, orderType)
+	sql := fmt.Sprintf("SELECT sum(`paied_price`-`freight`) as count FROM `%s` WHERE  paied_at >%d and paied_at<%d and  status in ('%s','%s','%s') and wx_user_id=%d and order_type=%d;", tbn, beginTime, endTime, order_model.STATUS_PROCESSING, order_model.STATUS_DISPATCH, order_model.STATUS_COMPLETE, wxUserId, orderType)
 	if orderType == int64(2) {
 		beego.BeeLogger.Warn("orders sql=[%s]", sql)
 	}