Commit 4679a707 by 杨树贤

添加限制条件

parent e14e013b
Showing with 2 additions and 1 deletions
......@@ -36,7 +36,8 @@ class SyncAllSupplierToErp extends Command
public function handle()
{
ini_set('memory_limit', -1);
$supplierIds = SupplierChannelModel::where('is_type', 0)->pluck('supplier_id')->toArray();
$supplierIds = SupplierChannelModel::where('is_type', 0)->where('group_code','!=','')
->pluck('supplier_id')->toArray();
$conn = new AMQPStreamConnection(config('database.connections.rabbitmq.host'),
config('database.connections.rabbitmq.port'),
config('database.connections.rabbitmq.login'),
......
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