Browse Source

优化流程单

huangsanjia 1 year ago
parent
commit
1a663d2d84
1 changed files with 3 additions and 1 deletions
  1. 3 1
      application/api/controller/ProcessDocument.php

+ 3 - 1
application/api/controller/ProcessDocument.php

@@ -89,11 +89,13 @@ class ProcessDocument extends Api
 
         $where = array();
         $where['Gd_gdbh'] = $order;
-        
         $product = db('工单_基本资料')
             ->where($where)
             ->field('成品代号')
             ->find();
+        if (empty($product)){
+            $this->success('请求成功');
+        }
         $map =array();
         $map['product_number'] = rtrim($product['成品代号']);
         if ($params['peijian'] > 0){