game2006api/webapp/models/SeasonRanking.php
2023-07-21 14:28:13 +08:00

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);
}
);
}
}