作者 董瑞恩
1 个管道 的构建 通过 耗费 1 秒

order

... ... @@ -32,6 +32,7 @@ class AdminOrderController extends AdminBaseController{
public function index(){
$Order=new OrderModel();
$data=$Order->alias('a')
->field('a.*,b.serial_number,b.hospital')
->join('equipment b','a.mac_address=b.mac_address')
->paginate(10);
dump($data->toArray());
... ...
... ... @@ -48,12 +48,12 @@
<tr>
<td><b>{$vo.id}</b></td>
<td>{$vo.mac_address}</td>
<td>{$vo.serial_number}</td>
<td>{$vo.hospital}</td>
<td>{$vo.start_time}</td>
<td>{$vo.end_time}</td>
<td>{$vo.mac_address}</td>
<td>{$vo.mac_address}</td>
<td>{$vo.mac_address}</td>
<td>{$vo.mac_address}</td>
<td>{$vo.mac_address}</td>
<td>{$vo.mac_address}</td>
<td>{$vo.price}</td>
</tr>
</foreach>
</table>
... ...