|
|
@@ -216,6 +216,18 @@
|
|
|
from yt_dyz_ad_record ar
|
|
|
join yt_dyz_user au on ar.user_id = au.user_id
|
|
|
<where>
|
|
|
+ <if test="userId != null and userId !=''">
|
|
|
+ and ar.user_id = #{userId}
|
|
|
+ </if>
|
|
|
+ <if test="nickName != null and nickName !=''">
|
|
|
+ and au.nick_name like concat('%',#{nickName},'%')
|
|
|
+ </if>
|
|
|
+ <if test="ditchId != null">
|
|
|
+ and au.ditch_id = #{ditchId}
|
|
|
+ </if>
|
|
|
+ <if test="userStatus != null">
|
|
|
+ and au.user_status = #{userStatus}
|
|
|
+ </if>
|
|
|
<if test="appIds != null and appIds != ''">
|
|
|
and ar.app_id in
|
|
|
<foreach collection="appIds.split(',')" separator="," item="item" open="(" close=")">
|