Эх сурвалжийг харах

日产量数据班组信息批量修改

qiuenguang 1 жил өмнө
parent
commit
d727de6ffd

+ 12 - 1
application/api/controller/Facility.php

@@ -2154,6 +2154,7 @@ class Facility extends Api
         if (empty($param['gdbh'])){
             $this->error('参数错误');
         }
+        $sys_bh = \db('dic_lzde')->where('适用机型',$param['machine'])->value('sys_bh');
         $list = \db('工单_工艺资料')
             ->where('Gy0_gdbh',$param['gdbh'])
             ->where('Gy0_yjno',$param['yjno'])
@@ -2187,6 +2188,7 @@ class Facility extends Api
             unset($list[$key]['gxmc'],$list[$key]['add_gxmc']);
             $list[$key]['time'] = $time;
         }
+        $list['sys_bh'] = $sys_bh;
         $this->success('成功',$list);
     }
 
@@ -2299,7 +2301,16 @@ class Facility extends Api
         }
     }
 
-    //日产量上报班组信息批量修改
+    /**
+     * 日产量上报班组信息批量修改
+     * @return void
+     * @throws \think\Exception
+     * @throws \think\db\exception\BindParamException
+     * @throws \think\db\exception\DataNotFoundException
+     * @throws \think\db\exception\ModelNotFoundException
+     * @throws \think\exception\DbException
+     * @throws \think\exception\PDOException
+     */
     public function YieldTeamEdit()
     {
         if ($this->request->isGet() === false){