Преглед изворни кода

order purchase limit logic edit

abiao пре 5 година
родитељ
комит
be5c819ad4
1 измењених фајлова са 1 додато и 1 уклоњено
  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 = ?
 	`