| | |
| | | package com.dsh.communityWorldCup.service.impl; |
| | | |
| | | import com.alibaba.fastjson.JSON; |
| | | import com.alibaba.fastjson.JSONObject; |
| | | import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper; |
| | | import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl; |
| | | import com.dsh.communityWorldCup.entity.WorldCup; |
| | |
| | | */ |
| | | @Override |
| | | public void endWorldCupCallback(String custom, Integer red_score, Integer blue_score) { |
| | | List<Long> ids = JSON.parseArray(custom, Long.class); |
| | | JSONObject jsonObject = JSON.parseObject(custom); |
| | | Integer gameType = jsonObject.getInteger("gameType"); |
| | | //智慧球场比赛 |
| | | if(2 == gameType){ |
| | | return; |
| | | } |
| | | List<Long> ids = jsonObject.getJSONArray("ids").toJavaList(Long.class); |
| | | List<WorldCupCompetitor> worldCupCompetitors = this.listByIds(ids); |
| | | try { |
| | | WorldCupCompetitor worldCupCompetitor1 = worldCupCompetitors.get(0); |