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
894d00ef
Commit
894d00ef
authored
Sep 18, 2022
by
liming
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预选赛页面数据加载主页接口增加我的排名
parent
ed9d006d
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
916 additions
and
804 deletions
+916
-804
antai-sport.ndm2
doc/antai-sport.ndm2
+855
-803
SeriesRoundRank.java
...http/server/repository/series/entity/SeriesRoundRank.java
+10
-0
SeriesQualifyingMatchRankDTO.java
...api/business/series/dto/SeriesQualifyingMatchRankDTO.java
+18
-0
SeriesBusinessMapper.java
...rver/api/business/series/mapper/SeriesBusinessMapper.java
+6
-0
SeriesService.java
...ver/server/api/business/series/service/SeriesService.java
+18
-1
SeriesQualifyingMatchHomeVO.java
...r/api/business/series/vo/SeriesQualifyingMatchHomeVO.java
+2
-0
SeriesBusinessMapper.xml
...src/main/resources/mapper/series/SeriesBusinessMapper.xml
+7
-0
No files found.
doc/antai-sport.ndm2
View file @
894d00ef
...
...
@@ -23265,8 +23265,8 @@
},
{
"objectType": "Table_MYSQL",
"name": "series_
round_rank
",
"comment": "系列赛",
"name": "series_
match_player_record
",
"comment": "系列赛
比赛记录
",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"collation": "utf8mb4_0900_ai_ci",
...
...
@@ -23419,7 +23419,7 @@
},
{
"objectType": "TableField_MYSQL",
"name": "
record
_id",
"name": "
player
_id",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
...
...
@@ -23434,14 +23434,66 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
关联记录
id",
"comment": "
玩家
id",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "record_id"
"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",
...
...
@@ -23471,8 +23523,138 @@
},
{
"objectType": "TableField_MYSQL",
"name": "create_time",
"type": "datetime",
"name": "match_rank",
"type": "int",
"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": "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,
"isAutoInc": false,
"comment": "平均速度",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "avg_speed"
},
{
"objectType": "TableField_MYSQL",
"name": "calorie",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
...
...
@@ -23483,642 +23665,10 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "
CURRENT_TIMESTAMP
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "创建时间",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "create_time"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MYSQL",
"name": "",
"fields": [
{
"objectType": "IndexField_MYSQL",
"name": "id",
"keyLength": 0,
"order": "",
"oldName": "id"
},
{
"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",
"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",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
}
],
"oldName": "",
"indexMethod": "BTREE",
"comment": ""
},
"foreignKeys": [],
"triggers": [],
"tablePartitions": []
},
{
"objectType": "Table_MYSQL",
"name": "series_match_player_record",
"comment": "系列赛比赛记录",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"collation": "utf8mb4_0900_ai_ci",
"autoIncrement": 76,
"tablespace": "",
"storage": "",
"insertMethod": "",
"connection": "",
"checksum": false,
"rowFormat": "DYNAMIC",
"avgRowLength": 0,
"maxRows": 0,
"minRows": 0,
"keyBlockSize": 0,
"packKeys": "",
"delayKeyWrite": false,
"dataDirectory": "",
"indexDirectory": "",
"statsAutoRecalc": "",
"statsPersistent": "",
"statsSamplePages": 0,
"union": "",
"pageCheckSum": false,
"transactional": false,
"compression": "",
"oldName": "sport_user_summary",
"encryption": false,
"createOptions": "row_format=DYNAMIC",
"createTime": "2021-09-26 11:09:37",
"checkTime": "",
"dataFree": 0,
"dataLength": 16384,
"indexLength": 0,
"maxDataLength": 0,
"rows": 72,
"updateTime": "2022-01-25 11:38:29",
"DDL": "CREATE TABLE `sport_user_summary` (\n `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',\n `type` int DEFAULT NULL COMMENT '汇总类型 1.骑行 2.跑步',\n `user_id` bigint DEFAULT NULL COMMENT '用户id',\n `total_distance` decimal(18,2) DEFAULT NULL COMMENT '总骑行距离',\n `total_climb_distance` decimal(18,2) DEFAULT NULL COMMENT '总爬坡高度',\n `total_duration` int DEFAULT NULL COMMENT '总持续时长',\n `version` bigint DEFAULT '0' COMMENT '版本号',\n `deleted` tinyint DEFAULT '0' COMMENT '删除标记',\n `ct_date` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',\n `lm_user_id` bigint DEFAULT NULL COMMENT '修改人id',\n `lm_date` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',\n PRIMARY KEY (`id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=76 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='运动记录汇总'",
"partitionBy": "",
"partitionByExpr": "",
"partitions": 0,
"partitionKeyAlgorithm": "",
"subPartitionBy": "",
"subPartitionByExpr": "",
"subPartitions": 0,
"subPartitionKeyAlgorithm": "",
"fields": [
{
"objectType": "TableField_MYSQL",
"name": "id",
"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": "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",
"name": "duration",
"type": "int",
"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": "duration"
},
{
"objectType": "TableField_MYSQL",
"name": "match_rank",
"type": "int",
"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": "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,
"isAutoInc": false,
"comment": "平均速度",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "avg_speed"
},
{
"objectType": "TableField_MYSQL",
"name": "calorie",
"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": "卡路里",
"comment": "卡路里",
"columnFormat": "",
"storage": "",
"isVirtual": false,
...
...
@@ -27167,8 +26717,86 @@
"fields": [
{
"objectType": "TableField_MYSQL",
"name": "id",
"type": "bigint",
"name": "id",
"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": "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,
"decimals": -2147483648,
"isUnsigned": false,
...
...
@@ -27177,24 +26805,24 @@
"isBinary": false,
"charset": "",
"collation": "",
"isNullable":
fals
e,
"isNullable":
tru
e,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc":
tru
e,
"comment": "
主键
",
"isAutoInc":
fals
e,
"comment": "
类型 10 预选赛 20 淘汰赛
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
id
"
"oldName": "
type
"
},
{
"objectType": "TableField_MYSQL",
"name": "s
eries_id
",
"type": "
bigint
",
"name": "s
tart_time
",
"type": "
datetime
",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
...
...
@@ -27208,18 +26836,18 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
系列赛id
",
"comment": "
开始时间
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "s
eries_id
"
"oldName": "s
tart_time
"
},
{
"objectType": "TableField_MYSQL",
"name": "
name
",
"name": "
map
",
"type": "varchar",
"length": 255,
"decimals": 0,
...
...
@@ -27234,18 +26862,200 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
轮次名称
",
"comment": "
地图key
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
name
"
"oldName": "
map
"
},
{
"objectType": "TableField_MYSQL",
"name": "type",
"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,
"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": "chance"
},
{
"objectType": "TableField_MYSQL",
"name": "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 已发布",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "status"
},
{
"objectType": "TableField_MYSQL",
"name": "started",
"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": "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": "show_order",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
...
...
@@ -27257,22 +27067,48 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "显示顺序",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "show_order"
},
{
"objectType": "TableField_MYSQL",
"name": "version",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
类型 10 预选赛 20 淘汰赛
",
"comment": "
版本号
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
type
"
"oldName": "
version
"
},
{
"objectType": "TableField_MYSQL",
"name": "
start_time
",
"type": "
datetime
",
"name": "
deleted
",
"type": "
tinyint
",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
...
...
@@ -27283,24 +27119,24 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"defaultValue": "
0
",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
开始时间
",
"comment": "
删除标记
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
start_time
"
"oldName": "
deleted
"
},
{
"objectType": "TableField_MYSQL",
"name": "
map
",
"type": "
varchar
",
"length":
255
,
"decimals":
0
,
"name": "
create_by
",
"type": "
bigint
",
"length":
-2147483648
,
"decimals":
-2147483648
,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -27312,21 +27148,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
地图key
",
"comment": "
创建人
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
map
"
"oldName": "
create_by
"
},
{
"objectType": "TableField_MYSQL",
"name": "
path
",
"type": "
varchar
",
"length":
255
,
"decimals":
0
,
"name": "
create_time
",
"type": "
datetime
",
"length":
-2147483648
,
"decimals":
-2147483648
,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -27335,24 +27171,24 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"defaultValue": "
CURRENT_TIMESTAMP
",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
赛道key
",
"comment": "
创建时间
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
path
"
"oldName": "
create_time
"
},
{
"objectType": "TableField_MYSQL",
"name": "
distance
",
"type": "
decimal
",
"length":
1
8,
"decimals":
2
,
"name": "
update_by
",
"type": "
bigint
",
"length":
-214748364
8,
"decimals":
-2147483648
,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -27360,25 +27196,25 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "
Null
",
"defaultType": "
Others
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
总长度
",
"comment": "
修改人
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
distance
"
"oldName": "
update_by
"
},
{
"objectType": "TableField_MYSQL",
"name": "
climb_distanc
e",
"type": "d
ecimal
",
"length":
1
8,
"decimals":
2
,
"name": "
update_tim
e",
"type": "d
atetime
",
"length":
-214748364
8,
"decimals":
-2147483648
,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
...
...
@@ -27387,22 +27223,311 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp":
fals
e,
"defaultValue": "
CURRENT_TIMESTAMP
",
"isOnUpdateCurrentTimestamp":
tru
e,
"isAutoInc": false,
"comment": "
爬坡高度
",
"comment": "
修改时间
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "climb_distance"
},
"oldName": "update_time"
}
],
"indexes": [],
"primaryKey": {
"objectType": "PrimaryKey_MYSQL",
"name": "",
"fields": [
{
"objectType": "IndexField_MYSQL",
"name": "id",
"keyLength": 0,
"order": "",
"oldName": "id"
},
{
"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",
"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",
"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": ""
}
],
"oldName": "",
"indexMethod": "BTREE",
"comment": ""
},
"foreignKeys": [],
"triggers": [],
"tablePartitions": []
},
{
"objectType": "Table_MYSQL",
"name": "series_round_rank",
"comment": "系列赛",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"collation": "utf8mb4_0900_ai_ci",
"autoIncrement": 76,
"tablespace": "",
"storage": "",
"insertMethod": "",
"connection": "",
"checksum": false,
"rowFormat": "DYNAMIC",
"avgRowLength": 0,
"maxRows": 0,
"minRows": 0,
"keyBlockSize": 0,
"packKeys": "",
"delayKeyWrite": false,
"dataDirectory": "",
"indexDirectory": "",
"statsAutoRecalc": "",
"statsPersistent": "",
"statsSamplePages": 0,
"union": "",
"pageCheckSum": false,
"transactional": false,
"compression": "",
"oldName": "sport_user_summary",
"encryption": false,
"createOptions": "row_format=DYNAMIC",
"createTime": "2021-09-26 11:09:37",
"checkTime": "",
"dataFree": 0,
"dataLength": 16384,
"indexLength": 0,
"maxDataLength": 0,
"rows": 72,
"updateTime": "2022-01-25 11:38:29",
"DDL": "CREATE TABLE `sport_user_summary` (\n `id` bigint NOT NULL AUTO_INCREMENT COMMENT '主键',\n `type` int DEFAULT NULL COMMENT '汇总类型 1.骑行 2.跑步',\n `user_id` bigint DEFAULT NULL COMMENT '用户id',\n `total_distance` decimal(18,2) DEFAULT NULL COMMENT '总骑行距离',\n `total_climb_distance` decimal(18,2) DEFAULT NULL COMMENT '总爬坡高度',\n `total_duration` int DEFAULT NULL COMMENT '总持续时长',\n `version` bigint DEFAULT '0' COMMENT '版本号',\n `deleted` tinyint DEFAULT '0' COMMENT '删除标记',\n `ct_date` datetime DEFAULT CURRENT_TIMESTAMP COMMENT '创建时间',\n `lm_user_id` bigint DEFAULT NULL COMMENT '修改人id',\n `lm_date` datetime DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP COMMENT '修改时间',\n PRIMARY KEY (`id`) USING BTREE\n) ENGINE=InnoDB AUTO_INCREMENT=76 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci ROW_FORMAT=DYNAMIC COMMENT='运动记录汇总'",
"partitionBy": "",
"partitionByExpr": "",
"partitions": 0,
"partitionKeyAlgorithm": "",
"subPartitionBy": "",
"subPartitionByExpr": "",
"subPartitions": 0,
"subPartitionKeyAlgorithm": "",
"fields": [
{
"objectType": "TableField_MYSQL",
"name": "
chance
",
"type": "int",
"name": "
id
",
"type": "
big
int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
...
...
@@ -27411,24 +27536,24 @@
"isBinary": false,
"charset": "",
"collation": "",
"isNullable":
tru
e,
"isNullable":
fals
e,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc":
fals
e,
"comment": "
机会次数
",
"isAutoInc":
tru
e,
"comment": "
主键
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
chance
"
"oldName": "
id
"
},
{
"objectType": "TableField_MYSQL",
"name": "s
tatus
",
"type": "int",
"name": "s
eries_id
",
"type": "
big
int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
...
...
@@ -27442,19 +27567,19 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
状态 10 未发布 20 已发布
",
"comment": "
系列赛id
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "s
tatus
"
"oldName": "s
eries_id
"
},
{
"objectType": "TableField_MYSQL",
"name": "
starte
d",
"type": "bit",
"name": "
round_i
d",
"type": "bi
gin
t",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
...
...
@@ -27468,19 +27593,19 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
是否开始
",
"comment": "
轮次id
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
starte
d"
"oldName": "
round_i
d"
},
{
"objectType": "TableField_MYSQL",
"name": "
finishe
d",
"type": "bit",
"name": "
match_i
d",
"type": "bi
gin
t",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
...
...
@@ -27491,22 +27616,22 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "
0
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
轮次是否已完成
",
"comment": "
比赛id
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
finishe
d"
"oldName": "
match_i
d"
},
{
"objectType": "TableField_MYSQL",
"name": "
show_order
",
"type": "int",
"name": "
area_id
",
"type": "
big
int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
...
...
@@ -27517,21 +27642,21 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "
0
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
显示顺序
",
"comment": "
区域id
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
show_order
"
"oldName": "
area_id
"
},
{
"objectType": "TableField_MYSQL",
"name": "
version
",
"name": "
record_id
",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
...
...
@@ -27543,22 +27668,22 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "
0
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
版本号
",
"comment": "
关联记录id
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
version
"
"oldName": "
record_id
"
},
{
"objectType": "TableField_MYSQL",
"name": "
delete
d",
"type": "
tiny
int",
"name": "
sport_user_i
d",
"type": "
big
int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
...
...
@@ -27569,22 +27694,22 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "
0
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
删除标记
",
"comment": "
玩家id
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
delete
d"
"oldName": "
sport_user_i
d"
},
{
"objectType": "TableField_MYSQL",
"name": "
create_by
",
"type": "
big
int",
"name": "
duration
",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
...
...
@@ -27594,18 +27719,18 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "
Others
",
"defaultType": "
Null
",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "
创建人
",
"comment": "
比赛用时(秒)
",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "
create_by
"
"oldName": "
duration
"
},
{
"objectType": "TableField_MYSQL",
...
...
@@ -27632,58 +27757,6 @@
"virtualExpr": "",
"virtualType": "",
"oldName": "create_time"
},
{
"objectType": "TableField_MYSQL",
"name": "update_by",
"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": "修改人",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "update_by"
},
{
"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": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "update_time"
}
],
"indexes": [],
...
...
@@ -27887,27 +27960,6 @@
"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": "",
repository/src/main/java/com/antai/sport/http/server/repository/series/entity/SeriesRoundRank.java
View file @
894d00ef
...
...
@@ -37,6 +37,11 @@ public class SeriesRoundRank implements Serializable {
*/
private
Long
roundId
;
/**
* 区域id
*/
private
Long
areaId
;
/**
* 比赛id
*/
...
...
@@ -47,6 +52,11 @@ public class SeriesRoundRank implements Serializable {
*/
private
Long
recordId
;
/**
* 玩家id
*/
private
Long
sportUserId
;
/**
* 比赛用时(秒)
*/
...
...
server-api/src/main/java/com/antai/sport/http/server/server/api/business/series/dto/SeriesQualifyingMatchRankDTO.java
0 → 100644
View file @
894d00ef
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
SeriesQualifyingMatchRankDTO
{
@ApiModelProperty
(
"页号"
)
private
Integer
pageNo
;
@ApiModelProperty
(
"分页大小"
)
private
Integer
pageSize
;
@ApiModelProperty
(
"轮次id"
)
private
Long
roundId
;
@ApiModelProperty
(
"区域id"
)
private
Long
areaId
;
}
server-api/src/main/java/com/antai/sport/http/server/server/api/business/series/mapper/SeriesBusinessMapper.java
View file @
894d00ef
...
...
@@ -5,6 +5,7 @@ import com.antai.sport.http.server.server.api.business.series.vo.*;
import
org.apache.ibatis.annotations.Param
;
import
java.time.LocalDate
;
import
java.time.LocalDateTime
;
import
java.util.List
;
public
interface
SeriesBusinessMapper
{
...
...
@@ -32,4 +33,9 @@ public interface SeriesBusinessMapper {
@Param
(
"sportUserId"
)
Long
sportUserId
,
@Param
(
"today"
)
LocalDate
today
,
@Param
(
"tomorrow"
)
LocalDate
tomorrow
);
Integer
getMySeriesQulifyingMatchRank
(
@Param
(
"roundId"
)
Long
roundId
,
@Param
(
"areaId"
)
Long
areaId
,
@Param
(
"duration"
)
Integer
duration
,
@Param
(
"createTime"
)
LocalDateTime
createTime
);
}
server-api/src/main/java/com/antai/sport/http/server/server/api/business/series/service/SeriesService.java
View file @
894d00ef
...
...
@@ -4,9 +4,11 @@ import com.antai.sport.http.server.common.exception.BusinessException;
import
com.antai.sport.http.server.repository.series.entity.Series
;
import
com.antai.sport.http.server.repository.series.entity.SeriesApply
;
import
com.antai.sport.http.server.repository.series.entity.SeriesRound
;
import
com.antai.sport.http.server.repository.series.entity.SeriesRoundRank
;
import
com.antai.sport.http.server.repository.series.mapper.SeriesApplyMapper
;
import
com.antai.sport.http.server.repository.series.mapper.SeriesMapper
;
import
com.antai.sport.http.server.repository.series.mapper.SeriesRoundMapper
;
import
com.antai.sport.http.server.repository.series.mapper.SeriesRoundRankMapper
;
import
com.antai.sport.http.server.repository.sport.entity.SportUser
;
import
com.antai.sport.http.server.repository.sport.mapper.SportUserMapper
;
import
com.antai.sport.http.server.server.api.business.base.mapper.BaseBusinessMapper
;
...
...
@@ -17,6 +19,7 @@ import com.antai.sport.http.server.server.api.business.series.vo.SeriesApplyPreL
import
com.antai.sport.http.server.server.api.business.series.vo.SeriesDetailsVO
;
import
com.antai.sport.http.server.server.api.business.series.vo.SeriesListVO
;
import
com.antai.sport.http.server.server.api.business.series.vo.SeriesQualifyingMatchHomeVO
;
import
com.baomidou.mybatisplus.core.conditions.query.QueryWrapper
;
import
org.springframework.stereotype.Service
;
import
javax.annotation.Resource
;
...
...
@@ -35,6 +38,8 @@ public class SeriesService {
private
SeriesRoundMapper
seriesRoundMapper
;
@Resource
private
SportUserMapper
sportUserMapper
;
@Resource
private
SeriesRoundRankMapper
seriesRoundRankMapper
;
@Resource
private
SeriesConverter
seriesConverter
;
...
...
@@ -121,9 +126,21 @@ public class SeriesService {
result
.
setChance
(
seriesRound
.
getChance
());
result
.
setLeftChance
(
seriesRound
.
getChance
()
-
seriesBusinessMapper
.
getSeriesQualifyingMatchLeftChance
(
roundId
,
sportUserId
));
result
.
setBestResult
(
seriesBusinessMapper
.
getBestResult
(
roundId
,
sportUserId
));
//查询我的排名
QueryWrapper
<
SeriesRoundRank
>
rankQuery
=
new
QueryWrapper
<>();
rankQuery
.
lambda
().
eq
(
SeriesRoundRank:
:
getRoundId
,
roundId
)
.
eq
(
SeriesRoundRank:
:
getAreaId
,
areaId
)
.
eq
(
SeriesRoundRank:
:
getSportUserId
,
sportUserId
);
SeriesRoundRank
myRankData
=
seriesRoundRankMapper
.
selectOne
(
rankQuery
);
if
(
myRankData
!=
null
)
{
Integer
myRank
=
seriesBusinessMapper
.
getMySeriesQulifyingMatchRank
(
roundId
,
areaId
,
myRankData
.
getDuration
(),
myRankData
.
getCreateTime
());
result
.
setMyRank
(
myRank
);
}
}
}
return
result
;
}
...
...
server-api/src/main/java/com/antai/sport/http/server/server/api/business/series/vo/SeriesQualifyingMatchHomeVO.java
View file @
894d00ef
...
...
@@ -16,6 +16,8 @@ public class SeriesQualifyingMatchHomeVO {
private
Integer
leftChance
;
@ApiModelProperty
(
"最好成绩"
)
private
Integer
bestResult
;
@ApiModelProperty
(
"我的排名"
)
private
Integer
myRank
;
@ApiModelProperty
(
"用户赛区id,如果没有赛区id表示未报名"
)
private
Long
areaId
;
@ApiModelProperty
(
"地图名称"
)
...
...
server-api/src/main/resources/mapper/series/SeriesBusinessMapper.xml
View file @
894d00ef
...
...
@@ -81,4 +81,11 @@
order by t1.start_time desc
)
</select>
<select
id=
"getMySeriesQulifyingMatchRank"
resultType=
"java.lang.Integer"
>
select count(1) + 1
from series_round_rank
where round_id = #{roundId} and area_id = #{areaId}
and (duration
<
#{duration} or (duration = #{duration} and create_time
<
#{createTime}))
</select>
</mapper>
\ No newline at end of file
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