33 lines
695 B
PHP
33 lines
695 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($cb){
|
|
SqlHelper::ormSelect(
|
|
myself()->_getSelfMysql(),
|
|
't_season_ranking',
|
|
array(
|
|
'account_id' => myself()->_getAccountId(),
|
|
),
|
|
function ($row) use($cb) {
|
|
$cb($row);
|
|
}
|
|
);
|
|
}
|
|
} |