TP5使用左外链接

浏览:1284 发布日期:2018/09/11 分类:技术分享
$order_res = Db::name('order')->alias('o')->join('baogao_detail b','o.bg_id = b.bg_id')->field('o.*,b.title as report_title,b.hits as report_hits,b.description as report_description,b.sale_money as report_sale_money,b.create_time as report_ctime,b.keywords as report_keywords')->where('user_id',$uid)->where('o.bg_id>0')->paginate(5);
最佳答案
评论( 相关
后面还有条评论,点击查看>>