|
|
@@ -11,13 +11,16 @@
|
|
|
where room.is_delete = 0
|
|
|
<trim prefixOverrides="and">
|
|
|
<if test="param.corpName != null">
|
|
|
- and corp.name = #{param.corpName}
|
|
|
+ and corp.name like concat('%', #{param.corpName}, '%')
|
|
|
</if>
|
|
|
<if test="param.groupLeaderName != null">
|
|
|
- and staff.name = #{param.groupLeaderName}
|
|
|
+ and staff.name like concat('%', #{param.groupLeaderName}, '%')
|
|
|
</if>
|
|
|
- <if test="param.pushAccountName != null">
|
|
|
- and (room_config.primary_push_account_id = #{pushAccountId} or room_config.secondary_push_account_id = #{pushAccountId})
|
|
|
+ <if test="pushAccountIds != null and pushAccountIds.size() > 0">
|
|
|
+ and (room_config.primary_push_account_id in
|
|
|
+ <foreach collection="pushAccountIds" item="item" open="(" close=")" separator=",">#{item}</foreach>
|
|
|
+ or room_config.secondary_push_account_id in
|
|
|
+ <foreach collection="pushAccountIds" item="item" open="(" close=")" separator=",">#{item}</foreach>)
|
|
|
</if>
|
|
|
</trim>
|
|
|
</select>
|
|
|
@@ -32,14 +35,16 @@
|
|
|
where room.is_delete = 0
|
|
|
<trim prefixOverrides="and">
|
|
|
<if test="param.corpName != null">
|
|
|
- and corp.name = #{param.corpName}
|
|
|
+ and corp.name like concat('%', #{param.corpName}, '%')
|
|
|
</if>
|
|
|
<if test="param.groupLeaderName!= null">
|
|
|
- and staff.name = #{param.groupLeaderName}
|
|
|
+ and staff.name like concat('%', #{param.groupLeaderName}, '%')
|
|
|
</if>
|
|
|
- <if test="param.pushAccountName != null">
|
|
|
- and (room_config.primary_push_account_id = #{pushAccountId} or room_config.secondary_push_account_id =
|
|
|
- #{pushAccountId})
|
|
|
+ <if test="pushAccountIds != null and pushAccountIds.size() > 0">
|
|
|
+ and (room_config.primary_push_account_id in
|
|
|
+ <foreach collection="pushAccountIds" item="item" open="(" close=")" separator=",">#{item}</foreach>
|
|
|
+ or room_config.secondary_push_account_id in
|
|
|
+ <foreach collection="pushAccountIds" item="item" open="(" close=")" separator=",">#{item}</foreach>)
|
|
|
</if>
|
|
|
</trim>
|
|
|
order by staff.id desc
|