|
@@ -12,7 +12,12 @@
|
|
|
<if test="param.email != null and param.email !=''">
|
|
|
and s.email like concat ('%',#{param.email},'%')
|
|
|
</if>
|
|
|
- and (agent_key is not null or d.agent_id is not null)
|
|
|
+ <if test="param.agentId != null ">
|
|
|
+ and (agent_key is not null or d.agent_id = #{param.agentId} )
|
|
|
+ </if>
|
|
|
+ <if test="param.agentId == null ">
|
|
|
+ and (agent_key is not null or d.agent_id is not null )
|
|
|
+ </if>
|
|
|
order by s.id desc
|
|
|
|
|
|
</select>
|