@@ -83,7 +83,7 @@ class Region extends \common\components\ActiveRecord
* @return array|\yii\db\ActiveRecord[]
*/
public static function getAllData(){
- return static::find()->where('1=1')->orderBy('CREATED_AT ASC')->indexBy('REGION_CODE')->asArray()->all();
+ return static::find()->where('STATUS=1')->orderBy('REGION_NAME ASC')->indexBy('REGION_CODE')->asArray()->all();
}
/**
@@ -599,7 +599,7 @@ class UserController extends BaseController {
// 银行开户行
$allOpenBank = OpenBank::find()
->where('STATUS=:STATUS AND COUNTRY_ID=:COUNTRY_ID', [':STATUS' => 1, ':COUNTRY_ID' => $countryId])
- ->orderBy('LIST_ORDER ASC')
+ ->orderBy('BANK_NAME ASC')
->asArray()
->all();