nickchange
2023-11-16 b87922420561a35c1e99b67fb6caf3fe30bc8ccf
cloud-server-competition/src/main/resources/mapper/ParticipantMapper.xml
@@ -3,8 +3,9 @@
<mapper namespace="com.dsh.competition.mapper.ParticipantMapper">
    <select id="getPeopleFromId" 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
         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)