|
@@ -33,7 +33,7 @@
|
|
<select id="exSelectLingyunUser" resultType="com.bofeng.entity.ExcelRiBaoLYBM4">
|
|
<select id="exSelectLingyunUser" resultType="com.bofeng.entity.ExcelRiBaoLYBM4">
|
|
select suu.ridgepole,suu.unit,suh.doorplate,suho.linkman,suho.phone,msr.safety_num as safetyNum, msr.report_status as reportStatus,
|
|
select suu.ridgepole,suu.unit,suh.doorplate,suho.linkman,suho.phone,msr.safety_num as safetyNum, msr.report_status as reportStatus,
|
|
msr.sure_num as sureNum,msr.suspected_num as suspectedNum,msr.normal_num as normalNum,msr.ms_status as msStatus,
|
|
msr.sure_num as sureNum,msr.suspected_num as suspectedNum,msr.normal_num as normalNum,msr.ms_status as msStatus,
|
|
- msr.single_num as singleNum,mss.user_name as userName,mss.grender, mss.age,mss.family_status as familyStatus,
|
|
|
|
|
|
+ msr.single_num as singleNum,mss.user_name as userName,mss.grender, mss.age,mss.family_status as familyStatus,de.department_name as departmentName,
|
|
mss.medical,mss.temperature,mss.cough,mss.muscle ,mss.dyspnea,mss.fatigue,mss.diarrhea,mss.single_room as singleRoom,mss.score_rezult,mss.is_contact,mss.is_suspected,
|
|
mss.medical,mss.temperature,mss.cough,mss.muscle ,mss.dyspnea,mss.fatigue,mss.diarrhea,mss.single_room as singleRoom,mss.score_rezult,mss.is_contact,mss.is_suspected,
|
|
tr.trip_id,tr.is_trip,tr.today_local,tr.today_local_other,tr.work_local,tr.work_local_other, tr.auto_local, tr.auto_addr,ur.user_id as userId
|
|
tr.trip_id,tr.is_trip,tr.today_local,tr.today_local_other,tr.work_local,tr.work_local_other, tr.auto_local, tr.auto_addr,ur.user_id as userId
|
|
from sys_uptown_house suh
|
|
from sys_uptown_house suh
|
|
@@ -49,6 +49,7 @@
|
|
left join ms_suspected mss on mss.report_id=msr.report_id
|
|
left join ms_suspected mss on mss.report_id=msr.report_id
|
|
left join ms_trip tr on mss.suspected_id=trip_id
|
|
left join ms_trip tr on mss.suspected_id=trip_id
|
|
INNER JOIN sys_user_role ur on ur.property_id = suho.house_id and ur.role_id = 1
|
|
INNER JOIN sys_user_role ur on ur.property_id = suho.house_id and ur.role_id = 1
|
|
|
|
+ left join sys_department de on de.department_id = suh.department_id
|
|
<where>
|
|
<where>
|
|
<if test="unitId!=null and uptownId!='' and unitId!= '0'.toString()">
|
|
<if test="unitId!=null and uptownId!='' and unitId!= '0'.toString()">
|
|
and suu.unit_id=#{unitId}
|
|
and suu.unit_id=#{unitId}
|
|
@@ -57,6 +58,9 @@
|
|
and (suho.linkman like concat('%',#{queryProperties},'%')
|
|
and (suho.linkman like concat('%',#{queryProperties},'%')
|
|
or suho.phone like concat('%',#{queryProperties},'%'))
|
|
or suho.phone like concat('%',#{queryProperties},'%'))
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="departmentId != null and departmentId != ''">
|
|
|
|
+ and suh.department_id = #{departmentId}
|
|
|
|
+ </if>
|
|
<if test="reportStatus == 0">
|
|
<if test="reportStatus == 0">
|
|
and msr.report_status=0 and mss.temperature > 0
|
|
and msr.report_status=0 and mss.temperature > 0
|
|
</if>
|
|
</if>
|
|
@@ -146,7 +150,7 @@
|
|
<select id="exSelectLingyunUserPage" resultType="com.bofeng.entity.ExcelRiBaoLYBM4">
|
|
<select id="exSelectLingyunUserPage" resultType="com.bofeng.entity.ExcelRiBaoLYBM4">
|
|
select suu.ridgepole,suu.unit,suh.doorplate,suho.linkman,suho.phone,msr.safety_num as safetyNum, msr.report_status as reportStatus,
|
|
select suu.ridgepole,suu.unit,suh.doorplate,suho.linkman,suho.phone,msr.safety_num as safetyNum, msr.report_status as reportStatus,
|
|
msr.sure_num as sureNum,msr.suspected_num as suspectedNum,msr.normal_num as normalNum,msr.ms_status as msStatus,
|
|
msr.sure_num as sureNum,msr.suspected_num as suspectedNum,msr.normal_num as normalNum,msr.ms_status as msStatus,
|
|
- msr.single_num as singleNum,mss.user_name as userName,mss.grender, mss.age,mss.family_status as familyStatus,
|
|
|
|
|
|
+ msr.single_num as singleNum,mss.user_name as userName,mss.grender, mss.age,mss.family_status as familyStatus,de.department_name as departmentName,
|
|
mss.medical,mss.temperature,mss.cough,mss.is_contact, mss.is_suspected,mss.muscle ,mss.dyspnea,mss.fatigue,mss.diarrhea,mss.single_room as singleRoom,mss.score_rezult,mss.temperature_score,mss.is_contact as isContact,mss.is_suspected as isSuspected,
|
|
mss.medical,mss.temperature,mss.cough,mss.is_contact, mss.is_suspected,mss.muscle ,mss.dyspnea,mss.fatigue,mss.diarrhea,mss.single_room as singleRoom,mss.score_rezult,mss.temperature_score,mss.is_contact as isContact,mss.is_suspected as isSuspected,
|
|
tr.trip_id,tr.is_trip,tr.today_local,tr.today_local_other,tr.work_local,tr.work_local_other, tr.auto_local, tr.auto_addr,ur.user_id as userId
|
|
tr.trip_id,tr.is_trip,tr.today_local,tr.today_local_other,tr.work_local,tr.work_local_other, tr.auto_local, tr.auto_addr,ur.user_id as userId
|
|
from sys_uptown_house suh
|
|
from sys_uptown_house suh
|
|
@@ -162,6 +166,7 @@
|
|
left join ms_suspected mss on mss.report_id=msr.report_id
|
|
left join ms_suspected mss on mss.report_id=msr.report_id
|
|
left join ms_trip tr on mss.suspected_id=trip_id
|
|
left join ms_trip tr on mss.suspected_id=trip_id
|
|
INNER JOIN sys_user_role ur on ur.property_id = suho.house_id and ur.role_id = 1
|
|
INNER JOIN sys_user_role ur on ur.property_id = suho.house_id and ur.role_id = 1
|
|
|
|
+ left join sys_department de on de.department_id = suh.department_id
|
|
<where>
|
|
<where>
|
|
<if test="unitId!=null and uptownId!='' and unitId!= '0'.toString()">
|
|
<if test="unitId!=null and uptownId!='' and unitId!= '0'.toString()">
|
|
and suu.unit_id=#{unitId}
|
|
and suu.unit_id=#{unitId}
|
|
@@ -170,6 +175,9 @@
|
|
and (suho.linkman like concat('%',#{queryProperties},'%')
|
|
and (suho.linkman like concat('%',#{queryProperties},'%')
|
|
or suho.phone like concat('%',#{queryProperties},'%'))
|
|
or suho.phone like concat('%',#{queryProperties},'%'))
|
|
</if>
|
|
</if>
|
|
|
|
+ <if test="departmentId != null and departmentId != ''">
|
|
|
|
+ and suh.department_id = #{departmentId}
|
|
|
|
+ </if>
|
|
<if test="reportStatus == 0">
|
|
<if test="reportStatus == 0">
|
|
and msr.report_status=0 and mss.temperature > 0
|
|
and msr.report_status=0 and mss.temperature > 0
|
|
</if>
|
|
</if>
|