root hace 3 años
padre
commit
9f696a5fa1
Se han modificado 1 ficheros con 1 adiciones y 1 borrados
  1. 1 1
      common/models/Period.php

+ 1 - 1
common/models/Period.php

@@ -124,7 +124,7 @@ class Period extends \common\components\ActiveRecord
         if (empty($periodNum)) {
             $this->nowPeriodArr = static::find()
                 ->where(' 1=1')
-                ->orderBy('PERIOD_NUM ASC')
+                ->orderBy('PERIOD_NUM DESC')
                 ->asArray()
                 ->one();
             if (empty($this->nowPeriodArr)) {