table('jst_oms_shipping'); $this->line('total='.$t->count()); $this->line('autoship(source>=1e9)='.(clone $t)->where('source_id', '>=', 1000000000)->count()); $this->line('express_rows(source<9e6)='.(clone $t)->where('source_id', '<', 9000000)->count()); $this->line('buchai_left='.(clone $t)->where('product_name', 'like', '%补收差价%')->count()); $this->line('express_no_filled='.(clone $t)->whereNotNull('express_no')->where('express_no', '<>', '')->count()); $this->line('express_no_empty='.(clone $t)->where(function ($q) { $q->whereNull('express_no')->orWhere('express_no', ''); })->count()); return self::SUCCESS; } }