From ddbb38c54db9c3670e5ff53f4bf713525de1099d Mon Sep 17 00:00:00 2001 From: 44323 <443237572@qq.com> Date: 星期二, 14 十一月 2023 09:12:10 +0800 Subject: [PATCH] 后台bug修改 --- cloud-server-competition/src/main/resources/mapper/ParticipantMapper.xml | 13 +++++++++++++ 1 files changed, 13 insertions(+), 0 deletions(-) diff --git a/cloud-server-competition/src/main/resources/mapper/ParticipantMapper.xml b/cloud-server-competition/src/main/resources/mapper/ParticipantMapper.xml index e38cfa4..6a0430d 100644 --- a/cloud-server-competition/src/main/resources/mapper/ParticipantMapper.xml +++ b/cloud-server-competition/src/main/resources/mapper/ParticipantMapper.xml @@ -13,4 +13,17 @@ and t3.payStatus =3 </if> </select> + <select id="getPeoples" resultType="com.dsh.competition.feignclient.model.CompetitionUser"> + select t2.id, t2.name,t2.gender sex,t2.phone ,t2.idcard idCard ,t3.payStatus state + from t_user_competition t1 left join t_participant t2 on t1.participantId = t2.id + left join t_payment_competition t3 on t1.paymentCompetitionId = t3.id + where t1.competitionId =#{id} and t2.id is not null and t3.id is not null + <if test="state !=null and state !='' and state ==1"> + and t3.payStatus in (1,2) + </if> + <if test="state !=null and state !='' and state ==3"> + and t3.payStatus =3 + </if> + </select> + </mapper> \ No newline at end of file -- Gitblit v1.7.1