Browse Source

机台日报表新增相关接口优化

曹鹤洋 1 year ago
parent
commit
224f9f1afd
1 changed files with 1 additions and 1 deletions
  1. 1 1
      application/api/controller/MachineProductionReport.php

+ 1 - 1
application/api/controller/MachineProductionReport.php

@@ -501,7 +501,7 @@ class MachineProductionReport extends Api
             ->where('Gd_gdbh',$gdbh)
             ->find();
         $yjno= db('工单_工艺资料')
-            ->where('Gy0_gdbh',$gdbh)
+            ->where(['Gy0_gdbh'=>$gdbh,'Gy0_gxmc'=>'拆片'])
             ->column('distinct Gy0_yjno');
         $row['yjno'] = $yjno;
         if (!$row) $this->error('查无此编号的工单, 请仔细检查后重新输入!');