hasMany('GoodsOrderItem','order_id'); } public function orderBill() { return $this->hasOne('OrderBill','order_id'); } public function orderRefund(){ return $this->hasOne('GoodsOrderRefund','order_id')->field('id,order_id,status,refund_type,refund_money,audit_desc,is_deleted'); } }