|
@@ -263,8 +263,8 @@
|
|
|
(select i.id from xxp_card_info i where i.subJect_id=t.id LIMIT 1) xxpCardInfoId,
|
|
(select i.id from xxp_card_info i where i.subJect_id=t.id LIMIT 1) xxpCardInfoId,
|
|
|
CONCAT(su.nick_name, '@', su.phonenumber) AS adminNameAndPhone,
|
|
CONCAT(su.nick_name, '@', su.phonenumber) AS adminNameAndPhone,
|
|
|
|
|
|
|
|
- (select d.dept_name from sys_dept d where t.build_id = d.dept_id) buildName,
|
|
|
|
|
- (select b.name from lab_building b where b.id = t.floor_id) floorName,
|
|
|
|
|
|
|
+ (select b.name from lab_build_floor b where b.id = t.build_id) buildName,
|
|
|
|
|
+ (select b.name from lab_build_floor b where b.id = t.floor_id) floorName,
|
|
|
(SELECT l.room_num FROM lab_build_floor_layout l WHERE l.sub_id = t.id) roomName
|
|
(SELECT l.room_num FROM lab_build_floor_layout l WHERE l.sub_id = t.id) roomName
|
|
|
|
|
|
|
|
from lab_subject t
|
|
from lab_subject t
|
|
@@ -459,9 +459,9 @@
|
|
|
t.sign_time,
|
|
t.sign_time,
|
|
|
CONCAT(su.nick_name,'@',su.phonenumber) AS adminNameAndPhone,
|
|
CONCAT(su.nick_name,'@',su.phonenumber) AS adminNameAndPhone,
|
|
|
|
|
|
|
|
- (select d.dept_name from sys_dept d where t.build_id = d.dept_id) buildName,
|
|
|
|
|
- (select b.name from lab_building b where b.id = t.floor_id) floorName,
|
|
|
|
|
- (SELECT l.room FROM lab_subject_layout l WHERE l.id = t.layout_id ) roomName,
|
|
|
|
|
|
|
+ (select b.name from lab_build_floor b where b.id = t.build_id) buildName,
|
|
|
|
|
+ (select b.name from lab_build_floor b where b.id = t.floor_id) floorName,
|
|
|
|
|
+ (SELECT l.room_num FROM lab_build_floor_layout l WHERE l.id = t.layout_id ) roomName,
|
|
|
t.inspect_check_in,
|
|
t.inspect_check_in,
|
|
|
t.inspect_skipped,
|
|
t.inspect_skipped,
|
|
|
t.inspect_check_count,
|
|
t.inspect_check_count,
|
|
@@ -794,7 +794,7 @@
|
|
|
INNER JOIN lab_safe_classified sc ON sc.id = s.level
|
|
INNER JOIN lab_safe_classified sc ON sc.id = s.level
|
|
|
INNER JOIN lab_safe_classtype st ON st.id = s.type_id
|
|
INNER JOIN lab_safe_classtype st ON st.id = s.type_id
|
|
|
INNER JOIN sys_user u ON u.user_id = s.`admin_id`
|
|
INNER JOIN sys_user u ON u.user_id = s.`admin_id`
|
|
|
- INNER JOIN lab_building lb on s.floor_id = lb.id
|
|
|
|
|
|
|
+ INNER JOIN lab_build_floor lb on s.floor_id = lb.id
|
|
|
INNER JOIN sys_dept d2 ON s.build_id = d2.`dept_id`
|
|
INNER JOIN sys_dept d2 ON s.build_id = d2.`dept_id`
|
|
|
<where>
|
|
<where>
|
|
|
<if test="floorId != null ">
|
|
<if test="floorId != null ">
|
|
@@ -842,7 +842,7 @@
|
|
|
INNER JOIN lab_safe_classified sc ON sc.id = s.level
|
|
INNER JOIN lab_safe_classified sc ON sc.id = s.level
|
|
|
INNER JOIN lab_safe_classtype st ON st.id = s.type_id
|
|
INNER JOIN lab_safe_classtype st ON st.id = s.type_id
|
|
|
INNER JOIN sys_user u ON u.user_id = s.`admin_id`
|
|
INNER JOIN sys_user u ON u.user_id = s.`admin_id`
|
|
|
- INNER JOIN lab_building lb on s.floor_id = lb.id
|
|
|
|
|
|
|
+ INNER JOIN lab_build_floor lb on s.floor_id = lb.id
|
|
|
INNER JOIN sys_dept d2 ON s.build_id = d2.`dept_id`
|
|
INNER JOIN sys_dept d2 ON s.build_id = d2.`dept_id`
|
|
|
inner join lab_risk_planjoinsub rpb on s.`id` = rpb.`subject_id`
|
|
inner join lab_risk_planjoinsub rpb on s.`id` = rpb.`subject_id`
|
|
|
inner join lab_risk_plan rp on rp.`id` = rpb.`risk_plan_id`
|
|
inner join lab_risk_plan rp on rp.`id` = rpb.`risk_plan_id`
|
|
@@ -890,7 +890,7 @@
|
|
|
LEFT JOIN lab_safe_classified sc ON sc.id = s.level
|
|
LEFT JOIN lab_safe_classified sc ON sc.id = s.level
|
|
|
LEFT JOIN lab_safe_classtype st ON st.id = s.type_id
|
|
LEFT JOIN lab_safe_classtype st ON st.id = s.type_id
|
|
|
LEFT JOIN sys_user u ON u.user_id = s.`admin_id`
|
|
LEFT JOIN sys_user u ON u.user_id = s.`admin_id`
|
|
|
- LEFT JOIN lab_building lb ON s.floor_id = lb.id
|
|
|
|
|
|
|
+ LEFT JOIN lab_build_floor lb ON s.floor_id = lb.id
|
|
|
LEFT JOIN sys_dept d2 ON s.build_id = d2.`dept_id`
|
|
LEFT JOIN sys_dept d2 ON s.build_id = d2.`dept_id`
|
|
|
<if test="whiteUserId != null ">
|
|
<if test="whiteUserId != null ">
|
|
|
LEFT JOIN lab_white_join_sublist ws ON s.`id` = ws.`subject_id`
|
|
LEFT JOIN lab_white_join_sublist ws ON s.`id` = ws.`subject_id`
|