|
|
@@ -283,9 +283,9 @@
|
|
|
(select nick_name from sys_user u where u.user_id=s.admin_id) safe_user_name,
|
|
|
(select phonenumber from sys_user u where u.user_id=s.admin_id) safe_user_phone,
|
|
|
s.admin_id userId,
|
|
|
- l.room
|
|
|
- from lab_subject_layout l INNER JOIN lab_subject s on l.id= s.layout_id
|
|
|
- where l.is_subject=1
|
|
|
+ l.room_num room
|
|
|
+ from lab_build_floor_layout l INNER JOIN lab_subject s on l.sub_id= s.id
|
|
|
+ where 1=1
|
|
|
<if test="deptIds != null and deptIds.size()>0"> <!-- 部门集合id-->
|
|
|
and s.dept_id in
|
|
|
<foreach item="item" collection="deptIds" separator="," open="(" close=")" index="">'${item}'</foreach>
|
|
|
@@ -294,7 +294,7 @@
|
|
|
and ( s.dept_id in (SELECT dt.dept_id FROM sys_dept dt WHERE find_in_set(#{deptId} ,ancestors )) or s.dept_id = #{deptId} )
|
|
|
</if>
|
|
|
<if test="room != null "> <!-- 房间号-->
|
|
|
- and l.room like concat('%', #{room}, '%')
|
|
|
+ and l.room_num like concat('%', #{room}, '%')
|
|
|
</if>
|
|
|
<if test="name != null "> <!-- 实验室名称-->
|
|
|
and s.name like concat('%', #{name}, '%')
|