$list = db($pnav['ename']) -> field('a.*,b.name as pname') ->alias('a') -> join('sbl_nav b','a.pid = b.id') -> where('a.status = 1')->order('date desc')->paginate(10);
$list = db($pnav['ename']) -> field('a.*,b.name as pname') ->alias('a') -> join('sbl_nav b','a.pid = b.id') -> where('a.status = 1')->order('date desc')->paginate(10);
转载于:https://www.cnblogs.com/supe/p/9100483.html