|
|
@@ -184,8 +184,8 @@ class Period extends \common\components\ActiveRecord
|
|
|
}
|
|
|
|
|
|
public function getTeamsPeriodNum(){
|
|
|
- $this->periodArr = static::find()->where('IS_CLOSED=1 AND IS_SENT=0')->orderBy('PERIOD_NUM ASC')->asArray()->one();
|
|
|
- $this->setPeriodNum($this->periodArr['PERIOD_NUM']);
|
|
|
+ $this->nowPeriodArr = static::find()->where('IS_CLOSED=1 AND IS_SENT=0')->orderBy('PERIOD_NUM ASC')->asArray()->one();
|
|
|
+ $this->setPeriodNum($this->nowPeriodArr['PERIOD_NUM']);
|
|
|
if($this->nowPeriodArr){
|
|
|
return $this->nowPeriodArr['PERIOD_NUM'];
|
|
|
} else {
|