修改查询方式
This commit is contained in:
parent
c272041732
commit
495c5ec3ea
@ -372,7 +372,7 @@ class OrderLogic extends BaseLogic
|
|||||||
return [];
|
return [];
|
||||||
}
|
}
|
||||||
$goods_arr = array_unique($goods_id);
|
$goods_arr = array_unique($goods_id);
|
||||||
$select = StoreProduct::where('id', 'in', $goods_arr)->with('unitName')->field('id,name,sell,imgs,unit')->select();
|
$select = StoreBranchProduct::where('id', 'in', $goods_arr)->with('unitName')->field('id,store_name,price,image,unit')->select();
|
||||||
return $select->toArray();
|
return $select->toArray();
|
||||||
} catch (\Exception $e) {
|
} catch (\Exception $e) {
|
||||||
self::setError($e->getMessage());
|
self::setError($e->getMessage());
|
||||||
|
Loading…
x
Reference in New Issue
Block a user