| | |
| | | <update id="membershipEnd"> |
| | | update t_app_user set isVip = 0 where isVip = 1 and now() >= vipEndTime |
| | | </update> |
| | | <select id="listAll" resultType="com.dsh.account.model.vo.QueryAppUserVO"> |
| | | select t1.* from t_app_user t1 |
| | | <where> |
| | | <if test="query.city!=null and query.city!= ''"> |
| | | and t1.city = #{query.city} |
| | | </if> |
| | | <if test="query.province!=null and query.province!= ''"> |
| | | and t1.province = #{query.province} |
| | | </if> |
| | | <if test="query.name!=null and query.name!= ''"> |
| | | AND t1.name LIKE concat('%',#{query.name},'%') |
| | | </if> |
| | | <if test="query.phone!=null and query.phone!= ''"> |
| | | and t1.phone LIKE concat('%',#{query.phone},'%') |
| | | </if> |
| | | <if test="query.isVip!=null and query.isVip!= ''"> |
| | | and t1.isVip = #{query.isVip} |
| | | </if> |
| | | and t1.state != 3 |
| | | </where> |
| | | </select> |
| | | </mapper> |