无关风月
2025-04-11 75942ecc2e438012c5ea876715966ace593565a0
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE mapper PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" "http://mybatis.org/dtd/mybatis-3-mapper.dtd">
<mapper namespace="com.ruoyi.study.mapper.VipOrderMapper">
 
    <select id="listAll" resultType="com.ruoyi.study.vo.VipOrderVO">
        select t1.*,t2.`name`,t2.phone
        from t_vip_order t1
        left join t_user t2 on t1.userid = t2.id
        where 1=1
        <if test="null != req.name and '' != req.name">
            and t2.`name` like CONCAT('%', #{req.name}, '%')
        </if>
        <if test="null != req.phone and '' != req.phone">
            and t2.phone like CONCAT('%', #{req.phone}, '%')
        </if>
        and t1.payState !=1
        order by t1.payTime desc
    </select>
</mapper>