Sfoglia il codice sorgente

更改统计条件

abiao 5 anni fa
parent
commit
d0d24ae9c0
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      go/gopath/src/fohow-statement-api/models/d5c_bonus.go

+ 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)