Kaynağa Gözat

order purchase limit logic edit

abiao 5 yıl önce
ebeveyn
işleme
dad3a2e6c4

+ 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','unpay'))
+			order_no in (select order_id from orders where wx_user_id = %d and status in ('processing','complete','dispatch','unconfirmed','unpay'))
 		and
 			product_id = ?
 	`