| | |
| | | * @return |
| | | */ |
| | | List<WorldCupListVo> getMyWorldCupList(@Param("item") MyWorldCupList myWorldCupList); |
| | | |
| | | |
| | | |
| | | int getCount(@Param("worldCupId") Integer worldCupId, @Param("worldCupPaymentId")List<Long> worldCupPaymentId); |
| | | } |
| | |
| | | import com.baomidou.mybatisplus.extension.service.IService; |
| | | import com.dsh.communityWorldCup.entity.WorldCupPaymentParticipant; |
| | | import com.dsh.communityWorldCup.model.*; |
| | | import org.apache.ibatis.annotations.Param; |
| | | import org.springframework.web.bind.annotation.RequestBody; |
| | | |
| | | import java.util.List; |
| | |
| | | * @return |
| | | */ |
| | | Map<String, Object> getRegisteredPersonnel(RegisteredPersonnel registeredPersonnel); |
| | | |
| | | |
| | | int getCount(Integer worldCupId, List<Long> worldCupPaymentId); |
| | | } |
| | |
| | | map.put("total", list2.size()); |
| | | return map; |
| | | } |
| | | |
| | | @Override |
| | | public int getCount(Integer worldCupId, List<Long> worldCupPaymentId) { |
| | | return this.baseMapper.getCount(worldCupId, worldCupPaymentId); |
| | | } |
| | | } |
| | |
| | | if(collect.size() == 0){ |
| | | stringObjectMap.put("applicants", 0); |
| | | }else{ |
| | | int count1 = worldCupPaymentParticipantService.count(new QueryWrapper<WorldCupPaymentParticipant>() |
| | | .eq("worldCupId", id).in("worldCupPaymentId", collect) |
| | | .groupBy("worldCupPaymentId, participantType")); |
| | | int count1 = worldCupPaymentParticipantService.getCount(id, collect); |
| | | stringObjectMap.put("applicants", count1); |
| | | } |
| | | } |
| | | map.put("rows", mapList); |
| | | int count = this.baseMapper.worldCupGameStatisticsCount(worldCupGameStatistics); |
| | | map.put("total", count); |
| | | return map; |
| | |
| | | a.id, |
| | | a.`name`, |
| | | DATE_FORMAT(a.startTime, '%Y.%m.%d %H:%i') as startTime, |
| | | DATE_FORMAT(a.endTime, '%Y.%m.%d %H:%i') as endTime, |
| | | DATE_FORMAT(a.endTime, '%Y.%m.%d %H:%i') as endTime |
| | | from t_world_cup a |
| | | where 1 = 1 |
| | | <if test="null != item.name and '' != item.name"> |
| | |
| | | </if> |
| | | order by b.createTime desc limit #{item.pageNo}, #{item.pageSize} |
| | | </select> |
| | | |
| | | |
| | | |
| | | <select id="getCount" resultType="int"> |
| | | select count(*) from ( |
| | | select |
| | | worldCupPaymentId, |
| | | participantType |
| | | from t_world_cup_payment_participant1 where worldCupId = #{worldCupId} and worldCupPaymentId in |
| | | <foreach collection="worldCupPaymentId" item="item" index="index" open="(" separator="," close=")"> |
| | | #{item} |
| | | </foreach> |
| | | group by worldCupPaymentId, participantType |
| | | ) as aa |
| | | </select> |
| | | </mapper> |