|
|
@@ -989,13 +989,13 @@ class Synchronization extends Api
|
|
|
// if (empty($lastID)){
|
|
|
// $lastID = 0;
|
|
|
// }
|
|
|
- $db4 = \db()->connect(config('database.db4'));
|
|
|
+ $db5 = \db()->connect(config('database.db5'));
|
|
|
$where = [
|
|
|
// 'sczl_rq'=>date('Y-m-d',time()),
|
|
|
// 'UniqId' =>['>',$lastID]
|
|
|
'sczl_rq' => ['>=','2024-04-01']
|
|
|
];
|
|
|
- $productData = $db4->name('设备_产量计酬')
|
|
|
+ $productData = $db5->name('设备_产量计酬')
|
|
|
->where($where)
|
|
|
->select();
|
|
|
//获取机台信息
|