| | |
| | | <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 <= NOW()) |
| | | </if> |
| | | <if test="req.isVip !=null and req.isVip == 1 "> |
| | | AND (vipEndTime IS NOT NULL and vipEndTime >= NOW()) |
| | | </if> |
| | | and state!=3 |
| | | order by insertTime desc |
| | | </select> |
| | | |
| | | |
| | | </mapper> |