| | |
| | | map.put("total", 0); |
| | | return map; |
| | | } |
| | | List<WorldCupPaymentParticipant> list1 = this.list(new QueryWrapper<WorldCupPaymentParticipant>().in("worldCupPaymentId", collect)); |
| | | List<WorldCupPaymentParticipant> list1 = this.list(new QueryWrapper<WorldCupPaymentParticipant>().in("worldCupPaymentId", collect).orderByDesc("createTime")); |
| | | List<Map<String, Object>> list2 = new ArrayList<>(); |
| | | SimpleDateFormat sdf = new SimpleDateFormat("yyyy"); |
| | | SimpleDateFormat sdf1 = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); |
| | | for (WorldCupPaymentParticipant on : list1) { |
| | | WorldCupPayment worldCupPayment = worldCupPaymentService.getById(on.getWorldCupPaymentId()); |
| | | Map<String, Object> map1 = new HashMap<>(); |
| | |
| | | map1.put("phone", ToolUtil.isEmpty(tStudent.getPhone()) ? appUser.getPhone() : tStudent.getPhone()); |
| | | map1.put("idcard", tStudent.getIdCard()); |
| | | map1.put("state", worldCupPayment.getPayStatus() - 1); |
| | | map1.put("insertTime", sdf1.format(worldCupPayment.getPayTime())); |
| | | }else{ |
| | | Participant participant = participantClient.getParticipant(on.getParticipantId()); |
| | | if(ToolUtil.isNotEmpty(name) && participant.getName().indexOf(name) == -1){ |
| | |
| | | map1.put("phone", ToolUtil.isNotEmpty(participant.getPhone()) ? participant.getPhone() : appUser.getPhone()); |
| | | map1.put("idcard", participant.getIdcard()); |
| | | map1.put("state", worldCupPayment.getPayStatus() - 1); |
| | | map1.put("insertTime", sdf1.format(worldCupPayment.getPayTime())); |
| | | } |
| | | list2.add(map1); |
| | | } |
| | |
| | | package com.dsh.competition.feignclient.model; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | public class CompetitionUser { |
| | |
| | | private String phone; |
| | | private String idCard; |
| | | private Integer state; |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date insertTime; |
| | | } |
| | |
| | | if(null != paymentCompetition){ |
| | | competitionUser.setState(paymentCompetition.getPayStatus()); |
| | | } |
| | | competitionUser.setInsertTime(userCompetition.getInsertTime()); |
| | | list.add(competitionUser); |
| | | } |
| | | Page<CompetitionUser> page = new Page<>(); |
| | |
| | | package com.dsh.course.feignClient.competition.model; |
| | | |
| | | import com.fasterxml.jackson.annotation.JsonFormat; |
| | | import lombok.Data; |
| | | |
| | | import java.util.Date; |
| | | |
| | | @Data |
| | | public class CompetitionUser { |
| | |
| | | private String phone; |
| | | private String idCard; |
| | | private Integer state; |
| | | @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8") |
| | | private Date insertTime; |
| | | } |
| | |
| | | }, |
| | | {title: '身份证号', field: 'idCard', visible: true, align: 'center', valign: 'middle',width:'8%', |
| | | }, |
| | | {title: '报名时间', field: 'insertTime', visible: true, align: 'center', valign: 'middle',width:'8%', |
| | | }, |
| | | {title: '状态', field: 'state', visible: true, align: 'center', valign: 'middle',width:'8%', |
| | | formatter:function (data) { |
| | | return {1:"正常",2:"正常",3:"已取消"}[data] |
| | |
| | | return '<a href="#" onclick="RegisteredPersonnel.openQRCode(' + item.id + ', ' + item.isStudent + ',\'' + item.name + '\')" style="color:blue;">查看</a>' |
| | | } |
| | | }, |
| | | {title: '报名时间', field: 'insertTime', visible: true, align: 'center', valign: 'middle'}, |
| | | {title: '状态', field: 'state', visible: true, align: 'center', valign: 'middle', |
| | | formatter:function (data) { |
| | | return {1:"正常",2:"已取消"}[data] |