huliguo
2025-05-09 bf2f1ffb99634b8350539b28bd9d1f20b30a5aa1
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
<?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.cl.mapper.UserMapper">
 
 
    <select id="pageList" resultType="com.cl.pojo.vo.UserVO">
        select id,name,phone,remark,status
        from t_user
        where
            del_flag = 0
          and id != 1
        <if test="null != name and ''!=name">
            and `name` like concat('%',#{name},'%')
        </if>
        <if test="null!=phone and ''!=phone">
            and phone like concat('%',#{phone},'%')
        </if>
        ORDER BY id DESC
    </select>
</mapper>