fix(store_order): 修复 branches 门店商品数据同步问题
- 在 StoreOrderController 中,增加了对软删除商品的查询 - 修复了当商品被软删除后,branches 门店同步数据时无法找到商品的问题
This commit is contained in:
parent
520cb5875b
commit
b960b9aba9
@ -171,7 +171,7 @@ class StoreOrderController extends BaseAdminController
|
||||
$data = StoreOrderCartInfo::where('oid', $id)->select();
|
||||
foreach ($data as $key => &$value) {
|
||||
if (in_array($order['store_id'], [17, 18])) {
|
||||
$find = StoreBranchProduct::where('product_id', $value->product_id)->where('store_id', $order['store_id'])->find();
|
||||
$find = StoreBranchProduct::where('product_id', $value->product_id)->where('store_id', $order['store_id'])->withTrashed()->find();
|
||||
} else {
|
||||
$find = StoreProduct::where('id', $value->product_id)->find();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user