@@ -569,6 +569,7 @@ func GetOrderCountByPIdAndWxUId(pId, wxUId int64) int64 {
order_details
WHERE
order_id in (select order_id from orders where wx_user_id = %d and status in ('processing','complete','dispatch','unconfirmed'))
+ and
product_id = ?
`
sql = fmt.Sprintf(sql, wxUId)