Commit b18fc8ec by Lem

只查当天

parent ab4041c8
...@@ -16,4 +16,7 @@ public class GetMatchListByRequest extends CommonPage { ...@@ -16,4 +16,7 @@ public class GetMatchListByRequest extends CommonPage {
@ApiModelProperty("比赛日期 yyyy-MM-dd 格式") @ApiModelProperty("比赛日期 yyyy-MM-dd 格式")
private String matchTime; private String matchTime;
@ApiModelProperty("PC OR H5 需要带 true,只查当天的比赛")
private Boolean pcOrH5;
} }
...@@ -128,6 +128,9 @@ public class MatchServiceImpl implements MatchService { ...@@ -128,6 +128,9 @@ public class MatchServiceImpl implements MatchService {
} }
if (StringUtils.isNotBlank(commonStringId.getMatchTime())) { if (StringUtils.isNotBlank(commonStringId.getMatchTime())) {
wrapper.ge("match_time", commonStringId.getMatchTime() + " 00:00:00"); wrapper.ge("match_time", commonStringId.getMatchTime() + " 00:00:00");
if(commonStringId.getPcOrH5() != null && commonStringId.getPcOrH5()){
wrapper.le("match_time", commonStringId.getMatchTime() + " 23:59:59");
}
} else { } else {
wrapper.ge("match_time", DateUtil.getYsdStartTime()); wrapper.ge("match_time", DateUtil.getYsdStartTime());
} }
......
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