This commit is contained in:
aozhiwei 2024-11-08 14:45:24 +08:00
parent 2102c549f4
commit af7dacc7d7
2 changed files with 23 additions and 2 deletions

View File

@ -84,7 +84,8 @@ class Circuit extends BaseModel
public static function getRankingList($season){ public static function getRankingList($season){
$sql = "select * from t_circuit_battle where season=:season order by cumulative_score desc,modifytime asc"; $sql = "select * from t_circuit_battle where season=:season and cumulative_score >= 0" .
"order by cumulative_score desc,modifytime asc";
$whereKv = array( $whereKv = array(
":season" => $season, ":season" => $season,
); );
@ -115,7 +116,8 @@ class Circuit extends BaseModel
} }
public static function getPhaseRankingList($season,$phase){ public static function getPhaseRankingList($season,$phase){
$sql = "select * from t_circuit_battle_phase where season=:season and phase=:phase order by cumulative_score desc,modifytime asc"; $sql = "select * from t_circuit_battle_phase where season=:season and phase=:phase " .
"and cumulative_score >= 0 order by cumulative_score desc,modifytime asc";
$whereKv = array( $whereKv = array(
":season" => $season, ":season" => $season,
":phase" => $phase, ":phase" => $phase,

View File

@ -24,4 +24,23 @@ class CircuitRankingService extends BaseService {
} }
} }
public static function repairPhaseRanking($currentCircuitMeta)
{
$rows = myself()->_callModelStatic('Circuit', 'getCircuitList',
$currentCircuitMeta['circuit_season']);
if (count($rows) < 100) {
return;
}
}
public static function repairRanking($currentCircuitMeta)
{
$rows = myself()->_callModelStatic('Circuit', 'getCircuitList',
$currentCircuitMeta['circuit_season']);
if (count($rows) < 100) {
return;
}
}
} }