Commit b1453ef9 by 杨树贤

性能

parent 444173c4
Showing with 5 additions and 1 deletions
......@@ -38,7 +38,11 @@ class SyncSupplierToErp extends Command
$this->info('开始同步供应商到ERP');
$this->info('========================================');
$suppliers = SupplierChannelModel::where('is_type', 0)
$suppliers = SupplierChannelModel::select([
'supplier_id',
'supplier_name'
])
->where('is_type', 0)
->where('yunxin_channel_uid', '!=', '')->get();
$total = count($suppliers);
$this->info("共找到 {$total} 个供应商需要同步");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment