<?php namespace app\common\model; use think\Model; // 线下订单 class OfflineOrder extends Model { public function orderItem() { return $this->hasMany('OfflineOrderItem','order_id'); } }