物料订单一周内不能重复下单
This commit is contained in:
@@ -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
|
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
|
WHERE IF(a.store_id = 0, a.jx_store_id, a.store_id) = 666666
|
||||||
AND a.from_store_id = ?
|
AND a.from_store_id = ?
|
||||||
AND a.status >= ? AND a.status != ?
|
AND a.status >= ? AND a.status <> ?
|
||||||
ORDER BY b.pay_finished_at DESC
|
ORDER BY b.pay_finished_at DESC
|
||||||
LIMIT 1
|
LIMIT 1
|
||||||
`
|
`
|
||||||
|
|||||||
Reference in New Issue
Block a user