join('goods g', 'g.id = rl.goods_id') ->order('rl.id desc') ->field('rl.*, g.name as goods_name') ->paginate([ 'list_rows'=> $size, 'var_page' => 'page', ]); } }