瀏覽代碼

更改统计条件

abiao 5 年之前
父節點
當前提交
d0d24ae9c0
共有 1 個文件被更改,包括 1 次插入1 次删除
  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)