Commit 9e8e233e authored by liming's avatar liming

系列赛淘汰赛数据初始化

parent ea591392
......@@ -25748,8 +25748,8 @@
},
{
"objectType": "Table_MYSQL",
"name": "series_match_player_record",
"comment": "系列赛比赛记录",
"name": "series_match_finalists",
"comment": "系列赛具体比赛入围列表",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"collation": "utf8mb4_0900_ai_ci",
......@@ -25824,7 +25824,7 @@
},
{
"objectType": "TableField_MYSQL",
"name": "series_id",
"name": "match_id",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
......@@ -25839,14 +25839,14 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "系列赛id",
"comment": "系列赛比赛id",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "series_id"
"oldName": "match_id"
},
{
"objectType": "TableField_MYSQL",
......@@ -25876,7 +25876,7 @@
},
{
"objectType": "TableField_MYSQL",
"name": "match_id",
"name": "sport_user_id",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
......@@ -25891,19 +25891,19 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "比赛id",
"comment": "入围玩家id",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "match_id"
"oldName": "sport_user_id"
},
{
"objectType": "TableField_MYSQL",
"name": "player_id",
"type": "bigint",
"name": "start_order",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
......@@ -25917,19 +25917,19 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "玩家id",
"comment": "位置序列",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "player_id"
"oldName": "start_order"
},
{
"objectType": "TableField_MYSQL",
"name": "entry_time",
"type": "datetime",
"name": "version",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
......@@ -25939,23 +25939,23 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "比赛进入时间",
"comment": "版本号",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "entry_time"
"oldName": "version"
},
{
"objectType": "TableField_MYSQL",
"name": "finish_time",
"type": "datetime",
"name": "deleted",
"type": "tinyint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
......@@ -25965,23 +25965,23 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"defaultType": "Others",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "比赛完成时间",
"comment": "删除标记",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "finish_time"
"oldName": "deleted"
},
{
"objectType": "TableField_MYSQL",
"name": "duration",
"type": "int",
"name": "create_by",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
......@@ -25991,23 +25991,23 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "比赛用时(秒)",
"comment": "创建人",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "duration"
"oldName": "create_by"
},
{
"objectType": "TableField_MYSQL",
"name": "match_rank",
"type": "int",
"name": "create_time",
"type": "datetime",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
......@@ -26017,25 +26017,25 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"defaultType": "Others",
"defaultValue": "CURRENT_TIMESTAMP",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "比赛名次",
"comment": "创建时间",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "match_rank"
"oldName": "create_time"
},
{
"objectType": "TableField_MYSQL",
"name": "distance",
"type": "decimal",
"length": 18,
"decimals": 2,
"name": "update_by",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -26043,25 +26043,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_distance",
"type": "decimal",
"length": 18,
"decimals": 2,
"name": "update_time",
"type": "datetime",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -26069,181 +26069,242 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"defaultType": "Others",
"defaultValue": "CURRENT_TIMESTAMP",
"isOnUpdateCurrentTimestamp": true,
"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": "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": "IndexField_MYSQL",
"name": "id",
"keyLength": 0,
"order": "",
"oldName": "id"
},
{
"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": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"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": "卡路里",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "calorie"
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"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": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"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": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "one_minutes_ftp"
"objectType": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "TableField_MYSQL",
"name": "five_minutes_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"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",
"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": true,
"isNullable": false,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "5分钟平均最佳FTP",
"isAutoInc": true,
"comment": "主键",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "five_minutes_ftp"
"oldName": "id"
},
{
"objectType": "TableField_MYSQL",
"name": "twenty_minutes_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"name": "series_id",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -26255,21 +26316,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "20分钟平均最佳FTP",
"comment": "系列赛id",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "twenty_minutes_ftp"
"oldName": "series_id"
},
{
"objectType": "TableField_MYSQL",
"name": "one_minutes_wkg",
"type": "decimal",
"length": 18,
"decimals": 2,
"name": "pre_round_id",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -26281,21 +26342,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "1分钟平均最佳功体比",
"comment": "上轮次id",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "one_minutes_wkg"
"oldName": "pre_round_id"
},
{
"objectType": "TableField_MYSQL",
"name": "five_minutes_wkg",
"type": "decimal",
"length": 18,
"decimals": 2,
"name": "name",
"type": "varchar",
"length": 255,
"decimals": 0,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -26307,21 +26368,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "5分钟平均最佳功体比",
"comment": "轮次名称",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "five_minutes_wkg"
"oldName": "name"
},
{
"objectType": "TableField_MYSQL",
"name": "twenty_minutes_wkg",
"type": "decimal",
"length": 18,
"decimals": 2,
"name": "type",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -26333,21 +26394,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "20分钟平均最佳功体比",
"comment": "类型 10 预选赛 20 淘汰赛",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "twenty_minutes_wkg"
"oldName": "type"
},
{
"objectType": "TableField_MYSQL",
"name": "score",
"type": "decimal",
"length": 18,
"decimals": 2,
"name": "start_time",
"type": "datetime",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -26359,20 +26420,20 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "得分",
"comment": "开始时间",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "score"
"oldName": "start_time"
},
{
"objectType": "TableField_MYSQL",
"name": "praise_num",
"type": "int",
"length": 0,
"name": "map",
"type": "varchar",
"length": 255,
"decimals": 0,
"isUnsigned": false,
"isZeroFill": false,
......@@ -26385,21 +26446,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "获攒数量",
"comment": "地图key",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "praise_num"
"oldName": "map"
},
{
"objectType": "TableField_MYSQL",
"name": "status",
"type": "tinyint",
"length": 4,
"decimals": -2147483648,
"name": "path",
"type": "varchar",
"length": 255,
"decimals": 0,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -26407,77 +26468,25 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Null",
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "比赛状态10:未完成比赛 20:完成比赛",
"comment": "赛道key",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "status"
"oldName": "path"
},
{
"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,
"name": "distance",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -26485,317 +26494,49 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "CURRENT_TIMESTAMP",
"defaultType": "Null",
"defaultValue": "",
"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": "修改时间",
"comment": "总长度",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"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": ""
}
],
"oldName": "",
"indexMethod": "BTREE",
"comment": ""
},
"foreignKeys": [],
"triggers": [],
"tablePartitions": []
"oldName": "distance"
},
{
"objectType": "Table_MYSQL",
"name": "series_match_finalists",
"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": "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": "id",
"type": "bigint",
"name": "chance",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
......@@ -26804,24 +26545,24 @@
"isBinary": false,
"charset": "",
"collation": "",
"isNullable": false,
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": true,
"comment": "主键",
"isAutoInc": false,
"comment": "机会次数",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "id"
"oldName": "chance"
},
{
"objectType": "TableField_MYSQL",
"name": "match_id",
"type": "bigint",
"name": "status",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
......@@ -26835,19 +26576,19 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "系列赛比赛id",
"comment": "状态 10 未发布 20 已发布",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "match_id"
"oldName": "status"
},
{
"objectType": "TableField_MYSQL",
"name": "round_id",
"type": "bigint",
"name": "started",
"type": "bit",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
......@@ -26861,19 +26602,45 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "轮次id",
"comment": "是否开始",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "round_id"
"oldName": "started"
},
{
"objectType": "TableField_MYSQL",
"name": "sport_user_id",
"type": "bigint",
"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,
......@@ -26887,18 +26654,18 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "入围玩家id",
"comment": "成绩是否确认",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "sport_user_id"
"oldName": "result_confirm"
},
{
"objectType": "TableField_MYSQL",
"name": "start_order",
"name": "show_order",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
......@@ -26910,17 +26677,17 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "位置序列",
"comment": "显示顺序",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "start_order"
"oldName": "show_order"
},
{
"objectType": "TableField_MYSQL",
......@@ -27001,95 +26768,193 @@
"oldName": "create_by"
},
{
"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": "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_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": [],
"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": "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": "IndexField_MYSQL",
"name": "",
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"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": [],
"primaryKey": {
"objectType": "PrimaryKey_MYSQL",
"objectType": "IndexField_MYSQL",
"name": "",
"fields": [
"keyLength": 0,
"order": "",
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
"name": "id",
"name": "",
"keyLength": 0,
"order": "",
"oldName": "id"
"oldName": ""
},
{
"objectType": "IndexField_MYSQL",
......@@ -27221,8 +27086,8 @@
},
{
"objectType": "Table_MYSQL",
"name": "series_round",
"comment": "系列赛",
"name": "series_match_player_record",
"comment": "系列赛比赛记录",
"engine": "InnoDB",
"characterSet": "utf8mb4",
"collation": "utf8mb4_0900_ai_ci",
......@@ -27293,12 +27158,168 @@
"isGeneratedAlways": false,
"virtualExpr": "",
"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",
"name": "series_id",
"type": "bigint",
"name": "duration",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
......@@ -27308,23 +27329,23 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "系列赛id",
"comment": "比赛用时(秒)",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "series_id"
"oldName": "duration"
},
{
"objectType": "TableField_MYSQL",
"name": "pre_round_id",
"type": "bigint",
"name": "match_rank",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
......@@ -27334,25 +27355,25 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "上轮次id",
"comment": "比赛名次",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "pre_round_id"
"oldName": "match_rank"
},
{
"objectType": "TableField_MYSQL",
"name": "name",
"type": "varchar",
"length": 255,
"decimals": 0,
"name": "distance",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -27360,25 +27381,25 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "轮次名称",
"comment": "骑行总长度",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "name"
"oldName": "distance"
},
{
"objectType": "TableField_MYSQL",
"name": "type",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"name": "climb_distance",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -27386,25 +27407,25 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "类型 10 预选赛 20 淘汰赛",
"comment": "爬坡距离",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "type"
"oldName": "climb_distance"
},
{
"objectType": "TableField_MYSQL",
"name": "start_time",
"type": "datetime",
"length": -2147483648,
"decimals": -2147483648,
"name": "avg_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -27412,25 +27433,25 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "开始时间",
"comment": "平均功率",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "start_time"
"oldName": "avg_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "map",
"type": "varchar",
"length": 255,
"decimals": 0,
"name": "avg_speed",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -27438,25 +27459,25 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "地图key",
"comment": "平均速度",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "map"
"oldName": "avg_speed"
},
{
"objectType": "TableField_MYSQL",
"name": "path",
"type": "varchar",
"length": 255,
"decimals": 0,
"name": "calorie",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -27468,18 +27489,18 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "赛道key",
"comment": "卡路里",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "path"
"oldName": "calorie"
},
{
"objectType": "TableField_MYSQL",
"name": "distance",
"name": "weight",
"type": "decimal",
"length": 18,
"decimals": 2,
......@@ -27490,22 +27511,22 @@
"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": "weight"
},
{
"objectType": "TableField_MYSQL",
"name": "climb_distance",
"name": "one_minutes_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
......@@ -27520,21 +27541,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "爬坡高度",
"comment": "1分钟平均最佳FTP",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "climb_distance"
"oldName": "one_minutes_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "chance",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"name": "five_minutes_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -27546,21 +27567,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "机会次数",
"comment": "5分钟平均最佳FTP",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "chance"
"oldName": "five_minutes_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "status",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"name": "twenty_minutes_ftp",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -27572,21 +27593,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "状态 10 未发布 20 已发布",
"comment": "20分钟平均最佳FTP",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "status"
"oldName": "twenty_minutes_ftp"
},
{
"objectType": "TableField_MYSQL",
"name": "started",
"type": "bit",
"length": -2147483648,
"decimals": -2147483648,
"name": "one_minutes_wkg",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -27598,21 +27619,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "是否开始",
"comment": "1分钟平均最佳功体比",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "started"
"oldName": "one_minutes_wkg"
},
{
"objectType": "TableField_MYSQL",
"name": "finished",
"type": "bit",
"length": -2147483648,
"decimals": -2147483648,
"name": "five_minutes_wkg",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -27621,24 +27642,24 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "轮次是否已完成",
"comment": "5分钟平均最佳功体比",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "finished"
"oldName": "five_minutes_wkg"
},
{
"objectType": "TableField_MYSQL",
"name": "result_confirm",
"type": "bit",
"length": -2147483648,
"decimals": -2147483648,
"name": "twenty_minutes_wkg",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -27650,21 +27671,21 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "成绩是否确认",
"comment": "20分钟平均最佳功体比",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "result_confirm"
"oldName": "twenty_minutes_wkg"
},
{
"objectType": "TableField_MYSQL",
"name": "show_order",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"name": "score",
"type": "decimal",
"length": 18,
"decimals": 2,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -27673,24 +27694,24 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "显示顺序",
"comment": "得分",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "show_order"
"oldName": "score"
},
{
"objectType": "TableField_MYSQL",
"name": "version",
"type": "bigint",
"length": -2147483648,
"decimals": -2147483648,
"name": "praise_num",
"type": "int",
"length": 0,
"decimals": 0,
"isUnsigned": false,
"isZeroFill": false,
"setEnumValues": "",
......@@ -27699,23 +27720,23 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "版本号",
"comment": "获攒数量",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "version"
"oldName": "praise_num"
},
{
"objectType": "TableField_MYSQL",
"name": "deleted",
"name": "status",
"type": "tinyint",
"length": -2147483648,
"length": 4,
"decimals": -2147483648,
"isUnsigned": false,
"isZeroFill": false,
......@@ -27724,23 +27745,23 @@
"charset": "",
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "0",
"defaultType": "Null",
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "删除标记",
"comment": "比赛状态10:未完成比赛 20:完成比赛",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "deleted"
"oldName": "status"
},
{
"objectType": "TableField_MYSQL",
"name": "create_by",
"type": "bigint",
"name": "result_confirm_status",
"type": "int",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
......@@ -27754,19 +27775,19 @@
"defaultValue": "",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "创建人",
"comment": "成绩确认状态 10 待确认 20 无效 30已确认未晋级 40晋级",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "create_by"
"oldName": "result_confirm_status"
},
{
"objectType": "TableField_MYSQL",
"name": "create_time",
"type": "datetime",
"name": "finished",
"type": "bit",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
......@@ -27777,22 +27798,22 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "CURRENT_TIMESTAMP",
"defaultValue": "0",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "创建时间",
"comment": "是否结束",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "create_time"
"oldName": "finished"
},
{
"objectType": "TableField_MYSQL",
"name": "update_by",
"type": "bigint",
"name": "create_time",
"type": "datetime",
"length": -2147483648,
"decimals": -2147483648,
"isUnsigned": false,
......@@ -27803,17 +27824,17 @@
"collation": "",
"isNullable": true,
"defaultType": "Others",
"defaultValue": "",
"defaultValue": "CURRENT_TIMESTAMP",
"isOnUpdateCurrentTimestamp": false,
"isAutoInc": false,
"comment": "修改人",
"comment": "创建时间",
"columnFormat": "",
"storage": "",
"isVirtual": false,
"isGeneratedAlways": false,
"virtualExpr": "",
"virtualType": "",
"oldName": "update_by"
"oldName": "create_time"
},
{
"objectType": "TableField_MYSQL",
......@@ -28043,27 +28064,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": "",
......@@ -94,5 +94,11 @@ public class SeriesController {
return success(seriesService.getSeriesKnockoutMatchRankList(dto));
}
@ApiOperation("11.淘汰赛玩家数据初始化")
@PostMapping("knockout/match/init")
public ResponseEntity<Result<SeriesMatchRecordInitVO>> seriesKnockoutMatchRecordInit(@RequestBody SeriesKnockoutMatchRecordInitDTO dto) {
return success(seriesService.seriesKnockoutMatchRecordInit(dto));
}
}
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;
}
......@@ -43,6 +43,8 @@ public class SeriesService {
private SeriesMatchPlayerRecordMapper seriesMatchPlayerRecordMapper;
@Resource
private SeriesMatchMapper seriesMatchMapper;
@Resource
private SeriesMatchFinalistsMapper seriesMatchFinalistsMapper;
@Resource
private SeriesConverter seriesConverter;
......@@ -312,4 +314,43 @@ public class SeriesService {
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;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment