35 lines
709 B
PHP
35 lines
709 B
PHP
<?php
|
|
|
|
namespace models;
|
|
|
|
|
|
use mt;
|
|
use phpcommon\SqlHelper;
|
|
|
|
class SeasonRanking extends BaseModel
|
|
{
|
|
public static function getDataBySeasonId($seasonId){
|
|
return SqlHelper::ormSelect(
|
|
myself()->_getSelfMysql(),
|
|
't_season_ranking',
|
|
array(
|
|
'season' => $seasonId,
|
|
)
|
|
);
|
|
}
|
|
|
|
public static function getSeasonList(){
|
|
$rows = SqlHelper::ormSelect(
|
|
myself()->_getSelfMysql(),
|
|
't_season_ranking',
|
|
array(
|
|
'account_id' => myself()->_getAccountId(),
|
|
)
|
|
);
|
|
|
|
if (count($rows) < 1){
|
|
$rows = null;
|
|
}
|
|
return $rows;
|
|
}
|
|
} |