@@ -928,7 +928,7 @@ func GetNotInvovedAmount(promotionId int64, orderId string) int64 {
LEFT JOIN
order_details AS od ON od.product_id = op.product_id AND od.order_no =?
WHERE
- op.promotion_id = ?;
+ op.promotion_id = ?
AND IF(od.nums IS NULL, 0, od.nums) > 0;
`