|
@@ -57,8 +57,44 @@
|
|
|
and (suho.linkman like concat('%',#{queryProperties},'%')
|
|
|
or suho.phone like concat('%',#{queryProperties},'%'))
|
|
|
</if>
|
|
|
- <if test="reportStatus != null and reportStatus != ''">
|
|
|
- and msr.report_status=#{reportStatus}
|
|
|
+ <if test="reportStatus == 0">
|
|
|
+ and msr.report_status=0 and mss.temperature > 0
|
|
|
+ </if>
|
|
|
+ <if test="reportStatus == 1">
|
|
|
+ and msr.report_status=1
|
|
|
+ </if>
|
|
|
+ <if test="reportStatus == 2">
|
|
|
+ and (msr.report_status is null or mss.temperature is null or mss.temperature = 0)
|
|
|
+ </if>
|
|
|
+ <if test="reportStatus == 3">
|
|
|
+ and (msr.report_status is null or msr.report_status=0)
|
|
|
+ </if>
|
|
|
+ <if test="msStatus == '1'.toString()">
|
|
|
+ and msr.report_status=0
|
|
|
+ </if>
|
|
|
+ <if test="msStatus == '2'.toString()">
|
|
|
+ and msr.ms_status=1
|
|
|
+ </if>
|
|
|
+ <if test="msStatus == '3'.toString()">
|
|
|
+ and msr.ms_status=2
|
|
|
+ </if>
|
|
|
+ <if test="isContact == '0'.toString()">
|
|
|
+ and mss.is_contact = 0
|
|
|
+ </if>
|
|
|
+ <if test="isContact == '1'.toString()">
|
|
|
+ and mss.is_contact = 1
|
|
|
+ </if>
|
|
|
+ <if test="isSuspected == '0'.toString()">
|
|
|
+ and mss.is_suspected = 0
|
|
|
+ </if>
|
|
|
+ <if test="isSuspected == '1'.toString()">
|
|
|
+ and mss.is_suspected = 1
|
|
|
+ </if>
|
|
|
+ <if test="isTrip == '0'.toString()">
|
|
|
+ and tr.is_trip = 0
|
|
|
+ </if>
|
|
|
+ <if test="isTrip == '1'.toString()">
|
|
|
+ and tr.is_trip = 1
|
|
|
</if>
|
|
|
</where>
|
|
|
order by suu.unit_id asc,suho.linkman
|
|
@@ -91,8 +127,17 @@
|
|
|
and (suho.linkman like concat('%',#{queryProperties},'%')
|
|
|
or suho.phone like concat('%',#{queryProperties},'%'))
|
|
|
</if>
|
|
|
- <if test="reportStatus != null and reportStatus != ''">
|
|
|
- and msr.report_status=#{reportStatus}
|
|
|
+ <if test="reportStatus == 0">
|
|
|
+ and msr.report_status=0 and mss.temperature > 0
|
|
|
+ </if>
|
|
|
+ <if test="reportStatus == 1">
|
|
|
+ and msr.report_status=1
|
|
|
+ </if>
|
|
|
+ <if test="reportStatus == 2">
|
|
|
+ and (msr.report_status is null or mss.temperature is null or mss.temperature = 0)
|
|
|
+ </if>
|
|
|
+ <if test="reportStatus == 3">
|
|
|
+ and (msr.report_status is null or msr.report_status=0)
|
|
|
</if>
|
|
|
</where>
|
|
|
order by suu.unit_id asc,suho.linkman
|
|
@@ -100,7 +145,7 @@
|
|
|
|
|
|
<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,
|
|
|
- msr.sure_num as sureNum,msr.suspected_num as suspectedNum,msr.normal_num as normalNum,
|
|
|
+ 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,
|
|
|
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
|
|
@@ -137,6 +182,33 @@
|
|
|
<if test="reportStatus == 3">
|
|
|
and (msr.report_status is null or msr.report_status=0)
|
|
|
</if>
|
|
|
+ <if test="msStatus == '1'.toString()">
|
|
|
+ and msr.report_status=0
|
|
|
+ </if>
|
|
|
+ <if test="msStatus == '2'.toString()">
|
|
|
+ and msr.ms_status=1
|
|
|
+ </if>
|
|
|
+ <if test="msStatus == '3'.toString()">
|
|
|
+ and msr.ms_status=2
|
|
|
+ </if>
|
|
|
+ <if test="isContact == '0'.toString()">
|
|
|
+ and mss.is_contact = 0
|
|
|
+ </if>
|
|
|
+ <if test="isContact == '1'.toString()">
|
|
|
+ and mss.is_contact = 1
|
|
|
+ </if>
|
|
|
+ <if test="isSuspected == '0'.toString()">
|
|
|
+ and mss.is_suspected = 0
|
|
|
+ </if>
|
|
|
+ <if test="isSuspected == '1'.toString()">
|
|
|
+ and mss.is_suspected = 1
|
|
|
+ </if>
|
|
|
+ <if test="isTrip == '0'.toString()">
|
|
|
+ and tr.is_trip = 0
|
|
|
+ </if>
|
|
|
+ <if test="isTrip == '1'.toString()">
|
|
|
+ and tr.is_trip = 1
|
|
|
+ </if>
|
|
|
</where>
|
|
|
order by suu.unit_id asc,suho.linkman
|
|
|
</select>
|