Commit e202e23c authored by liming's avatar liming

增加比赛创建删除接口

parent 6e68d241
...@@ -21,6 +21,8 @@ public class DtoMatchBicycleResult { ...@@ -21,6 +21,8 @@ public class DtoMatchBicycleResult {
private Long matchId; private Long matchId;
@ApiModelProperty("用户id") @ApiModelProperty("用户id")
private Long userId; private Long userId;
@ApiModelProperty("用户昵称")
private String nickname;
@ApiModelProperty("进入时间 yyyy-MM-dd HH:mm:ss") @ApiModelProperty("进入时间 yyyy-MM-dd HH:mm:ss")
@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8") @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
private LocalDateTime entryTime; private LocalDateTime entryTime;
......
...@@ -32,6 +32,9 @@ public class RespBaseUserInfo { ...@@ -32,6 +32,9 @@ public class RespBaseUserInfo {
infoInitialized = sportUser.getInfoInitialized(); infoInitialized = sportUser.getInfoInitialized();
roleInitialized = sportUser.getRoleInitialized(); roleInitialized = sportUser.getRoleInitialized();
equipmentInitialized = sportUser.getEquipmentInitialized(); equipmentInitialized = sportUser.getEquipmentInitialized();
totalClimbDistance = 0;
totalDistance = 0;
totalGameHours = 0;
} }
@ApiModelProperty(value = "手机号") @ApiModelProperty(value = "手机号")
...@@ -75,4 +78,14 @@ public class RespBaseUserInfo { ...@@ -75,4 +78,14 @@ public class RespBaseUserInfo {
@ApiModelProperty(value = "是否已经初始化设备") @ApiModelProperty(value = "是否已经初始化设备")
private Boolean equipmentInitialized; private Boolean equipmentInitialized;
@ApiModelProperty(value = "总骑行距离")
private Integer totalDistance;
@ApiModelProperty(value = "总爬坡高度")
private Integer totalClimbDistance;
@ApiModelProperty(value = "总骑行时间")
private Integer totalGameHours;
} }
...@@ -22,9 +22,10 @@ ...@@ -22,9 +22,10 @@
<select id="getMatchBicyclePlayerRecord" <select id="getMatchBicyclePlayerRecord"
resultType="com.antai.sport.http.server.game.api.business.match.bicycle.dto.DtoMatchBicycleResult"> resultType="com.antai.sport.http.server.game.api.business.match.bicycle.dto.DtoMatchBicycleResult">
select * select t1.*,t2.nickname
from match_bicycle_player from match_bicycle_player t1
where deleted = 0 left join sport_user t2 on t1.user_id = t2.id
where t1.deleted = 0 and t1.match_id = #{matchId}
order by match_rank order by match_rank
</select> </select>
......
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