无关风月
2025-05-08 9486766c806fe1d9e082b2fd02ea1cc558f1b443
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
<?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.dsh.activity.mapper.IntroduceUserMapper">
 
    <select id="listAll" resultType="com.dsh.activity.model.IntroduceUser">
        select t1.* from t_introduce_user t1
        <where>
            <if test="query.shareUsersName!=null and query.shareUsersName!= ''">
                and t1.shareUsersName like concat('%',#{query.shareUsersName},'%')
            </if>
            <if test="query.shareUsersphone!=null and query.shareUsersphone!= ''">
                and t1.shareUsersphone like concat('%',#{query.shareUsersphone},'%')
            </if>
            <if test="query.userName!=null and query.userName!= ''">
                and t1.userName like concat('%',#{query.userName},'%')
            </if>
            <if test="query.userPhone!=null and query.userPhone!= ''">
                and t1.userPhone like concat('%',#{query.userPhone},'%')
            </if>
            <if test="query.introduceId!=null and query.introduceId!= ''">
                and t1.introduceRewards = #{query.introduceId}
            </if>
        </where>
    </select>
</mapper>