|
@@ -34,6 +34,7 @@
|
|
<result column="placefile_date" property="placefileDate"/>
|
|
<result column="placefile_date" property="placefileDate"/>
|
|
<result column="in_state" property="inState"/>
|
|
<result column="in_state" property="inState"/>
|
|
<result column="is_deleted" property="isDeleted"/>
|
|
<result column="is_deleted" property="isDeleted"/>
|
|
|
|
+ <result column="is_daytime" property="isDaytime"/>
|
|
<result column="gmt_create" property="gmtCreate"/>
|
|
<result column="gmt_create" property="gmtCreate"/>
|
|
<result column="gmt_modified" property="gmtModified"/>
|
|
<result column="gmt_modified" property="gmtModified"/>
|
|
<result column="creator" property="creator"/>
|
|
<result column="creator" property="creator"/>
|
|
@@ -71,6 +72,9 @@
|
|
ON t.behospital_code = h.behospital_code
|
|
ON t.behospital_code = h.behospital_code
|
|
AND t.hospital_id = h.hospital_id
|
|
AND t.hospital_id = h.hospital_id
|
|
where t.is_deleted = 'N'
|
|
where t.is_deleted = 'N'
|
|
|
|
+ <if test="isDaytime != null and isDaytime != ''">
|
|
|
|
+ AND t.is_daytime = #{isDaytime}
|
|
|
|
+ </if>
|
|
<if test="diagnose != null and diagnose != ''">
|
|
<if test="diagnose != null and diagnose != ''">
|
|
AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
</if>
|
|
</if>
|
|
@@ -1184,6 +1188,9 @@
|
|
ON t.behospital_code = h.behospital_code
|
|
ON t.behospital_code = h.behospital_code
|
|
AND t.hospital_id = h.hospital_id
|
|
AND t.hospital_id = h.hospital_id
|
|
where t.is_deleted = 'N'
|
|
where t.is_deleted = 'N'
|
|
|
|
+ <if test="isDaytime != null and isDaytime != ''">
|
|
|
|
+ and t.is_daytime = #{isDaytime}
|
|
|
|
+ </if>
|
|
<if test="diagnose != null and diagnose != ''">
|
|
<if test="diagnose != null and diagnose != ''">
|
|
AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
</if>
|
|
</if>
|
|
@@ -1316,6 +1323,9 @@
|
|
ON t.behospital_code = h.behospital_code
|
|
ON t.behospital_code = h.behospital_code
|
|
AND t.hospital_id = h.hospital_id
|
|
AND t.hospital_id = h.hospital_id
|
|
WHERE t.is_deleted = 'N'
|
|
WHERE t.is_deleted = 'N'
|
|
|
|
+ <if test="isDaytime != null and isDaytime != ''">
|
|
|
|
+ and t.is_daytime = #{isDaytime}
|
|
|
|
+ </if>
|
|
<if test="diagnose != null and diagnose != ''">
|
|
<if test="diagnose != null and diagnose != ''">
|
|
AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
</if>
|
|
</if>
|
|
@@ -1420,6 +1430,9 @@
|
|
and c1.id = #{userId}
|
|
and c1.id = #{userId}
|
|
)
|
|
)
|
|
)
|
|
)
|
|
|
|
+ <if test="isDaytime != null and isDaytime != ''">
|
|
|
|
+ and t.is_daytime = #{isDaytime}
|
|
|
|
+ </if>
|
|
<if test="diagnose != null and diagnose != ''">
|
|
<if test="diagnose != null and diagnose != ''">
|
|
AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
|
|
</if>
|
|
</if>
|
|
@@ -5569,7 +5582,8 @@
|
|
t1.chName,
|
|
t1.chName,
|
|
t1.mrName,
|
|
t1.mrName,
|
|
t1.chTime,
|
|
t1.chTime,
|
|
- t1.mrTime
|
|
|
|
|
|
+ t1.mrTime,
|
|
|
|
+ t1.is_daytime as isDaytime
|
|
FROM
|
|
FROM
|
|
(
|
|
(
|
|
SELECT DISTINCT
|
|
SELECT DISTINCT
|
|
@@ -5614,7 +5628,8 @@
|
|
a.diagnose,
|
|
a.diagnose,
|
|
a.placefile_date,
|
|
a.placefile_date,
|
|
a.ward_name,
|
|
a.ward_name,
|
|
- b.gmt_create
|
|
|
|
|
|
+ b.gmt_create,
|
|
|
|
+ a.is_daytime
|
|
FROM
|
|
FROM
|
|
med_behospital_info a,
|
|
med_behospital_info a,
|
|
med_qcresult_info b,
|
|
med_qcresult_info b,
|
|
@@ -5636,6 +5651,9 @@
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_entry_id = d.id
|
|
AND c.cases_entry_id = d.id
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
|
|
+ <if test="qcResultShortPageVO.isDaytime != null and qcResultShortPageVO.isDaytime != ''">
|
|
|
|
+ and a.is_daytime = #{qcResultShortPageVO.isDaytime}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
</if>
|
|
</if>
|
|
@@ -5846,7 +5864,8 @@
|
|
t1.chName,
|
|
t1.chName,
|
|
t1.mrName,
|
|
t1.mrName,
|
|
t1.chTime,
|
|
t1.chTime,
|
|
- t1.mrTime
|
|
|
|
|
|
+ t1.mrTime,
|
|
|
|
+ t1.is_daytime as isDaytime
|
|
FROM
|
|
FROM
|
|
(
|
|
(
|
|
SELECT DISTINCT
|
|
SELECT DISTINCT
|
|
@@ -5887,6 +5906,7 @@
|
|
a.diagnose,
|
|
a.diagnose,
|
|
a.placefile_date,
|
|
a.placefile_date,
|
|
a.ward_name,
|
|
a.ward_name,
|
|
|
|
+ a.is_daytime,
|
|
b.gmt_create
|
|
b.gmt_create
|
|
FROM
|
|
FROM
|
|
med_behospital_info a,
|
|
med_behospital_info a,
|
|
@@ -5905,6 +5925,9 @@
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_entry_id = d.id
|
|
AND c.cases_entry_id = d.id
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
|
|
+ <if test="qcResultShortPageVO.isDaytime != null and qcResultShortPageVO.isDaytime != ''">
|
|
|
|
+ and a.is_daytime = #{qcResultShortPageVO.isDaytime}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
</if>
|
|
</if>
|
|
@@ -6093,7 +6116,8 @@
|
|
t1.chName,
|
|
t1.chName,
|
|
t1.mrName,
|
|
t1.mrName,
|
|
t1.chTime,
|
|
t1.chTime,
|
|
- t1.mrTime
|
|
|
|
|
|
+ t1.mrTime,
|
|
|
|
+ t1.is_daytime as isDaytime
|
|
FROM
|
|
FROM
|
|
(
|
|
(
|
|
SELECT DISTINCT
|
|
SELECT DISTINCT
|
|
@@ -6133,6 +6157,7 @@
|
|
a.director_doctor_name,
|
|
a.director_doctor_name,
|
|
a.diagnose,
|
|
a.diagnose,
|
|
a.placefile_date,
|
|
a.placefile_date,
|
|
|
|
+ a.is_daytime,
|
|
a.ward_name,
|
|
a.ward_name,
|
|
b.gmt_create
|
|
b.gmt_create
|
|
FROM
|
|
FROM
|
|
@@ -6156,6 +6181,9 @@
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_entry_id = d.id
|
|
AND c.cases_entry_id = d.id
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
|
|
+ <if test="qcResultShortPageVO.isDaytime != null and qcResultShortPageVO.isDaytime != ''">
|
|
|
|
+ and a.is_daytime = #{qcResultShortPageVO.isDaytime}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.userId!=null">
|
|
<if test="qcResultShortPageVO.userId!=null">
|
|
AND e.user_id = #{qcResultShortPageVO.userId}
|
|
AND e.user_id = #{qcResultShortPageVO.userId}
|
|
</if>
|
|
</if>
|
|
@@ -7810,7 +7838,8 @@
|
|
t1.chTime,
|
|
t1.chTime,
|
|
t1.mrTime,
|
|
t1.mrTime,
|
|
CONCAT( ifnull(t2.age,'') ,ifnull(t2.age_unit,'') )as age,
|
|
CONCAT( ifnull(t2.age,'') ,ifnull(t2.age_unit,'') )as age,
|
|
- t1.file_code AS fileCode
|
|
|
|
|
|
+ t1.file_code AS fileCode,
|
|
|
|
+ t1.is_daytime as isDaytime
|
|
FROM
|
|
FROM
|
|
(
|
|
(
|
|
SELECT be.*,
|
|
SELECT be.*,
|
|
@@ -7855,12 +7884,16 @@
|
|
a.diagnose,
|
|
a.diagnose,
|
|
a.placefile_date,
|
|
a.placefile_date,
|
|
a.ward_name,
|
|
a.ward_name,
|
|
- a.file_code
|
|
|
|
|
|
+ a.file_code,
|
|
|
|
+ a.is_daytime
|
|
FROM
|
|
FROM
|
|
med_behospital_info a
|
|
med_behospital_info a
|
|
WHERE
|
|
WHERE
|
|
a.is_deleted = 'N'
|
|
a.is_deleted = 'N'
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
|
|
+ <if test="qcResultShortPageVO.isDaytime != null and qcResultShortPageVO.isDaytime != ''">
|
|
|
|
+ and a.is_daytime = #{qcResultShortPageVO.isDaytime}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
</if>
|
|
</if>
|
|
@@ -12414,7 +12447,8 @@
|
|
t1.chName,
|
|
t1.chName,
|
|
t1.mrName,
|
|
t1.mrName,
|
|
t1.chTime,
|
|
t1.chTime,
|
|
- t1.mrTime
|
|
|
|
|
|
+ t1.mrTime,
|
|
|
|
+ t1.is_daytime as isDaytime
|
|
FROM
|
|
FROM
|
|
(SELECT
|
|
(SELECT
|
|
be.*,
|
|
be.*,
|
|
@@ -12451,7 +12485,8 @@
|
|
a.director_doctor_name,
|
|
a.director_doctor_name,
|
|
a.diagnose,
|
|
a.diagnose,
|
|
a.placefile_date,
|
|
a.placefile_date,
|
|
- a.ward_name
|
|
|
|
|
|
+ a.ward_name,
|
|
|
|
+ a.is_daytime
|
|
FROM
|
|
FROM
|
|
med_behospital_info a,
|
|
med_behospital_info a,
|
|
sys_user_dept c,
|
|
sys_user_dept c,
|
|
@@ -12466,6 +12501,9 @@
|
|
AND a.behospital_code = e.behospital_code
|
|
AND a.behospital_code = e.behospital_code
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
AND e.cases_id = 243
|
|
AND e.cases_id = 243
|
|
|
|
+ <if test="isDaytime != null and isDaytime != ''">
|
|
|
|
+ and a.is_daytime = #{isDaytime}
|
|
|
|
+ </if>
|
|
<if test="userId!=null">
|
|
<if test="userId!=null">
|
|
AND c.user_id = #{userId}
|
|
AND c.user_id = #{userId}
|
|
</if>
|
|
</if>
|
|
@@ -12612,7 +12650,8 @@
|
|
t1.chName,
|
|
t1.chName,
|
|
t1.mrName,
|
|
t1.mrName,
|
|
t1.chTime,
|
|
t1.chTime,
|
|
- t1.mrTime
|
|
|
|
|
|
+ t1.mrTime,
|
|
|
|
+ t1.is_daytime as isDaytime
|
|
FROM
|
|
FROM
|
|
(SELECT
|
|
(SELECT
|
|
be.*,
|
|
be.*,
|
|
@@ -12649,7 +12688,8 @@
|
|
a.director_doctor_name,
|
|
a.director_doctor_name,
|
|
a.diagnose,
|
|
a.diagnose,
|
|
a.placefile_date,
|
|
a.placefile_date,
|
|
- a.ward_name
|
|
|
|
|
|
+ a.ward_name,
|
|
|
|
+ a.is_daytime
|
|
FROM
|
|
FROM
|
|
med_behospital_info a,
|
|
med_behospital_info a,
|
|
med_qcresult_cases e
|
|
med_qcresult_cases e
|
|
@@ -12660,6 +12700,9 @@
|
|
AND a.behospital_code = e.behospital_code
|
|
AND a.behospital_code = e.behospital_code
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
AND e.cases_id = 243
|
|
AND e.cases_id = 243
|
|
|
|
+ <if test="qcResultPageVO.isDaytime != null and qcResultPageVO.isDaytime != ''">
|
|
|
|
+ and a.is_daytime = #{qcResultPageVO.isDaytime}
|
|
|
|
+ </if>
|
|
<if test="qcResultPageVO.titleName != null ">
|
|
<if test="qcResultPageVO.titleName != null ">
|
|
<if test="qcResultPageVO.titleName == '不合格数'">
|
|
<if test="qcResultPageVO.titleName == '不合格数'">
|
|
AND e.`level`='不合格'
|
|
AND e.`level`='不合格'
|
|
@@ -13020,7 +13063,8 @@
|
|
t1.chName,
|
|
t1.chName,
|
|
t1.mrName,
|
|
t1.mrName,
|
|
t1.chTime,
|
|
t1.chTime,
|
|
- t1.mrTime
|
|
|
|
|
|
+ t1.mrTime,
|
|
|
|
+ t1.is_daytime as isDaytime
|
|
FROM
|
|
FROM
|
|
(SELECT
|
|
(SELECT
|
|
be.*,
|
|
be.*,
|
|
@@ -13057,7 +13101,8 @@
|
|
a.diagnose,
|
|
a.diagnose,
|
|
a.placefile_date,
|
|
a.placefile_date,
|
|
a.ward_name,
|
|
a.ward_name,
|
|
- b.gmt_create
|
|
|
|
|
|
+ b.gmt_create,
|
|
|
|
+ a.is_daytime
|
|
FROM
|
|
FROM
|
|
med_behospital_info a,
|
|
med_behospital_info a,
|
|
med_qcresult_info b,
|
|
med_qcresult_info b,
|
|
@@ -13075,6 +13120,9 @@
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_id = d.cases_id
|
|
AND c.cases_entry_id = d.id
|
|
AND c.cases_entry_id = d.id
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
|
|
+ <if test="qcResultShortPageVO.isDaytime != null and qcResultShortPageVO.isDaytime != ''">
|
|
|
|
+ and a.is_daytime = #{qcResultShortPageVO.isDaytime}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
</if>
|
|
</if>
|
|
@@ -13219,7 +13267,8 @@
|
|
t1.chName,
|
|
t1.chName,
|
|
t1.mrName,
|
|
t1.mrName,
|
|
t1.chTime,
|
|
t1.chTime,
|
|
- t1.mrTime
|
|
|
|
|
|
+ t1.mrTime,
|
|
|
|
+ t1.is_daytime as isDaytime
|
|
FROM
|
|
FROM
|
|
(SELECT
|
|
(SELECT
|
|
be.*,
|
|
be.*,
|
|
@@ -13256,7 +13305,8 @@
|
|
a.diagnose,
|
|
a.diagnose,
|
|
a.placefile_date,
|
|
a.placefile_date,
|
|
a.ward_name,
|
|
a.ward_name,
|
|
- b.gmt_create
|
|
|
|
|
|
+ b.gmt_create,
|
|
|
|
+ a.is_daytime
|
|
FROM
|
|
FROM
|
|
med_behospital_info a,
|
|
med_behospital_info a,
|
|
med_qcresult_info b,
|
|
med_qcresult_info b,
|
|
@@ -13278,6 +13328,9 @@
|
|
AND a.beh_dept_id = f.dept_id
|
|
AND a.beh_dept_id = f.dept_id
|
|
AND c.cases_entry_id = d.id
|
|
AND c.cases_entry_id = d.id
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
|
|
+ <if test="qcResultShortPageVO.isDaytime != null and qcResultShortPageVO.isDaytime != ''">
|
|
|
|
+ and a.is_daytime = #{qcResultShortPageVO.isDaytime}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.userId!=null">
|
|
<if test="qcResultShortPageVO.userId!=null">
|
|
AND f.user_id = #{qcResultShortPageVO.userId}
|
|
AND f.user_id = #{qcResultShortPageVO.userId}
|
|
</if>
|
|
</if>
|
|
@@ -16626,7 +16679,8 @@
|
|
t1.file_code AS fileCode,
|
|
t1.file_code AS fileCode,
|
|
t1.checkStatus,
|
|
t1.checkStatus,
|
|
t1.chName,
|
|
t1.chName,
|
|
- t1.chTime
|
|
|
|
|
|
+ t1.chTime,
|
|
|
|
+ t1.is_daytime as isDaytime
|
|
FROM
|
|
FROM
|
|
(
|
|
(
|
|
SELECT
|
|
SELECT
|
|
@@ -16661,7 +16715,8 @@
|
|
a.placefile_date,
|
|
a.placefile_date,
|
|
a.ward_name,
|
|
a.ward_name,
|
|
c.gmt_create,
|
|
c.gmt_create,
|
|
- d.score_res as scoreBn
|
|
|
|
|
|
+ d.score_res as scoreBn,
|
|
|
|
+ a.is_daytime
|
|
FROM
|
|
FROM
|
|
med_behospital_info a,
|
|
med_behospital_info a,
|
|
med_home_page b,
|
|
med_home_page b,
|
|
@@ -16690,6 +16745,9 @@
|
|
AND m3.have_home_page = 1
|
|
AND m3.have_home_page = 1
|
|
AND m4.cases_id = 243
|
|
AND m4.cases_id = 243
|
|
AND m1.qc_type_id != 0
|
|
AND m1.qc_type_id != 0
|
|
|
|
+ <if test="qcResultShortPageVO.isDaytime != null and qcResultShortPageVO.isDaytime != ''">
|
|
|
|
+ and m1.is_daytime = #{qcResultShortPageVO.isDaytime}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
and m1.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
and m1.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
</if>
|
|
</if>
|
|
@@ -16737,6 +16795,9 @@
|
|
AND d.cases_id = 243
|
|
AND d.cases_id = 243
|
|
AND d.score_res > e.score_res
|
|
AND d.score_res > e.score_res
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
|
|
+ <if test="qcResultShortPageVO.isDaytime != null and qcResultShortPageVO.isDaytime != ''">
|
|
|
|
+ and a.is_daytime = #{qcResultShortPageVO.isDaytime}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
</if>
|
|
</if>
|
|
@@ -16863,7 +16924,8 @@
|
|
t1.chName,
|
|
t1.chName,
|
|
t1.mrName,
|
|
t1.mrName,
|
|
t1.chTime,
|
|
t1.chTime,
|
|
- t1.mrTime
|
|
|
|
|
|
+ t1.mrTime,
|
|
|
|
+ t1.is_daytime as isDaytime
|
|
FROM
|
|
FROM
|
|
(
|
|
(
|
|
SELECT
|
|
SELECT
|
|
@@ -16901,6 +16963,7 @@
|
|
a.diagnose,
|
|
a.diagnose,
|
|
a.placefile_date,
|
|
a.placefile_date,
|
|
a.ward_name,
|
|
a.ward_name,
|
|
|
|
+ a.is_daytime,
|
|
c.gmt_create
|
|
c.gmt_create
|
|
FROM
|
|
FROM
|
|
med_behospital_info a,
|
|
med_behospital_info a,
|
|
@@ -16931,6 +16994,9 @@
|
|
AND m3.have_home_page = 1
|
|
AND m3.have_home_page = 1
|
|
AND m4.cases_id = 243
|
|
AND m4.cases_id = 243
|
|
AND m1.qc_type_id != 0
|
|
AND m1.qc_type_id != 0
|
|
|
|
+ <if test="qcResultShortPageVO.isDaytime != null and qcResultShortPageVO.isDaytime != ''">
|
|
|
|
+ and m1.is_daytime = #{qcResultShortPageVO.isDaytime}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
and m1.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
and m1.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
</if>
|
|
</if>
|
|
@@ -16981,6 +17047,9 @@
|
|
AND d.cases_id = 243
|
|
AND d.cases_id = 243
|
|
AND d.score_res > e.score_res
|
|
AND d.score_res > e.score_res
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
|
|
+ <if test="qcResultShortPageVO.isDaytime != null and qcResultShortPageVO.isDaytime != ''">
|
|
|
|
+ and a.is_daytime = #{qcResultShortPageVO.isDaytime}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.userId!=null">
|
|
<if test="qcResultShortPageVO.userId!=null">
|
|
AND f.user_id = #{qcResultShortPageVO.userId}
|
|
AND f.user_id = #{qcResultShortPageVO.userId}
|
|
</if>
|
|
</if>
|
|
@@ -17117,7 +17186,8 @@
|
|
t1.file_code AS fileCode,
|
|
t1.file_code AS fileCode,
|
|
t1.checkStatus,
|
|
t1.checkStatus,
|
|
t1.chName,
|
|
t1.chName,
|
|
- t1.chTime
|
|
|
|
|
|
+ t1.chTime,
|
|
|
|
+ t1.is_daytime as isDaytime
|
|
FROM
|
|
FROM
|
|
(
|
|
(
|
|
SELECT
|
|
SELECT
|
|
@@ -17152,7 +17222,8 @@
|
|
a.diagnose,
|
|
a.diagnose,
|
|
a.placefile_date,
|
|
a.placefile_date,
|
|
a.ward_name,
|
|
a.ward_name,
|
|
- b.gmt_create
|
|
|
|
|
|
+ b.gmt_create,
|
|
|
|
+ a.is_daytime
|
|
FROM
|
|
FROM
|
|
med_behospital_info a,
|
|
med_behospital_info a,
|
|
med_qcresult_info b
|
|
med_qcresult_info b
|
|
@@ -17162,6 +17233,9 @@
|
|
AND a.hospital_id = b.hospital_id
|
|
AND a.hospital_id = b.hospital_id
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
|
|
+ <if test="qcResultShortPageVO.isDaytime != null and qcResultShortPageVO.isDaytime != ''">
|
|
|
|
+ and a.is_daytime = #{qcResultShortPageVO.isDaytime}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
<if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
|
|
</if>
|
|
</if>
|
|
@@ -17290,7 +17364,8 @@
|
|
t1.chName,
|
|
t1.chName,
|
|
t1.mrName,
|
|
t1.mrName,
|
|
t1.chTime,
|
|
t1.chTime,
|
|
- t1.mrTime
|
|
|
|
|
|
+ t1.mrTime,
|
|
|
|
+ t1.is_daytime as isDaytime
|
|
FROM
|
|
FROM
|
|
(
|
|
(
|
|
SELECT
|
|
SELECT
|
|
@@ -17328,6 +17403,7 @@
|
|
a.diagnose,
|
|
a.diagnose,
|
|
a.placefile_date,
|
|
a.placefile_date,
|
|
a.ward_name,
|
|
a.ward_name,
|
|
|
|
+ a.is_daytime,
|
|
b.gmt_create
|
|
b.gmt_create
|
|
FROM
|
|
FROM
|
|
med_behospital_info a,
|
|
med_behospital_info a,
|
|
@@ -17342,6 +17418,9 @@
|
|
AND a.beh_dept_id = c.dept_id
|
|
AND a.beh_dept_id = c.dept_id
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.behospital_code = b.behospital_code
|
|
AND a.qc_type_id != 0
|
|
AND a.qc_type_id != 0
|
|
|
|
+ <if test="qcResultShortPageVO.isDaytime != null and qcResultShortPageVO.isDaytime != ''">
|
|
|
|
+ and a.is_daytime = #{qcResultShortPageVO.isDaytime}
|
|
|
|
+ </if>
|
|
<if test="qcResultShortPageVO.userId!=null">
|
|
<if test="qcResultShortPageVO.userId!=null">
|
|
AND c.user_id = #{qcResultShortPageVO.userId}
|
|
AND c.user_id = #{qcResultShortPageVO.userId}
|
|
</if>
|
|
</if>
|