|
@@ -15,11 +15,8 @@
|
|
|
<if test="param.groupLeaderName != null">
|
|
<if test="param.groupLeaderName != null">
|
|
|
and staff.name like concat('%', #{param.groupLeaderName}, '%')
|
|
and staff.name like concat('%', #{param.groupLeaderName}, '%')
|
|
|
</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 test="param.roomName != null">
|
|
|
|
|
+ and room.name like concat('%', #{param.roomName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
</select>
|
|
</select>
|
|
|
|
|
|
|
@@ -37,11 +34,8 @@
|
|
|
<if test="param.groupLeaderName!= null">
|
|
<if test="param.groupLeaderName!= null">
|
|
|
and staff.name like concat('%', #{param.groupLeaderName}, '%')
|
|
and staff.name like concat('%', #{param.groupLeaderName}, '%')
|
|
|
</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 test="param.roomName != null">
|
|
|
|
|
+ and room.name like concat('%', #{param.roomName}, '%')
|
|
|
</if>
|
|
</if>
|
|
|
order by staff.id desc
|
|
order by staff.id desc
|
|
|
limit #{offset}, #{pageSize}
|
|
limit #{offset}, #{pageSize}
|