'ID', 'user_id' => '用户ID', 'level' => '股东等级', 'price' => '分红总金额', 'created_at' => '创建时间', 'updated_at' => '修改时间', ]; } public function getUser() { return $this->hasOne(User::class, ['id' => 'user_id'])->select('id,mobile,nickname,avatar_url,parent_id'); } /** * @desc:关联股东等级 * @Author: hua * @Date: 2021/11/5 * @Time: 10:04 * @Copyright: copyright (c) 2021 广东七件事集团 * @return \yii\db\ActiveQuery */ public function getBossLevel(){ return $this->hasOne(AddonsBossLevel::class, ['level' => 'level'])->andWhere(['<>','status',StatusEnum::DELETE]); } }