Commit e202e23c authored by liming's avatar liming

增加比赛创建删除接口

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