|
|
@@ -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{
|