puzhibing
2023-07-27 f281d329a6fe9e61b8ff8f43cc9c7fcd0d5753cb
cloud-server-competition/src/main/resources/mapper/PaymentCompetitionMapper.xml
@@ -20,17 +20,17 @@
        where a.state = 1 and a.appUserId = #{uid} and a.payStatus != 1
        <!--1=未开始,2=进行中,3=已结束,4=已取消-->
        <if test="null != type and 1 == type">
            and b.status = 1
            and b.status = 1 and a.payStatus = 2
        </if>
        <if test="null != type and 2 == type">
            and b.status = 2
            and b.status = 2 and a.payStatus = 2
        </if>
        <if test="null != type and 3 == type">
            and b.status = 3
            and b.status = 3 and a.payStatus = 2
        </if>
        <if test="null != type and 4 == type">
            and a.payStatus = 3
        </if>
        order by a.insertTime desc limit #{pageSize}, #{pageNo}
        order by a.insertTime desc limit #{pageNo}, #{pageSize}
    </select>
</mapper>