"ID", 'store_id' =>"商场ID", 'profit' =>"分佣比例", 'total_price' =>"支付总金额", 'user_id' =>"用户ID", 'desc' =>"支付项目名称", 'created_at' =>"创建时间", 'order_id' =>"订单ID", 'type' =>"类型", 'is_delete' =>"是否删除", 'commission' =>"佣金", 'status' =>"代理类型0代理 1区域代理", 'order_type' =>"订单类型", 'cloud_type' =>'身份类型', 'is_send' =>'是否发放' ]; } public function getStore(){ return $this->hasOne(Store::className(),['id'=>'store_id']); } public function getReorder(){ return $this->hasOne(StoreReOrder::className(),['id'=>'order_id']); } public function getOrder(){ if ((int)$this->cloud_type === 0) { return $this->hasOne(Order::className(),['id'=>'order_id']); } else { return $this->hasOne(PurchaseOrder::className(),['id'=>'order_id']); } } }