Jelajahi Sumber

科室精准匹配

chengyao 4 tahun lalu
induk
melakukan
275a7b7ae8

+ 1 - 1
src/main/java/com/diagbot/dto/EntryStasByDeptDTO.java

@@ -19,7 +19,7 @@ public class EntryStasByDeptDTO {
     /**
      * 主治医生
      */
-    @Excel(name = "主医生", width = 30, orderNum = "1")
+    @Excel(name = "主医生", width = 30, orderNum = "1")
     private String doctorName;
     /**
      * 未在24小时内完成会诊数

+ 1 - 1
src/main/java/com/diagbot/facade/ConsoleByDeptFacade.java

@@ -937,7 +937,7 @@ public class ConsoleByDeptFacade {
                 casesEntryIds.add(Long.valueOf(keyValue[0]));
             }
         }
-        IPage<MedicalCheckDTO> medicalCheck = behospitalInfoFacade.getMedicalCheck(filterVO,casesEntryIds);
+        IPage<MedicalCheckDTO> medicalCheck = behospitalInfoFacade.getMedicalChecks(filterVO,casesEntryIds);
         return medicalCheck;
     }
 

+ 6 - 0
src/main/java/com/diagbot/service/BehospitalInfoService.java

@@ -392,6 +392,12 @@ public interface BehospitalInfoService extends IService<BehospitalInfo> {
      */
     IPage<MedicalCheckDTO>  getMedicalCheck(FilterMedicalCheckVO filterVO,@Param("casesEntryIds")List<Long> casesEntryIds);
 
+    /**
+     * 病历稽查表
+     * @return
+     */
+    IPage<MedicalCheckDTO>  getMedicalChecks(FilterMedicalCheckVO filterVO,@Param("casesEntryIds")List<Long> casesEntryIds);
+
     /**
      * 病历稽查表导出
      * @return

+ 101 - 0
src/main/java/com/diagbot/service/impl/BehospitalInfoServiceImpl.java

@@ -548,6 +548,107 @@ public class BehospitalInfoServiceImpl extends ServiceImpl<BehospitalInfoMapper,
      */
     @Override
     public IPage<MedicalCheckDTO> getMedicalCheck(@Param("filterVO") FilterMedicalCheckVO filterVO, @Param("casesEntryIds") List<Long> casesEntryIds) {
+        IPage<MedicalCheckDTO> medicalCheck = baseMapper.getMedicalCheck(filterVO);
+        List<MedicalCheckIdNameDTO> medicalEntryIds = baseMapper.getMedicalEntryIds(casesEntryIds);
+
+        List<MedicalCheckDTO> records = medicalCheck.getRecords();
+        for (MedicalCheckDTO record : records) {
+            for (MedicalCheckIdNameDTO medicalEntryId : medicalEntryIds) {
+                if ("2170".equals(medicalEntryId.getId())) {
+                    record.setEntry_2170_id(medicalEntryId.getId());
+                    record.setEntry_2170_name(medicalEntryId.getName());
+                }
+                if ("2217".equals(medicalEntryId.getId())) {
+                    record.setEntry_2217_id(medicalEntryId.getId());
+                    record.setEntry_2217_name(medicalEntryId.getName());
+                }
+                if ("2218".equals(medicalEntryId.getId())) {
+                    record.setEntry_2218_id(medicalEntryId.getId());
+                    record.setEntry_2218_name(medicalEntryId.getName());
+                }
+                if ("2220".equals(medicalEntryId.getId())) {
+                    record.setEntry_2220_id(medicalEntryId.getId());
+                    record.setEntry_2220_name(medicalEntryId.getName());
+                }
+                if ("2229".equals(medicalEntryId.getId())) {
+                    record.setEntry_2229_id(medicalEntryId.getId());
+                    record.setEntry_2229_name(medicalEntryId.getName());
+                }
+                if ("2287".equals(medicalEntryId.getId())) {
+                    record.setEntry_2287_id(medicalEntryId.getId());
+                    record.setEntry_2287_name(medicalEntryId.getName());
+                }
+                if ("2486".equals(medicalEntryId.getId())) {
+                    record.setEntry_2486_id(medicalEntryId.getId());
+                    record.setEntry_2486_name(medicalEntryId.getName());
+                }
+                if ("2495".equals(medicalEntryId.getId())) {
+                    record.setEntry_2495_id(medicalEntryId.getId());
+                    record.setEntry_2495_name(medicalEntryId.getName());
+                }
+                if ("2654".equals(medicalEntryId.getId())) {
+                    record.setEntry_2654_id(medicalEntryId.getId());
+                    record.setEntry_2654_name(medicalEntryId.getName());
+                }
+                if ("2655".equals(medicalEntryId.getId())) {
+                    record.setEntry_2655_id(medicalEntryId.getId());
+                    record.setEntry_2655_name(medicalEntryId.getName());
+                }
+                if ("2657".equals(medicalEntryId.getId())) {
+                    record.setEntry_2657_id(medicalEntryId.getId());
+                    record.setEntry_2657_name(medicalEntryId.getName());
+                }
+                if ("2658".equals(medicalEntryId.getId())) {
+                    record.setEntry_2658_id(medicalEntryId.getId());
+                    record.setEntry_2658_name(medicalEntryId.getName());
+                }
+                if ("2686".equals(medicalEntryId.getId())) {
+                    record.setEntry_2686_id(medicalEntryId.getId());
+                    record.setEntry_2686_name(medicalEntryId.getName());
+                }
+                if ("2852".equals(medicalEntryId.getId())) {
+                    record.setEntry_2852_id(medicalEntryId.getId());
+                    record.setEntry_2852_name(medicalEntryId.getName());
+                }
+                if ("2900".equals(medicalEntryId.getId())) {
+                    record.setEntry_2900_id(medicalEntryId.getId());
+                    record.setEntry_2900_name(medicalEntryId.getName());
+                }
+                if ("2930".equals(medicalEntryId.getId())) {
+                    record.setEntry_2930_id(medicalEntryId.getId());
+                    record.setEntry_2930_name(medicalEntryId.getName());
+                }
+                if ("3010".equals(medicalEntryId.getId())) {
+                    record.setEntry_3010_id(medicalEntryId.getId());
+                    record.setEntry_3010_name(medicalEntryId.getName());
+                }
+                if ("3025".equals(medicalEntryId.getId())) {
+                    record.setEntry_3025_id(medicalEntryId.getId());
+                    record.setEntry_3025_name(medicalEntryId.getName());
+                }
+                if ("3062".equals(medicalEntryId.getId())) {
+                    record.setEntry_3062_id(medicalEntryId.getId());
+                    record.setEntry_3062_name(medicalEntryId.getName());
+                }
+                if ("3063".equals(medicalEntryId.getId())) {
+                    record.setEntry_3063_id(medicalEntryId.getId());
+                    record.setEntry_3063_name(medicalEntryId.getName());
+                }
+            }
+        }
+
+        return medicalCheck;
+
+    }
+
+    /**
+     * 病历稽查表-科室
+     *
+     * @param filterVO
+     * @return
+     */
+    @Override
+    public IPage<MedicalCheckDTO> getMedicalChecks(@Param("filterVO") FilterMedicalCheckVO filterVO, @Param("casesEntryIds") List<Long> casesEntryIds) {
         IPage<MedicalCheckDTO> medicalCheck = baseMapper.getMedicalCheckByDept(filterVO);
         List<MedicalCheckIdNameDTO> medicalEntryIds = baseMapper.getMedicalEntryIds(casesEntryIds);
 

+ 5 - 0
src/main/java/com/diagbot/vo/FilterMedicalCheckVO.java

@@ -42,6 +42,11 @@ public class FilterMedicalCheckVO extends Page {
      */
     private String deptName;
 
+    /**
+     * 主管医生
+     */
+    private String name;
+
     /**
      * 是否归档(0:未归档,1:已归档)
      */

+ 72 - 39
src/main/resources/mapper/BehospitalInfoMapper.xml

@@ -2819,7 +2819,7 @@
             AND e.user_id = #{userId}
         </if>
         <if test="deptName != null and deptName != ''">
-            and a.beh_dept_name like CONCAT('%',#{deptName},'%')
+            and a.beh_dept_name = #{deptName}
         </if>
         GROUP BY
         a.doctor_id,
@@ -2882,7 +2882,7 @@
             AND f.user_id = #{userId}
         </if>
         <if test="deptName != null and deptName != ''">
-            and a.beh_dept_name like CONCAT('%',#{deptName},'%')
+            and a.beh_dept_name = #{deptName}
         </if>
         GROUP BY
         a.doctor_id,
@@ -2969,7 +2969,7 @@
             AND e.user_id = #{userId}
         </if>
         <if test="deptName != null and deptName != ''">
-            and a.beh_dept_name like CONCAT('%',#{deptName},'%')
+            and a.beh_dept_name = #{deptName}
         </if>
         GROUP BY
         a.doctor_id,
@@ -3032,7 +3032,7 @@
             AND f.user_id = #{userId}
         </if>
         <if test="deptName != null and deptName != ''">
-            and a.beh_dept_name like CONCAT('%',#{deptName},'%')
+            and a.beh_dept_name = #{deptName}
         </if>
         GROUP BY
         a.doctor_id,
@@ -3203,6 +3203,9 @@
         <if test="deptName!=null and deptName !=''">
             AND a.beh_dept_name = #{deptName}
         </if>
+        <if test="name != null and name != ''">
+            AND a.doctor_name  like CONCAT('%', #{name}, '%')
+        </if>
         GROUP BY
         a.doctor_id,
         a.doctor_name
@@ -3273,6 +3276,9 @@
         <if test="deptName!=null and deptName !=''">
             AND a.beh_dept_name = #{deptName}
         </if>
+        <if test="name != null and name != ''">
+            AND a.doctor_name  like CONCAT('%', #{name}, '%')
+        </if>
         GROUP BY
         a.doctor_id,
         a.doctor_name
@@ -3359,6 +3365,9 @@
         <if test="deptName!=null and deptName !=''">
             AND a.beh_dept_name = #{deptName}
         </if>
+        <if test="name != null and name != ''">
+            AND a.doctor_name  like CONCAT('%', #{name}, '%')
+        </if>
         GROUP BY
         a.doctor_id,
         a.doctor_name
@@ -4810,7 +4819,7 @@
             AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
         </if>
         <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
+            AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
         </if>
         <if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
             AND b.`level` = #{qcResultShortPageVO.level}
@@ -5602,8 +5611,11 @@
                 <![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
             </if>
         </if>
+        <if test="name != null and name != ''">
+            AND a.doctor_name  like CONCAT('%', #{name}, '%')
+        </if>
         <if test="deptName != null and deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
+            AND a.beh_dept_name = #{deptName}
         </if>
         ) c
         LEFT JOIN med_qcresult_detail d ON d.is_deleted = 'N'
@@ -5681,8 +5693,11 @@
                 <![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
             </if>
         </if>
+        <if test="name != null and name != ''">
+            AND a.doctor_name  like CONCAT('%', #{name}, '%')
+        </if>
         <if test="deptName != null and deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
+            AND a.beh_dept_name = #{deptName}
         </if>
             ) d
         LEFT JOIN med_qcresult_detail e ON e.is_deleted = 'N'
@@ -5756,8 +5771,11 @@
                 <![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
             </if>
         </if>
+        <if test="name != null and name != ''">
+            AND a.doctor_name  like CONCAT('%', #{name}, '%')
+        </if>
         <if test="deptName != null and deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
+            AND a.beh_dept_name = #{deptName}
         </if>
         ) c
         LEFT JOIN med_qcresult_detail d ON d.is_deleted = 'N'
@@ -5831,8 +5849,11 @@
                 <![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
             </if>
         </if>
+        <if test="name != null and name != ''">
+            AND a.doctor_name  like CONCAT('%', #{name}, '%')
+        </if>
         <if test="deptName != null and deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
+            AND a.beh_dept_name = #{deptName}
         </if>
         ) b
         LEFT JOIN med_qcresult_detail c ON c.is_deleted = 'N'
@@ -5906,8 +5927,11 @@
                 <![CDATA[ AND a.leave_hospital_date <= #{endDate}]]>
             </if>
         </if>
+        <if test="name != null and name != ''">
+            AND a.doctor_name  like CONCAT('%', #{name}, '%')
+        </if>
         <if test="deptName != null and deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
+            AND a.beh_dept_name = #{deptName}
         </if>
         ) b
         GROUP BY
@@ -6717,7 +6741,7 @@
             AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
         </if>
         <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
+            AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
         </if>
         <if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
             AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
@@ -7382,7 +7406,7 @@
             </if>
         </if>
         <if test="deptName != null and deptName != ''">
-            and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
+            and a.beh_dept_name = #{deptName}
         </if>
         <if test="doctorName != null and doctorName != ''">
             and a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
@@ -7443,7 +7467,7 @@
             </if>
         </if>
         <if test="deptName != null and deptName != ''">
-            and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
+            and a.beh_dept_name = #{deptName}
         </if>
         <if test="doctorName != null and doctorName != ''">
             and a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
@@ -7503,7 +7527,7 @@
             </if>
         </if>
         <if test="deptName != null and deptName != ''">
-            and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
+            and a.beh_dept_name = #{deptName}
         </if>
         <if test="doctorName != null and doctorName != ''">
             and a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
@@ -7574,7 +7598,7 @@
             </if>
         </if>
         <if test="deptName != null and deptName != ''">
-            and m1.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
+            and m1.beh_dept_name = #{deptName}
         </if>
         GROUP BY
         m1.behospital_code
@@ -7626,7 +7650,7 @@
             and a.doctor_name LIKE CONCAT( '%', #{doctorName}, '%' )
         </if>
         <if test="deptName != null and deptName != ''">
-            and a.beh_dept_name LIKE CONCAT( '%', #{deptName}, '%' )
+            and a.beh_dept_name = #{deptName}
         </if>
         GROUP BY
         a.doctor_id,
@@ -8355,7 +8379,7 @@
             AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
         </if>
         <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
+            AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
         </if>
         <if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
             AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
@@ -8597,7 +8621,7 @@
             AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
         </if>
         <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
+            AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
         </if>
         <if test="qcResultShortPageVO.behospitalCode != null and qcResultShortPageVO.behospitalCode != ''">
             AND a.behospital_code LIKE CONCAT( '%', #{qcResultShortPageVO.behospitalCode}, '%' )
@@ -8854,7 +8878,7 @@
             AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
         </if>
         <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
+            AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
         </if>
         <if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
             AND a.doctor_name = #{qcResultShortPageVO.doctorName}
@@ -9125,7 +9149,7 @@
             AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
         </if>
         <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
+            AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
         </if>
         <if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
             AND b.`level` = #{qcResultShortPageVO.level}
@@ -9978,6 +10002,9 @@
         <if test="filterVO.userId!=null">
             AND f.user_id = #{filterVO.userId}
         </if>
+        <if test="filterVO.name != null and filterVO.name != ''">
+            AND a.doctor_name  like CONCAT('%', #{filterVO.name}, '%')
+        </if>
         <if test="filterVO.isPlacefile != null and filterVO.isPlacefile != ''">
             and a.is_placefile = #{filterVO.isPlacefile}
         </if>
@@ -10001,7 +10028,7 @@
             </if>
         </if>
         <if test="filterVO.deptName != null and filterVO.deptName != ''">
-            AND a.beh_dept_name like CONCAT('%', #{filterVO.deptName}, '%')
+            AND a.beh_dept_name = #{filterVO.deptName}
         </if>
         GROUP BY
         a.beh_dept_id,
@@ -10068,6 +10095,9 @@
         <if test="filterVO.hospitalId != null and filterVO.hospitalId != ''">
             AND a.hospital_id = #{filterVO.hospitalId}
         </if>
+        <if test="filterVO.name != null and filterVO.name != ''">
+            AND a.doctor_name  like CONCAT('%', #{filterVO.name}, '%')
+        </if>
         <if test="filterVO.isPlacefile != null and filterVO.isPlacefile == 0">
             <if test="filterVO.startDate != null ">
                 <![CDATA[ AND a.behospital_date >= #{filterVO.startDate}]]>
@@ -10085,7 +10115,7 @@
             </if>
         </if>
         <if test="filterVO.deptName != null and filterVO.deptName != ''">
-            AND a.beh_dept_name like CONCAT('%', #{filterVO.deptName}, '%')
+            AND a.beh_dept_name = #{filterVO.deptName}
         </if>
         GROUP BY
         a.beh_dept_id,
@@ -10376,8 +10406,11 @@
                 <![CDATA[ AND a.leave_hospital_date <= #{filterVO.endDate}]]>
             </if>
         </if>
+        <if test="filterVO.name != null and filterVO.name != ''">
+            AND a.doctor_name  like CONCAT('%', #{filterVO.name}, '%')
+        </if>
         <if test="filterVO.deptName != null and filterVO.deptName != ''">
-            AND a.beh_dept_name like CONCAT('%', #{filterVO.deptName}, '%')
+            AND a.beh_dept_name = #{filterVO.deptName}
         </if>
         GROUP BY
         a.beh_dept_id,
@@ -10460,8 +10493,11 @@
                 <![CDATA[ AND a.leave_hospital_date <= #{filterVO.endDate}]]>
             </if>
         </if>
+        <if test="filterVO.name != null and filterVO.name != ''">
+            AND a.doctor_name  like CONCAT('%', #{filterVO.name}, '%')
+        </if>
         <if test="filterVO.deptName != null and filterVO.deptName != ''">
-            AND a.beh_dept_name like CONCAT('%', #{filterVO.deptName}, '%')
+            AND a.beh_dept_name = #{filterVO.deptName}
         </if>
         GROUP BY
         a.beh_dept_id,
@@ -10587,7 +10623,7 @@
             </if>
         </if>
         <if test="deptName != null and deptName != ''">
-            AND a.beh_dept_name like CONCAT('%', #{deptName}, '%')
+            AND a.beh_dept_name= #{deptName}qcCheckStatisticsByDept
         </if>
         <if test="casesEntryIds != null and casesEntryIds.size()>0">
             AND c.cases_entry_id IN
@@ -10712,7 +10748,7 @@
             and a.is_placefile = #{isPlacefile}
         </if>
         <if test="doctorName != null and doctorName != ''">
-            and a.doctor_name = #{doctorName}
+            AND a.doctor_name like CONCAT('%', #{doctorName}, '%')
         </if>
         <if test="hospitalId != null and hospitalId != ''">
             AND a.hospital_id = #{hospitalId}
@@ -10814,7 +10850,7 @@
             and a.beh_dept_name = #{deptName}
         </if>
         <if test="doctorName != null and doctorName != ''">
-            and a.doctor_name = #{doctorName}
+            AND a.doctor_name like CONCAT('%', #{doctorName}, '%')
         </if>
         <if test="deptClass != null and deptClass != ''">
             and a.beh_dept_id = #{deptClass}
@@ -11475,8 +11511,7 @@
             AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
         </if>
         <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
-
+            AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
         </if>
         <if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
             AND b.`level` = #{qcResultShortPageVO.level}
@@ -12175,7 +12210,7 @@
             </if>
         </if>
         <if test="qcResultShortPageVO.doctorName != null and qcResultShortPageVO.doctorName != ''">
-            and a.doctor_name = #{qcResultShortPageVO.doctorName}
+            AND a.doctor_name  like CONCAT('%', #{qcResultShortPageVO.doctorName}, '%')
         </if>
         <if test="qcResultShortPageVO.isPlacefile != null and qcResultShortPageVO.isPlacefile != ''">
             and a.is_placefile = #{qcResultShortPageVO.isPlacefile}
@@ -13144,7 +13179,7 @@
             AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
         </if>
         <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
+            AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
         </if>
         <if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
             AND b.`level` = #{qcResultShortPageVO.level}
@@ -13366,7 +13401,7 @@
             AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
         </if>
         <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
+            AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
         </if>
         <if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
             AND b.`level` = #{qcResultShortPageVO.level}
@@ -15013,7 +15048,7 @@
             AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
         </if>
         <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
+            AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
         </if>
         <if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
             AND b.`level` = #{qcResultShortPageVO.level}
@@ -15791,7 +15826,7 @@
             </if>
         </if>
         <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
-            AND m1.beh_dept_name like CONCAT('%', #{qcResultShortPageVO.deptName}, '%')
+            AND m1.beh_dept_name = #{qcResultShortPageVO.deptName}
         </if>
         GROUP BY
         m1.behospital_code
@@ -16050,7 +16085,7 @@
             </if>
         </if>
         <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
-            AND m1.beh_dept_name like CONCAT('%', #{qcResultShortPageVO.deptName}, '%')
+            AND m1.beh_dept_name = #{qcResultShortPageVO.deptName}
         </if>
         GROUP BY
         m1.behospital_code
@@ -16759,8 +16794,7 @@
             AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
         </if>
         <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
-
+            AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
         </if>
         <if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
             AND c.`level` = #{qcResultShortPageVO.level}
@@ -16955,8 +16989,7 @@
             AND a.diagnose LIKE CONCAT( '%', #{qcResultShortPageVO.diagnose}, '%' )
         </if>
         <if test="qcResultShortPageVO.deptName != null and qcResultShortPageVO.deptName != ''">
-            AND a.beh_dept_name LIKE CONCAT( '%', #{qcResultShortPageVO.deptName}, '%' )
-
+            AND a.beh_dept_name = #{qcResultShortPageVO.deptName}
         </if>
         <if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
             AND c.`level` = #{qcResultShortPageVO.level}

+ 12 - 0
src/main/resources/mapper/QcresultInfoMapper.xml

@@ -1384,6 +1384,9 @@
         <if test="filterPageByDeptVO.deptName != null and filterPageByDeptVO.deptName != ''">
             AND a.beh_dept_name = #{filterPageByDeptVO.deptName}
         </if>
+        <if test="filterPageByDeptVO.doctorName != null and filterPageByDeptVO.doctorName != ''">
+            AND a.doctor_name like CONCAT('%', #{filterPageByDeptVO.doctorName}, '%')
+        </if>
         <if test="filterPageByDeptVO.isReject != null">
             AND d.is_reject = #{filterPageByDeptVO.isReject}
         </if>
@@ -1456,6 +1459,9 @@
         <if test="filterPageByDeptVO.deptName != null and filterPageByDeptVO.deptName != ''">
             AND a.beh_dept_name = #{filterPageByDeptVO.deptName}
         </if>
+        <if test="filterPageByDeptVO.doctorName != null and filterPageByDeptVO.doctorName != ''">
+            AND a.doctor_name like CONCAT('%', #{filterPageByDeptVO.doctorName}, '%')
+        </if>
         GROUP BY
         a.beh_dept_id,
         a.beh_dept_name
@@ -1948,6 +1954,9 @@
         <if test="filterPageByDeptVO.deptName != null and filterPageByDeptVO.deptName != ''">
             AND a.beh_dept_name = #{filterPageByDeptVO.deptName}
         </if>
+        <if test="filterPageByDeptVO.doctorName != null and filterPageByDeptVO.doctorName != ''">
+            and a.doctor_name like CONCAT('%', #{filterPageByDeptVO.doctorName}, '%')
+        </if>
         GROUP BY
         d.cases_id,
         a.beh_dept_id,
@@ -2007,6 +2016,9 @@
         <if test="filterPageByDeptVO.deptName != null and filterPageByDeptVO.deptName != ''">
             AND a.beh_dept_name = #{filterPageByDeptVO.deptName}
         </if>
+        <if test="filterPageByDeptVO.doctorName != null and filterPageByDeptVO.doctorName != ''">
+            and a.doctor_name like CONCAT('%', #{filterPageByDeptVO.doctorName}, '%')
+        </if>
         GROUP BY
         a.beh_dept_id,
         a.beh_dept_name