Commit 8b22f616 by 杨树贤

fix

parent fdfe3b5f
Showing with 3 additions and 2 deletions
......@@ -1311,15 +1311,16 @@ class SupplierService
// 构建查询
$query = SupplierChannelModel::where('is_type', 0)
->where('yunxin_channel_uid', '!=', '')
->whereNotNull('yunxin_channel_uid');
->where('yunxin_channel_uid', '!=', '');
// 如果num>0则限制数量,否则不限制
if ($num > 0) {
$query->limit($num);
}
$suppliers = $query->get();
\dump("一共处理供应商 : " . count($suppliers->toArray()));
$result = [
'mode' => $isProdMode ? 'production' : 'debug',
......
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