Commit feeb8de0 authored by liming's avatar liming

增加邪猎赛比赛记录毫秒字段

parent 96874fa7
...@@ -21,6 +21,8 @@ public class SeriesKnockoutMatchRankVO { ...@@ -21,6 +21,8 @@ public class SeriesKnockoutMatchRankVO {
private Integer gameRank; private Integer gameRank;
@ApiModelProperty("用时(秒)") @ApiModelProperty("用时(秒)")
private Integer duration; private Integer duration;
@ApiModelProperty("用时(毫秒)")
private Integer millisecond;
@ApiModelProperty("骑行总长度") @ApiModelProperty("骑行总长度")
private BigDecimal distance; private BigDecimal distance;
@ApiModelProperty("爬坡高度") @ApiModelProperty("爬坡高度")
......
...@@ -19,6 +19,8 @@ public class SeriesQualifyingMatchRankVO { ...@@ -19,6 +19,8 @@ public class SeriesQualifyingMatchRankVO {
private String avatar; private String avatar;
@ApiModelProperty("用时(秒)") @ApiModelProperty("用时(秒)")
private Integer duration; private Integer duration;
@ApiModelProperty("用时(毫秒)")
private Integer millisecond;
@ApiModelProperty("骑行总长度") @ApiModelProperty("骑行总长度")
private BigDecimal distance; private BigDecimal distance;
@ApiModelProperty("爬坡高度") @ApiModelProperty("爬坡高度")
......
...@@ -25,4 +25,6 @@ public class SeriesQualifyingMatchVO { ...@@ -25,4 +25,6 @@ public class SeriesQualifyingMatchVO {
private LocalDateTime endTime; private LocalDateTime endTime;
@ApiModelProperty("玩家成绩") @ApiModelProperty("玩家成绩")
private Integer result; private Integer result;
@ApiModelProperty("玩家成绩(毫秒)")
private Integer millisecond;
} }
...@@ -61,7 +61,7 @@ ...@@ -61,7 +61,7 @@
<select id="getSeriesQualifyingMatchList" <select id="getSeriesQualifyingMatchList"
resultType="com.antai.sport.http.server.server.api.business.series.vo.SeriesQualifyingMatchVO"> resultType="com.antai.sport.http.server.server.api.business.series.vo.SeriesQualifyingMatchVO">
(select t1.id,t1.name,t1.entry_time,t1.start_time,t1.end_time,0 as result (select t1.id,t1.name,t1.entry_time,t1.start_time,t1.end_time,0 as result,0 as millisecond
from ( from (
select timestampdiff(SECOND,now(),t1.start_time) as timediff,t1.* select timestampdiff(SECOND,now(),t1.start_time) as timediff,t1.*
from series_match t1 from series_match t1
...@@ -71,10 +71,10 @@ ...@@ -71,10 +71,10 @@
) t1 order by timediff ) t1 order by timediff
) )
union all ( union all (
select t1.id,t1.name,t1.entry_time,t1.start_time,t1.end_time,t2.duration as result select t1.id,t1.name,t1.entry_time,t1.start_time,t1.end_time,t2.duration as result,t2.millisecond
from series_match t1 from series_match t1
left join ( left join (
select j1.match_id,j1.duration select j1.match_id,j1.duration,j1.millisecond
from series_match_player_record j1 from series_match_player_record j1
where j1.round_id = #{roundId} where j1.round_id = #{roundId}
and j1.status = 20 and j1.player_id = #{sportUserId} and j1.status = 20 and j1.player_id = #{sportUserId}
......
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