handle('commission_frozen'); // $this->handle('commission'); // $this->handle('balance_frozen'); // $this->handle('balance'); // $this->handle('score'); // $this->handle('score_frozen'); } protected function handle($capitalType) { $i = 1; $page_size = 1000; CapitalLog::$capitalType = $capitalType; while ($list = CapitalLog::find() ->andWhere(['<>', 'mall_id', 0]) ->offset(($i - 1) * $page_size)->limit($page_size)->all()) { $res = CapitalLogRelation::handle($list, $capitalType); var_dump($res); $i++; } } }