44323
2023-09-26 6676f28a5a6ca65015a2b2c26e804fa998d625c8
cloud-server-competition/src/main/resources/mapper/PaymentCompetitionMapper.xml
@@ -57,4 +57,21 @@
            and appUserId = #{appUserId}
        </if>
    </select>
    <select id="listAll" resultType="com.dsh.competition.entity.PaymentCompetition">
        select * from t_payment_competition t1
        <where>
        <if test="query.amount!=null and query.amount!= ''">
            and t1.amount &lt;= #{query.amount}
        </if>
        <if test="query.userIds != null and query.userIds.size()>0">
            AND t1.appUserId IN
            <foreach collection="query.userIds" separator="," item="id" open="(" close=")">
                #{id}
            </foreach>
        </if>
        <if test="sTime !=null and sTime!= '' and eTime !=null and eTime!= ''">
            and t1.insertTime between #{sTime} and #{eTime}
        </if>
        </where>
    </select>
</mapper>