Browse Source

优化报工接口

huangsanjia 1 year ago
parent
commit
c535387f48
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/api/controller/ReportingWork.php

+ 2 - 2
application/api/controller/ReportingWork.php

@@ -217,8 +217,8 @@ class ReportingWork extends Api
         }
 //        $res = \db('制程检验_记录')->field('UniqId')->order('UniqId desc')->find();
         $res = \db('制程检验_记录')->field('UniqId')->order('UniqId desc')->find();
-        if ($res['UniqId'] < 100000000){
-            $data['UniqId'] = 100000000;
+        if (empty($res['UniqId'])){
+            $data['UniqId'] = 1;
         }else{
             $data['UniqId'] = $res['UniqId'] + 1;
         }