Selaa lähdekoodia

订单统计功能

abiao 5 vuotta sitten
vanhempi
commit
1963aa7b3a

+ 1 - 1
go/gopath/src/fohow.com/apps/models/order_model/order_detail.go

@@ -124,7 +124,7 @@ func GetStaticOrderDetails(bDateUnix, eDateUnix int64, state string, isSend bool
 		s := fmt.Sprintf("and o.status=%s", state)
 		sql = strings.Join([]string{sql, s}, " ")
 	}
-	s := "and ot.is_send=? group by ot.product_id order by product_id desc"
+	s := "and ot.is_zeng=? group by ot.product_id order by product_id desc"
 	sql = strings.Join([]string{sql, s}, " ")
 	beego.BeeLogger.Warn("sql=[%s]", sql)
 	if _, err := orm.NewOrm().Raw(sql, isSend).QueryRows(&details); err != nil {