Procházet zdrojové kódy

更改统计条件

abiao před 5 roky
rodič
revize
d0d24ae9c0

+ 1 - 1
go/gopath/src/fohow-statement-api/models/d5c_bonus.go

@@ -26,7 +26,7 @@ func GetFohowTotalOrderCount() int64 {
 
 	var ret Ret
 
-	sql := fmt.Sprintf("select sum(total_price) as total from orders where  status not in ('processing','complete','dispatch')")
+	sql := fmt.Sprintf("select sum(total_price) as total from orders where  status in ('processing','complete','dispatch')")
 
 	err := o.Raw(sql).QueryRow(&ret)