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