更新列表
This commit is contained in:
parent
246601dfa8
commit
b18c1a381e
|
@ -114,7 +114,7 @@
|
|||
//产品列表
|
||||
public function product(): Json
|
||||
{
|
||||
$data = Product::field('id as product_id,code,name')->where('status',1)->select()->toArray();
|
||||
$data = Product::field('id as product_id,code,name')->where('status',1)->where('user_id', $this->userId)->select()->toArray();
|
||||
$result = [];
|
||||
foreach ($data as $k=>$v) {
|
||||
$productDevice = ProductDevice::where('product_id',$v['product_id'])->select()->toArray();
|
||||
|
|
Loading…
Reference in New Issue