物料订单一周内不能重复下单

This commit is contained in:
苏尹岚
2020-03-11 16:21:49 +08:00
parent 2f1f096129
commit afead85556

View File

@@ -1186,7 +1186,7 @@ func GetMatterStoreOrderCount(ctx *jxcontext.Context, storeID int) (result *Orde
JOIN order_pay b ON a.vendor_order_id = b.vendor_order_id
WHERE IF(a.store_id = 0, a.jx_store_id, a.store_id) = 666666
AND a.from_store_id = ?
AND a.status >= ? AND a.status != ?
AND a.status >= ? AND a.status <> ?
ORDER BY b.pay_finished_at DESC
LIMIT 1
`