Commit 1e3b4978 by lenx065@gmail.com

热门

parent e8a34b48
......@@ -40,5 +40,7 @@ public class Match extends BaseStringIdEntity {
//0乐鱼 1AlStat
private Integer sourceType;
//默认 0 热门 1
private Integer hot;
}
......@@ -117,8 +117,12 @@ public class MatchServiceImpl implements MatchService {
wrapper.eq("source_type", 1);
if (StringUtils.isNotBlank(commonStringId.getSportsId())) {
if(commonStringId.getSportsId().equals("-1")){
wrapper.eq("hot", 1);
} else {
wrapper.eq("sports_id", commonStringId.getSportsId());
}
}
if (StringUtils.isNotBlank(commonStringId.getMatchTime())) {
wrapper.ge("match_time", commonStringId.getMatchTime() + " 00:00:00");
wrapper.le("match_time", commonStringId.getSportsId() + " 23:59:59");
......
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