Explorar o código

更改统计条件

abiao %!s(int64=5) %!d(string=hai) anos
pai
achega
d0d24ae9c0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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)