方法一:使用table()方法
$tables = ‘b_order ordert, b_busbid busbid‘; $map[‘busbid.buscompanyid‘] = 1; $map[‘busbid.status‘] = 1; $map[‘_string‘] = ‘ordert.id = busbid.orderid‘; $result = M()->table($tables)->where($map)->field(‘busbid.*‘)->select();
方法二:使用join() 方法
时间: 2024-11-05 15:10:02