Explorar o código

order purchase limit logic edit

abiao %!s(int64=5) %!d(string=hai) anos
pai
achega
be5c819ad4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      go/gopath/src/fohow.com/apps/models/order_model/order.go

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

@@ -568,7 +568,7 @@ func GetOrderCountByPIdAndWxUId(pId, wxUId int64) int64 {
 		FROM
 			order_details
 		WHERE
-			order_id in (select order_id from orders where wx_user_id = %d and status in ('processing','complete','dispatch','unconfirmed'))
+			order_id in (select order_id from orders where wx_user_id = %d and status in ('processing','complete','dispatch','unconfirmed','unpay'))
 		and
 			product_id = ?
 	`