瀏覽代碼

订单统计功能

abiao 5 年之前
父節點
當前提交
1244817461
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      go/gopath/src/fohow.com/apps/models/order_model/order_detail.go

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

@@ -121,7 +121,7 @@ func GetStaticOrderDetails(bDateUnix, eDateUnix int64, state string, isSend bool
 		sql = strings.Join([]string{sql, s}, " ")
 	}
 	if len(state) > 0 {
-		s := fmt.Sprintf("and o.status=%s", state)
+		s := fmt.Sprintf("and o.status='%s'", state)
 		sql = strings.Join([]string{sql, s}, " ")
 	}
 	s := "and ot.is_zeng=? group by ot.product_id order by product_id desc"