12345678910111213141516171819202122 |
- <?php
- namespace app\common\model;
- use think\Model;
- // 订单
- class GoodsOrder extends Model
- {
- protected $name='store_order';
- public function orderItem()
- {
- return $this->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');
- }
- }
|