From a4be32855cf8a4e35127aaa2538be167ddfe27c0 Mon Sep 17 00:00:00 2001 From: zengchaoxin Date: Fri, 18 Oct 2019 11:18:53 +0800 Subject: [PATCH] test2 --- common/models/UserT.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/common/models/UserT.php b/common/models/UserT.php index ed2e3c2..4430d81 100644 --- a/common/models/UserT.php +++ b/common/models/UserT.php @@ -484,4 +484,9 @@ class UserT extends \common\models\Base return $query->andWhere('is_called=0 or is_called is null')->andWhere('call_result="ANSWERED"')->count(); } + + public function getPhoneStatus() + { + return $this->hasOne(NetworkPhoneAssignT::className(),['user_id'=>'id']); + } }