Browse Source

技术附件信息获取

曹鹤洋 1 year ago
parent
commit
1aab19f17d
1 changed files with 6 additions and 1 deletions
  1. 6 1
      application/api/controller/Product.php

+ 6 - 1
application/api/controller/Product.php

@@ -129,11 +129,16 @@ class Product extends Api
             ->join('物料_存货编码 b','a.存货编码 = b.物料代码','left')
             ->join('物料_存货结构 c','LEFT(a.存货编码,4) = c.编号','left')
             ->where($filter)->field($yb_field)->order('a.YB_Yjno,a.存货编码')->select();
+        
+        //技术附件
+        $jsRes = db('产品_技术附件')
+            ->where('关联产品','like','%'.$code.'%')
+            ->select();
         $list = [];
         $list['yjData'] = $yjRes;
         $list['gyData'] = $gyRes;
         $list['ybData'] = $ybRes;
-        $list['jsData'] = [];
+        $list['jsData'] = $jsRes;
         $this->success('请求成功',$list);
     }
     /**