puzhibing
2024-02-05 640ff18d2d7f4be02ddb7f8f75e899f05545eb98
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
26
<?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.account.mapper.TAppGiftMapper">
 
 
    <select id="queryIntroduceAll" resultType="com.dsh.account.entity.IntroduceUser">
        select t1.* from t_app_gift t1
        <where>
            <if test="query.shareUserName!=null and query.shareUserName!= ''">
                and t1.shareUserName like concat('%',#{query.shareUserName},'%')
            </if>
            <if test="query.shareUserphone!=null and query.shareUserphone!= ''">
                and t1.shareUserPhone like concat('%',#{query.shareUserPhone},'%')
            </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.activityId!=null and query.activityId!= ''">
                and t1.activityId = #{query.activityId}
            </if>
        </where>
    </select>
</mapper>