|
|
@@ -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('查无此编号的工单, 请仔细检查后重新输入!');
|