<?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>
|