qiuenguang 1 жил өмнө
parent
commit
7cdff27783

+ 4 - 1
application/api/controller/ReportingWork.php

@@ -37,7 +37,10 @@ class ReportingWork extends Api
         $machine = $params['machine'].'#';
         $data = [];
 //        $lastData = \db('设备_产量采集')->where('设备编号',$machine)->order('UniqId desc')->find();
-        $lastData = \db('设备_产量采集')->where('设备编号',$machine)->order('UniqId desc')->find();
+        $lastData = \db('设备_产量采集')
+//            ->where('设备编号',$machine)
+            ->order('UniqId desc')
+            ->find();
         if ($lastData['UniqId'] < 160000000){
             $id = 160000000;
         }else{