Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
A
antai-sport-http-server
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
antai-sport
antai-sport-http-server
Commits
9e8e233e
Commit
9e8e233e
authored
Sep 19, 2022
by
liming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
系列赛淘汰赛数据初始化
parent
ea591392
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
792 additions
and
731 deletions
+792
-731
antai-sport.ndm2
doc/antai-sport.ndm2
+731
-731
SeriesController.java
...rver/api/business/series/controller/SeriesController.java
+6
-0
SeriesKnockoutMatchRecordInitDTO.java
...business/series/dto/SeriesKnockoutMatchRecordInitDTO.java
+14
-0
SeriesService.java
...ver/server/api/business/series/service/SeriesService.java
+41
-0
No files found.
doc/antai-sport.ndm2
View file @
9e8e233e
...
@@ -25748,8 +25748,8 @@
...
@@ -25748,8 +25748,8 @@
},
},
{
{
"objectType": "Table_MYSQL",
"objectType": "Table_MYSQL",
"name": "series_match_
player_record
",
"name": "series_match_
finalists
",
"comment": "系列赛
比赛记录
",
"comment": "系列赛
具体比赛入围列表
",
"engine": "InnoDB",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"characterSet": "utf8mb4",
"collation": "utf8mb4_0900_ai_ci",
"collation": "utf8mb4_0900_ai_ci",
...
@@ -25824,7 +25824,7 @@
...
@@ -25824,7 +25824,7 @@
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
series
_id",
"name": "
match
_id",
"type": "bigint",
"type": "bigint",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
...
@@ -25839,14 +25839,14 @@
...
@@ -25839,14 +25839,14 @@
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "系列赛id",
"comment": "系列赛
比赛
id",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
series
_id"
"oldName": "
match
_id"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
...
@@ -25876,7 +25876,7 @@
...
@@ -25876,7 +25876,7 @@
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
match
_id",
"name": "
sport_user
_id",
"type": "bigint",
"type": "bigint",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
...
@@ -25891,19 +25891,19 @@
...
@@ -25891,19 +25891,19 @@
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
比赛
id",
"comment": "
入围玩家
id",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
match
_id"
"oldName": "
sport_user
_id"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
player_id
",
"name": "
start_order
",
"type": "
big
int",
"type": "int",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
...
@@ -25917,19 +25917,19 @@
...
@@ -25917,19 +25917,19 @@
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
玩家id
",
"comment": "
位置序列
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
player_id
"
"oldName": "
start_order
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
entry_time
",
"name": "
version
",
"type": "
datetime
",
"type": "
bigint
",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
...
@@ -25939,23 +25939,23 @@
...
@@ -25939,23 +25939,23 @@
"charset": "",
"charset": "",
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "
Null
",
"defaultType": "
Others
",
"defaultValue": "",
"defaultValue": "
0
",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
比赛进入时间
",
"comment": "
版本号
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
entry_time
"
"oldName": "
version
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
finish_time
",
"name": "
deleted
",
"type": "
datetime
",
"type": "
tinyint
",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
...
@@ -25965,23 +25965,23 @@
...
@@ -25965,23 +25965,23 @@
"charset": "",
"charset": "",
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "
Null
",
"defaultType": "
Others
",
"defaultValue": "",
"defaultValue": "
0
",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
比赛完成时间
",
"comment": "
删除标记
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
finish_time
"
"oldName": "
deleted
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
duration
",
"name": "
create_by
",
"type": "int",
"type": "
big
int",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
...
@@ -25991,23 +25991,23 @@
...
@@ -25991,23 +25991,23 @@
"charset": "",
"charset": "",
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "
Null
",
"defaultType": "
Others
",
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
比赛用时(秒)
",
"comment": "
创建人
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
duration
"
"oldName": "
create_by
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
match_rank
",
"name": "
create_time
",
"type": "
int
",
"type": "
datetime
",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
...
@@ -26017,127 +26017,23 @@
...
@@ -26017,127 +26017,23 @@
"charset": "",
"charset": "",
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "Null",
"defaultType": "Others",
"defaultValue": "",
"defaultValue": "CURRENT_TIMESTAMP",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "比赛名次",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "match_rank"
},
{
"objectType": "TableField_MYSQL",
"name": "distance",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "骑行总长度",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "distance"
},
{
"objectType": "TableField_MYSQL",
"name": "climb_distance",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "爬坡距离",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "climb_distance"
},
{
"objectType": "TableField_MYSQL",
"name": "avg_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "平均功率",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "avg_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "avg_speed",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
平均速度
",
"comment": "
创建时间
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
avg_speed
"
"oldName": "
create_time
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
calorie
",
"name": "
update_by
",
"type": "int",
"type": "
big
int",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
...
@@ -26151,73 +26047,21 @@
...
@@ -26151,73 +26047,21 @@
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "卡路里",
"comment": "修改人",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "calorie"
},
{
"objectType": "TableField_MYSQL",
"name": "weight",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "体重",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "weight"
},
{
"objectType": "TableField_MYSQL",
"name": "one_minutes_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "1分钟平均最佳FTP",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
one_minutes_ftp
"
"oldName": "
update_by
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
five_minutes_ftp
",
"name": "
update_time
",
"type": "d
ecimal
",
"type": "d
atetime
",
"length":
1
8,
"length":
-214748364
8,
"decimals":
2
,
"decimals":
-2147483648
,
"isUnsigned": false,
"isUnsigned": false,
"isZeroFill": false,
"isZeroFill": false,
"setEnumValues": "",
"setEnumValues": "",
...
@@ -26226,296 +26070,10 @@
...
@@ -26226,296 +26070,10 @@
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "Others",
"defaultType": "Others",
"defaultValue": "",
"defaultValue": "
CURRENT_TIMESTAMP
",
"isOnUpdateCurrentTimestamp":
fals
e,
"isOnUpdateCurrentTimestamp":
tru
e,
"isAutoInc": false,
"isAutoInc": false,
"comment": "5分钟平均最佳FTP",
"comment": "修改时间",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "five_minutes_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "twenty_minutes_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "20分钟平均最佳FTP",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "twenty_minutes_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "one_minutes_wkg",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "1分钟平均最佳功体比",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "one_minutes_wkg"
},
{
"objectType": "TableField_MYSQL",
"name": "five_minutes_wkg",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "5分钟平均最佳功体比",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "five_minutes_wkg"
},
{
"objectType": "TableField_MYSQL",
"name": "twenty_minutes_wkg",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "20分钟平均最佳功体比",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "twenty_minutes_wkg"
},
{
"objectType": "TableField_MYSQL",
"name": "score",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "得分",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "score"
},
{
"objectType": "TableField_MYSQL",
"name": "praise_num",
"type": "int",
"length": 0,
"decimals": 0,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "获攒数量",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "praise_num"
},
{
"objectType": "TableField_MYSQL",
"name": "status",
"type": "tinyint",
"length": 4,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "比赛状态10:未完成比赛 20:完成比赛",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "status"
},
{
"objectType": "TableField_MYSQL",
"name": "result_confirm_status",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "成绩确认状态 10 待确认 20 无效 30已确认未晋级 40晋级",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "result_confirm_status"
},
{
"objectType": "TableField_MYSQL",
"name": "finished",
"type": "bit",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "是否结束",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "finished"
},
{
"objectType": "TableField_MYSQL",
"name": "create_time",
"type": "datetime",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "CURRENT_TIMESTAMP",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "创建时间",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "create_time"
},
{
"objectType": "TableField_MYSQL",
"name": "update_time",
"type": "datetime",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "CURRENT_TIMESTAMP",
"isOnUpdateCurrentTimestamp": true,
"isAutoInc": false,
"comment": "修改时间",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
...
@@ -26649,83 +26207,6 @@
...
@@ -26649,83 +26207,6 @@
"order": "",
"order": "",
"oldName": ""
"oldName": ""
},
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
{
"objectType": "IndexField_MYSQL",
"objectType": "IndexField_MYSQL",
"name": "",
"name": "",
...
@@ -26744,8 +26225,8 @@
...
@@ -26744,8 +26225,8 @@
},
},
{
{
"objectType": "Table_MYSQL",
"objectType": "Table_MYSQL",
"name": "series_
match_finalists
",
"name": "series_
round
",
"comment": "系列赛
具体比赛入围列表
",
"comment": "系列赛",
"engine": "InnoDB",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"characterSet": "utf8mb4",
"collation": "utf8mb4_0900_ai_ci",
"collation": "utf8mb4_0900_ai_ci",
...
@@ -26794,8 +26275,112 @@
...
@@ -26794,8 +26275,112 @@
"fields": [
"fields": [
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "id",
"name": "id",
"type": "bigint",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": true,
"comment": "主键",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "id"
},
{
"objectType": "TableField_MYSQL",
"name": "series_id",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "系列赛id",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "series_id"
},
{
"objectType": "TableField_MYSQL",
"name": "pre_round_id",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "上轮次id",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "pre_round_id"
},
{
"objectType": "TableField_MYSQL",
"name": "name",
"type": "varchar",
"length": 255,
"decimals": 0,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "轮次名称",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "name"
},
{
"objectType": "TableField_MYSQL",
"name": "type",
"type": "int",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
...
@@ -26804,24 +26389,24 @@
...
@@ -26804,24 +26389,24 @@
"isBinary": false,
"isBinary": false,
"charset": "",
"charset": "",
"collation": "",
"collation": "",
"isNullable":
fals
e,
"isNullable":
tru
e,
"defaultType": "Others",
"defaultType": "Others",
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc":
tru
e,
"isAutoInc":
fals
e,
"comment": "
主键
",
"comment": "
类型 10 预选赛 20 淘汰赛
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
id
"
"oldName": "
type
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
match_id
",
"name": "
start_time
",
"type": "
bigint
",
"type": "
datetime
",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
...
@@ -26835,19 +26420,123 @@
...
@@ -26835,19 +26420,123 @@
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
系列赛比赛id
",
"comment": "
开始时间
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
match_id
"
"oldName": "
start_time
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "round_id",
"name": "map",
"type": "bigint",
"type": "varchar",
"length": 255,
"decimals": 0,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "地图key",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "map"
},
{
"objectType": "TableField_MYSQL",
"name": "path",
"type": "varchar",
"length": 255,
"decimals": 0,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "赛道key",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "path"
},
{
"objectType": "TableField_MYSQL",
"name": "distance",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "总长度",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "distance"
},
{
"objectType": "TableField_MYSQL",
"name": "climb_distance",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "爬坡高度",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "climb_distance"
},
{
"objectType": "TableField_MYSQL",
"name": "chance",
"type": "int",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
...
@@ -26861,19 +26550,19 @@
...
@@ -26861,19 +26550,19 @@
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
轮次id
",
"comment": "
机会次数
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
round_id
"
"oldName": "
chance
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "s
port_user_id
",
"name": "s
tatus
",
"type": "
big
int",
"type": "int",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
...
@@ -26887,19 +26576,19 @@
...
@@ -26887,19 +26576,19 @@
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
入围玩家id
",
"comment": "
状态 10 未发布 20 已发布
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "s
port_user_id
"
"oldName": "s
tatus
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "start
_order
",
"name": "start
ed
",
"type": "
in
t",
"type": "
bi
t",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
...
@@ -26913,14 +26602,92 @@
...
@@ -26913,14 +26602,92 @@
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
位置序列
",
"comment": "
是否开始
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "start_order"
"oldName": "started"
},
{
"objectType": "TableField_MYSQL",
"name": "finished",
"type": "bit",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "轮次是否已完成",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "finished"
},
{
"objectType": "TableField_MYSQL",
"name": "result_confirm",
"type": "bit",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "成绩是否确认",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "result_confirm"
},
{
"objectType": "TableField_MYSQL",
"name": "show_order",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "显示顺序",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "show_order"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
...
@@ -27086,10 +26853,108 @@
...
@@ -27086,10 +26853,108 @@
"fields": [
"fields": [
{
{
"objectType": "IndexField_MYSQL",
"objectType": "IndexField_MYSQL",
"name": "id",
"name": "id",
"keyLength": 0,
"order": "",
"oldName": "id"
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"keyLength": 0,
"order": "",
"order": "",
"oldName": "id"
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
},
{
{
"objectType": "IndexField_MYSQL",
"objectType": "IndexField_MYSQL",
...
@@ -27221,8 +27086,8 @@
...
@@ -27221,8 +27086,8 @@
},
},
{
{
"objectType": "Table_MYSQL",
"objectType": "Table_MYSQL",
"name": "series_
roun
d",
"name": "series_
match_player_recor
d",
"comment": "系列赛",
"comment": "系列赛
比赛记录
",
"engine": "InnoDB",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"characterSet": "utf8mb4",
"collation": "utf8mb4_0900_ai_ci",
"collation": "utf8mb4_0900_ai_ci",
...
@@ -27293,12 +27158,168 @@
...
@@ -27293,12 +27158,168 @@
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "id"
"oldName": "id"
},
{
"objectType": "TableField_MYSQL",
"name": "series_id",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "系列赛id",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "series_id"
},
{
"objectType": "TableField_MYSQL",
"name": "round_id",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "轮次id",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "round_id"
},
{
"objectType": "TableField_MYSQL",
"name": "match_id",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "比赛id",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "match_id"
},
{
"objectType": "TableField_MYSQL",
"name": "player_id",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "玩家id",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "player_id"
},
{
"objectType": "TableField_MYSQL",
"name": "entry_time",
"type": "datetime",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "比赛进入时间",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "entry_time"
},
{
"objectType": "TableField_MYSQL",
"name": "finish_time",
"type": "datetime",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "比赛完成时间",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "finish_time"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
series_id
",
"name": "
duration
",
"type": "
big
int",
"type": "int",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
...
@@ -27308,23 +27329,23 @@
...
@@ -27308,23 +27329,23 @@
"charset": "",
"charset": "",
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "
Others
",
"defaultType": "
Null
",
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
系列赛id
",
"comment": "
比赛用时(秒)
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
series_id
"
"oldName": "
duration
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
pre_round_id
",
"name": "
match_rank
",
"type": "
big
int",
"type": "int",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
...
@@ -27334,25 +27355,25 @@
...
@@ -27334,25 +27355,25 @@
"charset": "",
"charset": "",
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "
Others
",
"defaultType": "
Null
",
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
上轮次id
",
"comment": "
比赛名次
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
pre_round_id
"
"oldName": "
match_rank
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
nam
e",
"name": "
distanc
e",
"type": "
varchar
",
"type": "
decimal
",
"length":
255
,
"length":
18
,
"decimals":
0
,
"decimals":
2
,
"isUnsigned": false,
"isUnsigned": false,
"isZeroFill": false,
"isZeroFill": false,
"setEnumValues": "",
"setEnumValues": "",
...
@@ -27360,25 +27381,25 @@
...
@@ -27360,25 +27381,25 @@
"charset": "",
"charset": "",
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "
Others
",
"defaultType": "
Null
",
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
轮次名称
",
"comment": "
骑行总长度
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
nam
e"
"oldName": "
distanc
e"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
typ
e",
"name": "
climb_distanc
e",
"type": "
int
",
"type": "
decimal
",
"length":
-214748364
8,
"length":
1
8,
"decimals":
-2147483648
,
"decimals":
2
,
"isUnsigned": false,
"isUnsigned": false,
"isZeroFill": false,
"isZeroFill": false,
"setEnumValues": "",
"setEnumValues": "",
...
@@ -27386,25 +27407,25 @@
...
@@ -27386,25 +27407,25 @@
"charset": "",
"charset": "",
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "
Others
",
"defaultType": "
Null
",
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
类型 10 预选赛 20 淘汰赛
",
"comment": "
爬坡距离
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
typ
e"
"oldName": "
climb_distanc
e"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
start_time
",
"name": "
avg_ftp
",
"type": "d
atetime
",
"type": "d
ecimal
",
"length":
-214748364
8,
"length":
1
8,
"decimals":
-2147483648
,
"decimals":
2
,
"isUnsigned": false,
"isUnsigned": false,
"isZeroFill": false,
"isZeroFill": false,
"setEnumValues": "",
"setEnumValues": "",
...
@@ -27412,25 +27433,25 @@
...
@@ -27412,25 +27433,25 @@
"charset": "",
"charset": "",
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "
Others
",
"defaultType": "
Null
",
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
开始时间
",
"comment": "
平均功率
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
start_time
"
"oldName": "
avg_ftp
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
map
",
"name": "
avg_speed
",
"type": "
varchar
",
"type": "
decimal
",
"length":
255
,
"length":
18
,
"decimals":
0
,
"decimals":
2
,
"isUnsigned": false,
"isUnsigned": false,
"isZeroFill": false,
"isZeroFill": false,
"setEnumValues": "",
"setEnumValues": "",
...
@@ -27438,25 +27459,25 @@
...
@@ -27438,25 +27459,25 @@
"charset": "",
"charset": "",
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "
Others
",
"defaultType": "
Null
",
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
地图key
",
"comment": "
平均速度
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
map
"
"oldName": "
avg_speed
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
path
",
"name": "
calorie
",
"type": "
varchar
",
"type": "
int
",
"length":
255
,
"length":
-2147483648
,
"decimals":
0
,
"decimals":
-2147483648
,
"isUnsigned": false,
"isUnsigned": false,
"isZeroFill": false,
"isZeroFill": false,
"setEnumValues": "",
"setEnumValues": "",
...
@@ -27468,18 +27489,18 @@
...
@@ -27468,18 +27489,18 @@
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
赛道key
",
"comment": "
卡路里
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
path
"
"oldName": "
calorie
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
distance
",
"name": "
weight
",
"type": "decimal",
"type": "decimal",
"length": 18,
"length": 18,
"decimals": 2,
"decimals": 2,
...
@@ -27490,22 +27511,22 @@
...
@@ -27490,22 +27511,22 @@
"charset": "",
"charset": "",
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "
Null
",
"defaultType": "
Others
",
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
总长度
",
"comment": "
体重
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
distance
"
"oldName": "
weight
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
climb_distance
",
"name": "
one_minutes_ftp
",
"type": "decimal",
"type": "decimal",
"length": 18,
"length": 18,
"decimals": 2,
"decimals": 2,
...
@@ -27520,21 +27541,21 @@
...
@@ -27520,21 +27541,21 @@
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
爬坡高度
",
"comment": "
1分钟平均最佳FTP
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
climb_distance
"
"oldName": "
one_minutes_ftp
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
chance
",
"name": "
five_minutes_ftp
",
"type": "
int
",
"type": "
decimal
",
"length":
-214748364
8,
"length":
1
8,
"decimals":
-2147483648
,
"decimals":
2
,
"isUnsigned": false,
"isUnsigned": false,
"isZeroFill": false,
"isZeroFill": false,
"setEnumValues": "",
"setEnumValues": "",
...
@@ -27546,21 +27567,21 @@
...
@@ -27546,21 +27567,21 @@
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
机会次数
",
"comment": "
5分钟平均最佳FTP
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
chance
"
"oldName": "
five_minutes_ftp
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
status
",
"name": "
twenty_minutes_ftp
",
"type": "
int
",
"type": "
decimal
",
"length":
-214748364
8,
"length":
1
8,
"decimals":
-2147483648
,
"decimals":
2
,
"isUnsigned": false,
"isUnsigned": false,
"isZeroFill": false,
"isZeroFill": false,
"setEnumValues": "",
"setEnumValues": "",
...
@@ -27572,21 +27593,21 @@
...
@@ -27572,21 +27593,21 @@
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
状态 10 未发布 20 已发布
",
"comment": "
20分钟平均最佳FTP
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
status
"
"oldName": "
twenty_minutes_ftp
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
started
",
"name": "
one_minutes_wkg
",
"type": "
bit
",
"type": "
decimal
",
"length":
-214748364
8,
"length":
1
8,
"decimals":
-2147483648
,
"decimals":
2
,
"isUnsigned": false,
"isUnsigned": false,
"isZeroFill": false,
"isZeroFill": false,
"setEnumValues": "",
"setEnumValues": "",
...
@@ -27598,21 +27619,21 @@
...
@@ -27598,21 +27619,21 @@
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
是否开始
",
"comment": "
1分钟平均最佳功体比
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
started
"
"oldName": "
one_minutes_wkg
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "fi
nished
",
"name": "fi
ve_minutes_wkg
",
"type": "
bit
",
"type": "
decimal
",
"length":
-214748364
8,
"length":
1
8,
"decimals":
-2147483648
,
"decimals":
2
,
"isUnsigned": false,
"isUnsigned": false,
"isZeroFill": false,
"isZeroFill": false,
"setEnumValues": "",
"setEnumValues": "",
...
@@ -27621,24 +27642,24 @@
...
@@ -27621,24 +27642,24 @@
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "Others",
"defaultType": "Others",
"defaultValue": "
0
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
轮次是否已完成
",
"comment": "
5分钟平均最佳功体比
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "fi
nished
"
"oldName": "fi
ve_minutes_wkg
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
result_confirm
",
"name": "
twenty_minutes_wkg
",
"type": "
bit
",
"type": "
decimal
",
"length":
-214748364
8,
"length":
1
8,
"decimals":
-2147483648
,
"decimals":
2
,
"isUnsigned": false,
"isUnsigned": false,
"isZeroFill": false,
"isZeroFill": false,
"setEnumValues": "",
"setEnumValues": "",
...
@@ -27650,21 +27671,21 @@
...
@@ -27650,21 +27671,21 @@
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
成绩是否确认
",
"comment": "
20分钟平均最佳功体比
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
result_confirm
"
"oldName": "
twenty_minutes_wkg
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "s
how_order
",
"name": "s
core
",
"type": "
int
",
"type": "
decimal
",
"length":
-214748364
8,
"length":
1
8,
"decimals":
-2147483648
,
"decimals":
2
,
"isUnsigned": false,
"isUnsigned": false,
"isZeroFill": false,
"isZeroFill": false,
"setEnumValues": "",
"setEnumValues": "",
...
@@ -27673,24 +27694,24 @@
...
@@ -27673,24 +27694,24 @@
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "Others",
"defaultType": "Others",
"defaultValue": "
0
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
显示顺序
",
"comment": "
得分
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "s
how_order
"
"oldName": "s
core
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
version
",
"name": "
praise_num
",
"type": "
big
int",
"type": "int",
"length":
-2147483648
,
"length":
0
,
"decimals":
-2147483648
,
"decimals":
0
,
"isUnsigned": false,
"isUnsigned": false,
"isZeroFill": false,
"isZeroFill": false,
"setEnumValues": "",
"setEnumValues": "",
...
@@ -27699,23 +27720,23 @@
...
@@ -27699,23 +27720,23 @@
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "Others",
"defaultType": "Others",
"defaultValue": "
0
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
版本号
",
"comment": "
获攒数量
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
version
"
"oldName": "
praise_num
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
deleted
",
"name": "
status
",
"type": "tinyint",
"type": "tinyint",
"length":
-2147483648
,
"length":
4
,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
"isZeroFill": false,
"isZeroFill": false,
...
@@ -27724,23 +27745,23 @@
...
@@ -27724,23 +27745,23 @@
"charset": "",
"charset": "",
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "
Others
",
"defaultType": "
Null
",
"defaultValue": "
0
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
删除标记
",
"comment": "
比赛状态10:未完成比赛 20:完成比赛
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
deleted
"
"oldName": "
status
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
create_by
",
"name": "
result_confirm_status
",
"type": "
big
int",
"type": "int",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
...
@@ -27754,19 +27775,19 @@
...
@@ -27754,19 +27775,19 @@
"defaultValue": "",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
创建人
",
"comment": "
成绩确认状态 10 待确认 20 无效 30已确认未晋级 40晋级
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
create_by
"
"oldName": "
result_confirm_status
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
create_time
",
"name": "
finished
",
"type": "
datetime
",
"type": "
bit
",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
...
@@ -27777,22 +27798,22 @@
...
@@ -27777,22 +27798,22 @@
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "Others",
"defaultType": "Others",
"defaultValue": "
CURRENT_TIMESTAMP
",
"defaultValue": "
0
",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
创建时间
",
"comment": "
是否结束
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
create_time
"
"oldName": "
finished
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
"name": "
update_by
",
"name": "
create_time
",
"type": "
bigint
",
"type": "
datetime
",
"length": -2147483648,
"length": -2147483648,
"decimals": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isUnsigned": false,
...
@@ -27803,17 +27824,17 @@
...
@@ -27803,17 +27824,17 @@
"collation": "",
"collation": "",
"isNullable": true,
"isNullable": true,
"defaultType": "Others",
"defaultType": "Others",
"defaultValue": "",
"defaultValue": "
CURRENT_TIMESTAMP
",
"isOnUpdateCurrentTimestamp": false,
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"isAutoInc": false,
"comment": "
修改人
",
"comment": "
创建时间
",
"columnFormat": "",
"columnFormat": "",
"storage": "",
"storage": "",
"isVirtual": false,
"isVirtual": false,
"isGeneratedAlways": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualExpr": "",
"virtualType": "",
"virtualType": "",
"oldName": "
update_by
"
"oldName": "
create_time
"
},
},
{
{
"objectType": "TableField_MYSQL",
"objectType": "TableField_MYSQL",
...
@@ -28043,27 +28064,6 @@
...
@@ -28043,27 +28064,6 @@
"order": "",
"order": "",
"oldName": ""
"oldName": ""
},
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
{
"objectType": "IndexField_MYSQL",
"objectType": "IndexField_MYSQL",
"name": "",
"name": "",
server-api/src/main/java/com/antai/sport/http/server/server/api/business/series/controller/SeriesController.java
View file @
9e8e233e
...
@@ -94,5 +94,11 @@ public class SeriesController {
...
@@ -94,5 +94,11 @@ public class SeriesController {
return
success
(
seriesService
.
getSeriesKnockoutMatchRankList
(
dto
));
return
success
(
seriesService
.
getSeriesKnockoutMatchRankList
(
dto
));
}
}
@ApiOperation
(
"11.淘汰赛玩家数据初始化"
)
@PostMapping
(
"knockout/match/init"
)
public
ResponseEntity
<
Result
<
SeriesMatchRecordInitVO
>>
seriesKnockoutMatchRecordInit
(
@RequestBody
SeriesKnockoutMatchRecordInitDTO
dto
)
{
return
success
(
seriesService
.
seriesKnockoutMatchRecordInit
(
dto
));
}
}
}
server-api/src/main/java/com/antai/sport/http/server/server/api/business/series/dto/SeriesKnockoutMatchRecordInitDTO.java
0 → 100644
View file @
9e8e233e
package
com
.
antai
.
sport
.
http
.
server
.
server
.
api
.
business
.
series
.
dto
;
import
io.swagger.annotations.ApiModel
;
import
io.swagger.annotations.ApiModelProperty
;
import
lombok.Data
;
@ApiModel
(
"系列赛淘汰赛玩家记录初始化"
)
@Data
public
class
SeriesKnockoutMatchRecordInitDTO
{
@ApiModelProperty
(
"比赛id"
)
private
Long
matchId
;
@ApiModelProperty
(
"玩家id"
)
private
Long
sportUserId
;
}
server-api/src/main/java/com/antai/sport/http/server/server/api/business/series/service/SeriesService.java
View file @
9e8e233e
...
@@ -43,6 +43,8 @@ public class SeriesService {
...
@@ -43,6 +43,8 @@ public class SeriesService {
private
SeriesMatchPlayerRecordMapper
seriesMatchPlayerRecordMapper
;
private
SeriesMatchPlayerRecordMapper
seriesMatchPlayerRecordMapper
;
@Resource
@Resource
private
SeriesMatchMapper
seriesMatchMapper
;
private
SeriesMatchMapper
seriesMatchMapper
;
@Resource
private
SeriesMatchFinalistsMapper
seriesMatchFinalistsMapper
;
@Resource
@Resource
private
SeriesConverter
seriesConverter
;
private
SeriesConverter
seriesConverter
;
...
@@ -312,4 +314,43 @@ public class SeriesService {
...
@@ -312,4 +314,43 @@ public class SeriesService {
return
result
.
getRecords
();
return
result
.
getRecords
();
}
}
/**
* 淘汰赛数据初始化
*
* @param dto
* @return
*/
public
SeriesMatchRecordInitVO
seriesKnockoutMatchRecordInit
(
SeriesKnockoutMatchRecordInitDTO
dto
)
{
QueryWrapper
<
SeriesMatchFinalists
>
finalistsQuery
=
new
QueryWrapper
<>();
finalistsQuery
.
lambda
().
eq
(
SeriesMatchFinalists:
:
getMatchId
,
dto
.
getMatchId
())
.
eq
(
SeriesMatchFinalists:
:
getSportUserId
,
dto
.
getSportUserId
());
SeriesMatchFinalists
finalists
=
seriesMatchFinalistsMapper
.
selectOne
(
finalistsQuery
);
if
(
finalists
==
null
){
throw
new
BusinessException
(
"抱歉,您没有入围当前比赛!"
);
}
SeriesMatchRecordInitVO
result
=
new
SeriesMatchRecordInitVO
();
result
.
setSportType
(
SportType
.
BICYCLE
);
result
.
setGameMode
(
GameMode
.
SERIES_MATCH
);
QueryWrapper
<
SeriesMatchPlayerRecord
>
countQuery
=
new
QueryWrapper
<>();
countQuery
.
lambda
().
eq
(
SeriesMatchPlayerRecord:
:
getMatchId
,
dto
.
getMatchId
())
.
eq
(
SeriesMatchPlayerRecord:
:
getPlayerId
,
dto
.
getSportUserId
());
Boolean
isRepeat
=
seriesMatchPlayerRecordMapper
.
selectCount
(
countQuery
)
>
0
;
if
(
isRepeat
)
{
throw
new
BusinessException
(
"您已初始化比赛数据,不能重复初始化"
);
}
SeriesMatch
seriesMatch
=
seriesMatchMapper
.
selectById
(
dto
.
getMatchId
());
SeriesMatchPlayerRecord
record
=
new
SeriesMatchPlayerRecord
();
record
.
setSeriesId
(
seriesMatch
.
getSeriesId
());
record
.
setRoundId
(
seriesMatch
.
getRoundId
());
record
.
setMatchId
(
dto
.
getMatchId
());
record
.
setPlayerId
(
dto
.
getSportUserId
());
record
.
setEntryTime
(
LocalDateTime
.
now
());
record
.
setStatus
(
SeriesMatchPlayerRecordStatus
.
UNFINISHED
);
record
.
setResultConfirmStatus
(
SeriesMatchPlayerRecordConfirmStatus
.
UN_CONFIRM
);
record
.
setFinished
(
false
);
seriesMatchPlayerRecordMapper
.
insert
(
record
);
result
.
setRecordId
(
record
.
getId
());
return
result
;
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment