44323
2024-05-16 8d90d3f271a9c28bf46f755b1561f07c163d8823
ruoyi-service/ruoyi-management/src/main/resources/mapper/management/src/main/resources/mapper/TUserMapper.xml
@@ -25,27 +25,6 @@
    <sql id="Base_Column_List">
        id, name, account, phone, password, openId, birthday, gender, headImg, integral, state, insertTime, vipEndTime, vipPayTime, isBack, backTime
    </sql>
    <select id="listAll" resultType="com.ruoyi.management.vo.AppUserVO">
        select *
        from t_user
        where 1=1
        <if test="req.name !=null and req.name!=''">
            AND name LIKE concat('%',#{req.name},'%')
        </if>
        <if test="req.phone !=null and req.phone!=''">
            AND phone LIKE concat('%',#{req.phone},'%')
        </if>
        <if test="req.state !=null ">
            AND state = #{req.state}
        </if>
        <if test="req.isVip !=null and req.isVip == 0 ">
            AND (isNull(vipEndTime) or vipEndTime &lt;= NOW())
        </if>
        <if test="req.isVip !=null and req.isVip == 1 ">
            AND (vipEndTime IS NOT NULL and vipEndTime &gt;= NOW())
        </if>
        and state!=3
        order by insertTime desc
    </select>
</mapper>