示例#1
0
 public static function findTotalRank()
 {
     $user = Yii::$app->session->get('user');
     $result = ExamScore::find()->select('count(*)')->where(['provinceId' => $user['provinceId'], 'majorJobId' => $user['majorJobId']])->asArray()->one();
     if ($result) {
         return $result['count(*)'];
     } else {
         return 0;
     }
 }