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

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

@@ -90,7 +90,7 @@ func GetSumShopPerfomance(wxUserId, beginTime, endTime int64) int64 {
 	ret := &Ret{}
 	o := orm.NewOrm()
 	tbn := "shop_applications"
-	sql := fmt.Sprintf("SELECT sum(`total`) as count FROM `%s` WHERE pass_time>FROM_UNIXTIME(?) and pass_time<FROM_UNIXTIME(?) and  status=? and wx_user_id=? ;", tbn)
+	sql := fmt.Sprintf("SELECT sum(`total`) as count FROM `%s` WHERE pass_time>FROM_UNIXTIME(?) and pass_time<FROM_UNIXTIME(?) and  status=? and wx_user_id=?;", tbn)
 	err := o.Raw(sql, beginTime, endTime, state, wxUserId).QueryRow(ret)
 	if err != nil {
 		beego.BeeLogger.Error("GetSumShopPerfomance err=[%s]", err)
@@ -110,7 +110,7 @@ func GetSumBalancePerfomance(wxUserId, beginTime, endTime int64) int64 {
 	ret := &Ret{}
 	o := orm.NewOrm()
 	tbn := "balance_orders"
-	sql := fmt.Sprintf("SELECT sum(`paied_price`) as count FROM `%s` WHERE  paied_at> %d and paied_at< %d and  state=? and wx_user_id=? ;", tbn, beginTime, endTime)
+	sql := fmt.Sprintf("SELECT sum(`paied_price`) as count FROM `%s` WHERE  paied_at> %d and paied_at< %d and  state=? and wx_user_id=?;", tbn, beginTime, endTime)
 	err := o.Raw(sql, state, wxUserId).QueryRow(ret)
 	if err != nil {
 		beego.BeeLogger.Error("GetSumBalancePerfomance err=[%s]", err)