Skip to content

Commit 022d581

Browse files
committed
fix. 通用比赛中,犯规和未完成的选手仍有分数.
1 parent 013b5b2 commit 022d581

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/utils/ExcelAnalyzer.dart

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -549,7 +549,7 @@ class ExcelAnalyzer {
549549
// 录入比赛分数
550550
// 若时间为99999999则分数为0
551551
if (s == SType.firstRound &&
552-
scores[sortedAthletes[i]] == "99999999") {
552+
scores[sortedAthletes[i]] == 99999999) {
553553
print("未参赛运动员:${sortedAthletes[i]},成绩为0");
554554
db.update('athletes', {matchType: "0"},
555555
where: "id = ?", whereArgs: [sortedAthletes[i]]);
@@ -588,7 +588,7 @@ class ExcelAnalyzer {
588588
i++) {
589589
// 如果初赛未参赛则分数为0,晋级后,后续比赛中若出现未参赛则按最后一名处理
590590
if (s == SType.firstRound &&
591-
scores[sortedAthletes[i]] == "99999999") {
591+
scores[sortedAthletes[i]] == 99999999) {
592592
print("未参赛运动员:${sortedAthletes[i]},成绩为0");
593593
db.update('athletes', {matchType: "0"},
594594
where: "id = ?", whereArgs: [sortedAthletes[i]]);
@@ -682,7 +682,7 @@ class ExcelAnalyzer {
682682
// 录入比赛分数
683683
// 若时间为99999999则分数为0
684684
if (s == SType.firstRound &&
685-
scores[sortedAthletes[i]] == "99999999") {
685+
scores[sortedAthletes[i]] == 99999999) {
686686
print("未参赛运动员:${sortedAthletes[i]},成绩为0");
687687
db.update('athletes', {matchType: "0"},
688688
where: "id = ?", whereArgs: [sortedAthletes[i]]);
@@ -721,7 +721,7 @@ class ExcelAnalyzer {
721721
i++) {
722722
// 如果初赛未参赛则分数为0,晋级后,后续比赛中若出现未参赛则按最后一名处理
723723
if (s == SType.firstRound &&
724-
scores[sortedAthletes[i]] == "99999999") {
724+
scores[sortedAthletes[i]] == 99999999) {
725725
print("未参赛运动员:${sortedAthletes[i]},成绩为0");
726726
db.update('athletes', {matchType: "0"},
727727
where: "id = ?", whereArgs: [sortedAthletes[i]]);

0 commit comments

Comments
 (0)