'ID', 'mall_id' => 'Mall ID', 'order_id' => 'Order ID', 'order_detail_id' => 'Order Detail ID', 'user_id' => '购物者用户id', 'first_parent_id' => '上一级用户id', 'second_parent_id' => '上二级用户id', 'third_parent_id' => '上三级用户id', 'first_price' => '上一级分销佣金', 'second_price' => '上二级分销佣金', 'third_price' => '上三级分销佣金', 'is_refund' => '是否退款', 'is_pay' => '是否支付0未1是', 'is_transfer' => '佣金发放状态:0=未发放,1=已发放', 'is_delete' => 'Is Delete', 'created_at' => 'Created At', 'updated_at' => 'Updated At', 'deleted_at' => 'Deleted At', ]; } public function getOrder() { return $this->hasOne(Order::className(), ['id' => 'order_id']); } public function getUser() { return $this->hasOne(User::className(), ['id' => 'user_id']); } public function getOrderDetail() { return $this->hasOne(OrderDetail::className(), ['id' => 'order_detail_id']); } }