|
|
@@ -221,7 +221,7 @@ class Facility extends Api
|
|
|
$machine = $params['machine'];
|
|
|
$machineCode = \db('dic_lzde')->where('适用机型',$machine)->value('sys_bh');
|
|
|
$data = \db('设备_产量采集')->where('设备编号',$machine)->order('UniqId desc')->find();
|
|
|
- if (empty($data)){
|
|
|
+ if (isset($data['工单编号'])){
|
|
|
$this->success('未找到生产订单');
|
|
|
}
|
|
|
$endTime = \db('工单_工艺资料')
|