32], ]; } /** * {@inheritdoc} */ public function attributeLabels() { return [ 'id' => 'ID', 'mall_id' => 'Mall ID', 'log_id' => 'Log ID', 'store_id' => 'Store ID', 'amount' => 'Amount', 'role' => 'Role', 'mcht_cd' => 'Mcht Cd', 'fee_party' => 'Fee Party', 'updated_at' => 'Updated At', 'created_at' => 'Created At', ]; } /** * @param integer $id * @return static|null */ public static function getLogById(int $id) { return static::find() ->where(['id' => $id]) ->one(); } /** * 是否有代付订单 * * @return boolean */ public function hasAgentOrder() { return !empty(AgentOrder::find() ->where(['withdraw_id' => $this->id]) ->select('id') ->one()) ? true : false; } }