Explorar o código

报表导出报错修复

yuchengwei hai 3 meses
pai
achega
7ea24bb8f5
Modificáronse 1 ficheiros con 28 adicións e 347 borrados
  1. 28 347
      src/main/resources/mapper/BehospitalInfoMapper.xml

+ 28 - 347
src/main/resources/mapper/BehospitalInfoMapper.xml

@@ -237,12 +237,6 @@
         left join med_home_page c
         on a.behospital_code = c.behospital_code and c.is_deleted = 'N'
         ) t
-        LEFT JOIN (SELECT * FROM med_check_info WHERE is_deleted = 'N' AND check_type = 0 ) g
-        ON t.behospital_code = g.behospital_code
-        AND t.hospital_id = g.hospital_id
-        LEFT JOIN (SELECT * FROM med_check_info WHERE is_deleted = 'N'AND check_type = 1 ) h
-        ON t.behospital_code = h.behospital_code
-        AND t.hospital_id = h.hospital_id
         where t.is_deleted = 'N'
         <if test="diagnose != null and diagnose != ''">
             AND t.diagnose LIKE CONCAT( '%', #{diagnose}, '%' )
@@ -1987,14 +1981,7 @@
     <!-- 质控评分导出到excel-->
     <select id="exportQcresult" resultMap="ExportExcelMap" parameterType="com.diagbot.vo.ExportQcresultVO">
         SELECT * FROM (
-        SELECT tp.*,CASE WHEN ISNULL(g.status) THEN 0 ELSE g.status END check_status,
-        CASE WHEN ISNULL(h.status) THEN 0 ELSE h.status END mr_status,
-        g.check_type AS ch_type,
-        h.check_type AS mr_type,
-        g.check_name AS ch_name,
-        h.check_name AS mr_name,
-        g.check_time AS ch_time,
-        h.check_time AS mr_time
+        SELECT tp.*
         FROM (
         SELECT
         t1.behDeptId,
@@ -2175,12 +2162,6 @@
         </if>
         t1.behospitalCode
         )tp
-        LEFT JOIN (SELECT * FROM med_check_info WHERE is_deleted = 'N' AND check_type in(0,2) ) g
-        ON tp.behospitalCode = g.behospital_code
-        AND tp.hospitalId = g.hospital_id
-        LEFT JOIN (SELECT * FROM med_check_info WHERE is_deleted = 'N'AND check_type = 1 ) h
-        ON tp.behospitalCode = h.behospital_code
-        AND tp.hospitalId = h.hospital_id
         ) tu
         WHERE tu.behospitalCode IS NOT NULL
         <if test="checkStatus != null ">
@@ -4485,16 +4466,6 @@
             AND tt3.`name` = '手术记录'
         </if>
         ) be
-        left join med_check_info mci
-        on mci.is_deleted = 'N'
-        and mci.check_type = 0
-        and be.hospital_id = mci.hospital_id
-        and be.behospital_code = mci.behospital_code
-        left join med_check_info hm_mci
-        on hm_mci.is_deleted = 'N'
-        and hm_mci.check_type = 1
-        and be.hospital_id = hm_mci.hospital_id
-        and be.behospital_code = hm_mci.behospital_code
         )t1
         <if test="qcResultShortPageVO.leaveHosType != null and qcResultShortPageVO.leaveHosType ==2">
             ,med_home_page t2
@@ -5048,13 +5019,7 @@
         t1.diagnose,
         t1.ward_name AS wardName,
         CONCAT( ifnull(t2.age,'') ,ifnull(t2.age_unit,'') )as age,
-        t1.file_code AS fileCode,
-        t1.checkStatus,
-        t1.mrStatus,
-        t1.chName,
-        t1.mrName,
-        t1.chTime,
-        t1.mrTime
+        t1.file_code AS fileCode
         FROM
         (SELECT
         be.*,
@@ -5062,13 +5027,7 @@
         b.LEVEL,
         b.grade_type,
         b.score_res,
-        b.gmt_create,
-        ifnull(mci.status,0) AS checkStatus,
-        ifnull(hm_mci.status,0) AS mrStatus,
-        mci.check_name as chName,
-        hm_mci.check_name as mrName,
-        mci.gmt_create as chTime,
-        hm_mci.gmt_create as mrTime
+        b.gmt_create
         FROM
         (
         SELECT DISTINCT
@@ -5168,16 +5127,6 @@
             AND a.NAME LIKE CONCAT( '%', #{patName}, '%' )
         </if>
         )be
-        left join med_check_info mci
-        on mci.is_deleted = 'N'
-        and mci.check_type in (0,2)
-        and be.hospital_id = mci.hospital_id
-        and be.behospital_code = mci.behospital_code
-        left join med_check_info hm_mci
-        on hm_mci.is_deleted = 'N'
-        and hm_mci.check_type = 1
-        and be.hospital_id = hm_mci.hospital_id
-        and be.behospital_code = hm_mci.behospital_code
         left join med_qcresult_info b
         on b.is_deleted = 'N'
         AND be.hospital_id = b.hospital_id
@@ -5342,26 +5291,14 @@
         t1.diagnose,
         t1.ward_name AS wardName,
         CONCAT( ifnull(t2.age,'') ,ifnull(t2.age_unit,'') )as age,
-        t1.file_code AS fileCode,
-        t1.checkStatus,
-        t1.mrStatus,
-        t1.chName,
-        t1.mrName,
-        t1.chTime,
-        t1.mrTime
+        t1.file_code AS fileCode
         FROM
         (SELECT
         be.*,
         b.LEVEL,
         b.grade_type,
         b.score_res,
-        b.gmt_create,
-        ifnull(mci.status,0) AS checkStatus,
-        ifnull(hm_mci.status,0) AS mrStatus,
-        mci.check_name as chName,
-        hm_mci.check_name as mrName,
-        mci.gmt_create as chTime,
-        hm_mci.gmt_create as mrTime
+        b.gmt_create
         FROM
         (
         SELECT DISTINCT
@@ -5449,16 +5386,6 @@
             OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultPageVO.doctorName}, '%' ))
         </if>
         )be
-        left join med_check_info mci
-        on mci.is_deleted = 'N'
-        and mci.check_type = 0
-        and be.hospital_id = mci.hospital_id
-        and be.behospital_code = mci.behospital_code
-        left join med_check_info hm_mci
-        on hm_mci.is_deleted = 'N'
-        and hm_mci.check_type = 1
-        and be.hospital_id = hm_mci.hospital_id
-        and be.behospital_code = hm_mci.behospital_code
         left join med_qcresult_info b
         on b.is_deleted = 'N'
         AND be.hospital_id = b.hospital_id
@@ -5611,23 +5538,11 @@
         t1.diagnose,
         t1.ward_name AS wardName,
         CONCAT( ifnull(t2.age,'') ,ifnull(t2.age_unit,'') )as age,
-        t1.file_code AS fileCode,
-        t1.checkStatus,
-        t1.mrStatus,
-        t1.chName,
-        t1.mrName,
-        t1.chTime,
-        t1.mrTime
+        t1.file_code AS fileCode
         FROM
         (SELECT
         be.*,
-        ifnull(mci.status,0) AS checkStatus,
-        ifnull(hm_mci.status,0) AS mrStatus,
-        mci.check_name as chName,
-        e.score_res as scoreBn,
-        hm_mci.check_name as mrName,
-        mci.gmt_create as chTime,
-        hm_mci.gmt_create as mrTime
+        e.score_res as scoreBn
         FROM
         (
         SELECT DISTINCT
@@ -5733,16 +5648,6 @@
             AND d.rule_type = #{qcResultShortPageVO.ruleType}
         </if>
         )be
-        left join med_check_info mci
-        on mci.is_deleted = 'N'
-        and mci.check_type = 0
-        and be.hospital_id = mci.hospital_id
-        and be.behospital_code = mci.behospital_code
-        left join med_check_info hm_mci
-        on hm_mci.is_deleted = 'N'
-        and hm_mci.check_type = 1
-        and be.hospital_id = hm_mci.hospital_id
-        and be.behospital_code = hm_mci.behospital_code
         LEFT JOIN med_qcresult_cases e
         on be.behospital_code = e.behospital_code
         and be.hospital_id = e.hospital_id
@@ -5798,12 +5703,6 @@
             f1.msg,
             f1.caseName,
         </if>
-        f1.checkStatus,
-        f1.mrStatus,
-        f1.chName,
-        f1.mrName,
-        f1.chTime,
-        f1.mrTime
         FROM
         (SELECT
         t.doctorName,
@@ -5819,13 +5718,7 @@
         </if>
         t.behDeptId,
         t.behDeptName,
-        t.hospitalId,
-        t.checkStatus,
-        t.mrStatus,
-        t.chName,
-        t.mrName,
-        t.chTime,
-        t.mrTime
+        t.hospitalId
         FROM
         (SELECT DISTINCT
         t1.hospital_id AS hospitalId,
@@ -5853,26 +5746,14 @@
         t1.diagnose,
         t1.ward_name AS wardName,
         t2.age,
-        t1.file_code AS fileCode,
-        t1.checkStatus,
-        t1.mrStatus,
-        t1.chName,
-        t1.mrName,
-        t1.chTime,
-        t1.mrTime
+        t1.file_code AS fileCode
         FROM
         (SELECT
         be.*,
         b.LEVEL,
         b.grade_type,
         b.score_res,
-        b.gmt_create,
-        ifnull(mci.status,0) AS checkStatus,
-        ifnull(hm_mci.status,0) AS mrStatus,
-        mci.check_name as chName,
-        hm_mci.check_name as mrName,
-        mci.gmt_create as chTime,
-        hm_mci.gmt_create as mrTime
+        b.gmt_create
         FROM
         (
         SELECT DISTINCT
@@ -5961,16 +5842,6 @@
             OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
         </if>
         )be
-        left join med_check_info mci
-        on mci.is_deleted = 'N'
-        and mci.check_type = 0
-        and be.hospital_id = mci.hospital_id
-        and be.behospital_code = mci.behospital_code
-        left join med_check_info hm_mci
-        on hm_mci.is_deleted = 'N'
-        and hm_mci.check_type = 1
-        and be.hospital_id = hm_mci.hospital_id
-        and be.behospital_code = hm_mci.behospital_code
         left join med_qcresult_info b
         on b.is_deleted = 'N'
         AND be.hospital_id = b.hospital_id
@@ -6070,26 +5941,14 @@
         t1.diagnose,
         t1.ward_name AS wardName,
         t2.age,
-        t1.file_code AS fileCode,
-        t1.checkStatus,
-        t1.mrStatus,
-        t1.chName,
-        t1.mrName,
-        t1.chTime,
-        t1.mrTime
+        t1.file_code AS fileCode
         FROM
         (SELECT
         be.*,
         b.grade_type,
         b.score_res,
         b.gmt_create,
-        b.LEVEL,
-        ifnull(mci.status,0) AS checkStatus,
-        ifnull(hm_mci.status,0) AS mrStatus,
-        mci.check_name as chName,
-        hm_mci.check_name as mrName,
-        mci.gmt_create as chTime,
-        hm_mci.gmt_create as mrTime
+        b.LEVEL
         FROM
         (
         SELECT DISTINCT
@@ -6193,16 +6052,6 @@
             AND d.rule_type = #{qcResultShortPageVO.ruleType}
         </if>
         )be
-        left join med_check_info mci
-        on mci.is_deleted = 'N'
-        and mci.check_type = 0
-        and be.hospital_id = mci.hospital_id
-        and be.behospital_code = mci.behospital_code
-        left join med_check_info hm_mci
-        on hm_mci.is_deleted = 'N'
-        and hm_mci.check_type = 1
-        and be.hospital_id = hm_mci.hospital_id
-        and be.behospital_code = hm_mci.behospital_code
         left join med_qcresult_info b
         on b.is_deleted = 'N'
         AND be.hospital_id = b.hospital_id
@@ -6267,13 +6116,7 @@
         f1.scoreBn,
         f2.avgScore,
         f1.msg,
-        f1.caseName,
-        f1.checkStatus,
-        f1.mrStatus,
-        f1.chName,
-        f1.mrName,
-        f1.chTime,
-        f1.mrTime
+        f1.caseName
         FROM
         (SELECT
         t.doctorName,
@@ -6287,13 +6130,7 @@
         qc.NAME AS caseName,
         t.behDeptId,
         t.behDeptName,
-        t.hospitalId,
-        t.checkStatus,
-        t.mrStatus,
-        t.chName,
-        t.mrName,
-        t.chTime,
-        t.mrTime
+        t.hospitalId
         FROM
         (SELECT DISTINCT
         t1.hospital_id AS hospitalId,
@@ -6321,23 +6158,11 @@
         t1.diagnose,
         t1.ward_name AS wardName,
         t2.age,
-        t1.file_code AS fileCode,
-        t1.checkStatus,
-        t1.mrStatus,
-        t1.chName,
-        t1.mrName,
-        t1.chTime,
-        t1.mrTime
+        t1.file_code AS fileCode
         FROM
         (SELECT
         be.*,
-        ifnull(mci.status,0) AS checkStatus,
-        ifnull(hm_mci.status,0) AS mrStatus,
-        mci.check_name as chName,
-        e.score_res as scoreBn,
-        hm_mci.check_name as mrName,
-        mci.gmt_create as chTime,
-        hm_mci.gmt_create as mrTime
+        e.score_res as scoreBn
         FROM
         (
         SELECT DISTINCT
@@ -6442,16 +6267,6 @@
             AND d.rule_type = #{qcResultShortPageVO.ruleType}
         </if>
         )be
-        left join med_check_info mci
-        on mci.is_deleted = 'N'
-        and mci.check_type = 0
-        and be.hospital_id = mci.hospital_id
-        and be.behospital_code = mci.behospital_code
-        left join med_check_info hm_mci
-        on hm_mci.is_deleted = 'N'
-        and hm_mci.check_type = 1
-        and be.hospital_id = hm_mci.hospital_id
-        and be.behospital_code = hm_mci.behospital_code
         LEFT JOIN med_qcresult_cases e
         on be.behospital_code = e.behospital_code
         and be.hospital_id = e.hospital_id
@@ -6535,22 +6350,10 @@
         t1.diagnose,
         t1.ward_name AS wardName,
         t2.age,
-        t1.file_code AS fileCode,
-        t1.checkStatus,
-        t1.mrStatus,
-        t1.chName,
-        t1.mrName,
-        t1.chTime,
-        t1.mrTime
+        t1.file_code AS fileCode
         FROM
         (SELECT
-        be.*,
-        ifnull(mci.status,0) AS checkStatus,
-        ifnull(hm_mci.status,0) AS mrStatus,
-        mci.check_name as chName,
-        hm_mci.check_name as mrName,
-        mci.gmt_create as chTime,
-        hm_mci.gmt_create as mrTime
+        be.*
         FROM
         (
         SELECT DISTINCT
@@ -6655,16 +6458,6 @@
             AND d.rule_type = #{qcResultShortPageVO.ruleType}
         </if>
         )be
-        left join med_check_info mci
-        on mci.is_deleted = 'N'
-        and mci.check_type = 0
-        and be.hospital_id = mci.hospital_id
-        and be.behospital_code = mci.behospital_code
-        left join med_check_info hm_mci
-        on hm_mci.is_deleted = 'N'
-        and hm_mci.check_type = 1
-        and be.hospital_id = hm_mci.hospital_id
-        and be.behospital_code = hm_mci.behospital_code
         ) t1
         LEFT JOIN med_home_page t2 ON t1.hospital_id = t2.hospital_id
         AND t1.behospital_code = t2.behospital_code
@@ -7517,9 +7310,6 @@
             f1.msg,
             f1.caseName,
         </if>
-        f1.checkStatus,
-        f1.chName,
-        f1.chTime
         FROM
         (SELECT
         t.doctorName AS behDoctorName,
@@ -7535,10 +7325,7 @@
         </if>
         t.behDeptId,
         t.behDeptName,
-        t.hospitalId,
-        t.checkStatus,
-        t.chName,
-        t.chTime
+        t.hospitalId
         FROM
         (
         SELECT DISTINCT
@@ -7567,17 +7354,11 @@
         t1.diagnose,
         t1.ward_name AS wardName,
         t2.age,
-        t1.file_code AS fileCode,
-        t1.checkStatus,
-        t1.chName,
-        t1.chTime
+        t1.file_code AS fileCode
         FROM
         (
         SELECT
-        be.*,
-        ifnull( mci.STATUS, 0 ) AS checkStatus,
-        mci.check_name AS chName,
-        mci.gmt_create AS chTime
+        be.*
         FROM
         (
         SELECT DISTINCT
@@ -7732,10 +7513,6 @@
             AND d.score_res = 20
         </if>
         ) be
-        LEFT JOIN med_check_info mci ON mci.is_deleted = 'N'
-        AND mci.check_type in(0,2)
-        AND be.hospital_id = mci.hospital_id
-        AND be.behospital_code = mci.behospital_code
         ) t1
         LEFT JOIN med_home_page t2 ON t1.hospital_id = t2.hospital_id
         AND t1.behospital_code = t2.behospital_code
@@ -7808,17 +7585,11 @@
         t1.diagnose,
         t1.ward_name AS wardName,
         t2.age,
-        t1.file_code AS fileCode,
-        t1.checkStatus,
-        t1.chName,
-        t1.chTime
+        t1.file_code AS fileCode
         FROM
         (
         SELECT
-        be.*,
-        ifnull( mci.STATUS, 0 ) AS checkStatus,
-        mci.check_name AS chName,
-        mci.gmt_create AS chTime
+        be.*
         FROM
         (
         SELECT DISTINCT
@@ -7972,10 +7743,6 @@
             AND d.score_res = 20
         </if>
         ) be
-        LEFT JOIN med_check_info mci ON mci.is_deleted = 'N'
-        AND mci.check_type in(0,2)
-        AND be.hospital_id = mci.hospital_id
-        AND be.behospital_code = mci.behospital_code
         ) t1
         LEFT JOIN med_home_page t2 ON t1.hospital_id = t2.hospital_id
         AND t1.behospital_code = t2.behospital_code
@@ -8036,9 +7803,6 @@
             f1.msg,
             f1.caseName,
         </if>
-        f1.checkStatus,
-        f1.chName,
-        f1.chTime
         FROM
         (SELECT
         t.doctorName,
@@ -8054,10 +7818,7 @@
         </if>
         t.behDeptId,
         t.behDeptName,
-        t.hospitalId,
-        t.checkStatus,
-        t.chName,
-        t.chTime
+        t.hospitalId
         FROM
         (
         SELECT DISTINCT
@@ -8086,18 +7847,12 @@
         t1.diagnose,
         t1.ward_name AS wardName,
         t2.age,
-        t1.file_code AS fileCode,
-        t1.checkStatus,
-        t1.chName,
-        t1.chTime
+        t1.file_code AS fileCode
         FROM
         (
         SELECT
         be.*,
-        ifnull( mci.STATUS, 0 ) AS checkStatus,
-        mci.check_name AS chName,
-        e.score_res as scoreBn,
-        mci.gmt_create AS chTime
+        e.score_res as scoreBn
         FROM
         (
         SELECT DISTINCT
@@ -8156,15 +7911,9 @@
                 <![CDATA[ AND a.leave_hospital_date <= #{qcResultShortPageVO.endDate}]]>
             </if>
         </if>
-        <if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
-            AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
-        </if>
         <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
             AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
         </if>
-        <if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
-            AND c.`level` = #{qcResultShortPageVO.level}
-        </if>
         <if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
             AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
         </if>
@@ -8182,10 +7931,6 @@
             OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
         </if>
         ) be
-        LEFT JOIN med_check_info mci ON mci.is_deleted = 'N'
-        AND mci.check_type in(0,2)
-        AND be.hospital_id = mci.hospital_id
-        AND be.behospital_code = mci.behospital_code
         LEFT JOIN med_qcresult_cases e
         on be.behospital_code = e.behospital_code
         and be.hospital_id = e.hospital_id
@@ -8207,30 +7952,6 @@
             AND qd.cases_id = qc.id
         </if>
         where 1=1
-        <if test="qcResultShortPageVO.checkStatus != null">
-            AND t.checkStatus = #{qcResultShortPageVO.checkStatus}
-        </if>
-        <if test="qcResultShortPageVO.mrStatus != null">
-            AND t.mrStatus = #{qcResultShortPageVO.mrStatus}
-        </if>
-        <if test="qcResultShortPageVO.chName != null and qcResultShortPageVO.chName!=''">
-            AND t.chName like concat('%', #{qcResultShortPageVO.chName}, '%')
-        </if>
-        <if test="qcResultShortPageVO.mrName != null and qcResultShortPageVO.mrName!=''">
-            AND t.mrName like concat('%', #{qcResultShortPageVO.mrName}, '%')
-        </if>
-        <if test="qcResultShortPageVO.chTimeStart != null ">
-            <![CDATA[ AND t.chTime >= #{qcResultShortPageVO.chTimeStart}]]>
-        </if>
-        <if test="qcResultShortPageVO.chTimeEnd != null ">
-            <![CDATA[ AND t.chTime <= #{qcResultShortPageVO.chTimeEnd}]]>
-        </if>
-        <if test="qcResultShortPageVO.mrTimeStart != null ">
-            <![CDATA[ AND t.mrTime >= #{qcResultShortPageVO.mrTimeStart}]]>
-        </if>
-        <if test="qcResultShortPageVO.mrTimeEnd != null ">
-            <![CDATA[ AND t.mrTime <= #{qcResultShortPageVO.mrTimeEnd}]]>
-        </if>
         )f1,
         (SELECT
         ROUND( AVG( qi.score_res ), 2 ) AS avgScore,
@@ -8263,17 +7984,11 @@
         t1.diagnose,
         t1.ward_name AS wardName,
         t2.age,
-        t1.file_code AS fileCode,
-        t1.checkStatus,
-        t1.chName,
-        t1.chTime
+        t1.file_code AS fileCode
         FROM
         (
         SELECT
-        be.*,
-        ifnull( mci.STATUS, 0 ) AS checkStatus,
-        mci.check_name AS chName,
-        mci.gmt_create AS chTime
+        be.*
         FROM
         (
         SELECT DISTINCT
@@ -8332,15 +8047,9 @@
                 <![CDATA[ AND a.leave_hospital_date <= #{qcResultShortPageVO.endDate}]]>
             </if>
         </if>
-        <if test="qcResultShortPageVO.diagnose != null and qcResultShortPageVO.diagnose != ''">
-            AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
-        </if>
         <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
             AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
         </if>
-        <if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
-            AND c.`level` = #{qcResultShortPageVO.level}
-        </if>
         <if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
             AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
         </if>
@@ -8358,10 +8067,6 @@
             OR a.director_doctor_name LIKE CONCAT( '%', #{qcResultShortPageVO.doctorName}, '%' ))
         </if>
         ) be
-        LEFT JOIN med_check_info mci ON mci.is_deleted = 'N'
-        AND mci.check_type in(0,2)
-        AND be.hospital_id = mci.hospital_id
-        AND be.behospital_code = mci.behospital_code
         ) t1
         LEFT JOIN med_home_page t2 ON t1.hospital_id = t2.hospital_id
         AND t1.behospital_code = t2.behospital_code
@@ -8371,30 +8076,6 @@
         AND t.hospitalId = qi.hospital_id
         AND t.behospitalCode = qi.behospital_code
         where 1=1
-        <if test="qcResultShortPageVO.checkStatus != null">
-            AND t.checkStatus = #{qcResultShortPageVO.checkStatus}
-        </if>
-        <if test="qcResultShortPageVO.mrStatus != null">
-            AND t.mrStatus = #{qcResultShortPageVO.mrStatus}
-        </if>
-        <if test="qcResultShortPageVO.chName != null and qcResultShortPageVO.chName!=''">
-            AND t.chName like concat('%', #{qcResultShortPageVO.chName}, '%')
-        </if>
-        <if test="qcResultShortPageVO.mrName != null and qcResultShortPageVO.mrName!=''">
-            AND t.mrName like concat('%', #{qcResultShortPageVO.mrName}, '%')
-        </if>
-        <if test="qcResultShortPageVO.chTimeStart != null ">
-            <![CDATA[ AND t.chTime >= #{qcResultShortPageVO.chTimeStart}]]>
-        </if>
-        <if test="qcResultShortPageVO.chTimeEnd != null ">
-            <![CDATA[ AND t.chTime <= #{qcResultShortPageVO.chTimeEnd}]]>
-        </if>
-        <if test="qcResultShortPageVO.mrTimeStart != null ">
-            <![CDATA[ AND t.mrTime >= #{qcResultShortPageVO.mrTimeStart}]]>
-        </if>
-        <if test="qcResultShortPageVO.mrTimeEnd != null ">
-            <![CDATA[ AND t.mrTime <= #{qcResultShortPageVO.mrTimeEnd}]]>
-        </if>
         GROUP BY
         t.behDeptId,
         t.behDeptName