|
@@ -18,6 +18,12 @@
|
|
|
<if test="param.roomName != null">
|
|
<if test="param.roomName != null">
|
|
|
and room.name like concat('%', #{param.roomName}, '%')
|
|
and room.name like concat('%', #{param.roomName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="pushAccountIds != null and pushAccountIds.size() > 0">
|
|
|
|
|
+ and (room_config.primary_third_staff_id in
|
|
|
|
|
+ <foreach collection="pushAccountIds" item="item" open="(" close=")" separator=",">#{item}</foreach>
|
|
|
|
|
+ or room_config.second_third_staff_id in
|
|
|
|
|
+ <foreach collection="pushAccountIds" item="item" open="(" close=")" separator=",">#{item}</foreach>)
|
|
|
|
|
+ </if>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
|
<select id="getRoomList"
|
|
<select id="getRoomList"
|
|
@@ -37,6 +43,12 @@
|
|
|
<if test="param.roomName != null">
|
|
<if test="param.roomName != null">
|
|
|
and room.name like concat('%', #{param.roomName}, '%')
|
|
and room.name like concat('%', #{param.roomName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
|
|
+ <if test="pushAccountIds != null and pushAccountIds.size() > 0">
|
|
|
|
|
+ and (room_config.primary_third_staff_id in
|
|
|
|
|
+ <foreach collection="pushAccountIds" item="item" open="(" close=")" separator=",">#{item}</foreach>
|
|
|
|
|
+ or room_config.second_third_staff_id in
|
|
|
|
|
+ <foreach collection="pushAccountIds" item="item" open="(" close=")" separator=",">#{item}</foreach>)
|
|
|
|
|
+ </if>
|
|
|
order by staff.id desc
|
|
order by staff.id desc
|
|
|
limit #{offset}, #{pageSize}
|
|
limit #{offset}, #{pageSize}
|
|
|
</select>
|
|
</select>
|