Browse Source

厦门五院个性化需求 出院人数统计新增主刀医生、手术级别字段

hecc 3 years ago
parent
commit
4416072722

+ 4 - 0
src/main/java/com/diagbot/dto/QcResultShortDTO.java

@@ -59,6 +59,8 @@ public class QcResultShortDTO {
     private String behDoctorId;
     @Excel(name = "住院医生", width = 30, orderNum = "14")
     private String behDoctorName;
+    @Excel(name = "手术级别", width = 30, orderNum = "16")
+    private String operationlevel;
     /**
      * 主治医生id
      */
@@ -71,6 +73,8 @@ public class QcResultShortDTO {
     private String directorDoctorId;
     @Excel(name = "主任医生", width = 30, orderNum = "16")
     private String directorDoctorName;
+    @Excel(name = "主刀医生", width = 30, orderNum = "16")
+    private String operationDocterName;
     /**
      * 科室编码
      */

+ 10 - 0
src/main/java/com/diagbot/vo/QcResultShortPageVO.java

@@ -43,6 +43,16 @@ public class QcResultShortPageVO extends Page {
      */
     private String diagnose;
 
+    /**
+     * 主刀医生
+     */
+    private String operationDoctor;
+
+    /**
+     * 手术等级
+     */
+    private String operationLevel;
+
     /**
      * title名称
      */

+ 15 - 1
src/main/resources/mapper/BehospitalInfoMapper.xml

@@ -7804,7 +7804,9 @@
     <!-- 离院病人评分详情页-->
     <select id="leaveHosMRPage" resultType="com.diagbot.dto.QcResultShortDTO">
         SELECT
-        t.*
+        t.*,
+        t4.operation_doctor_id,
+        t4.operation_level
         FROM
         (SELECT DISTINCT
         t1.hospital_id AS hospitalId,
@@ -8012,7 +8014,13 @@
             AND t1.behospital_code = t2.behospital_code
         </if>
         )t
+        ,med_home_page t3
+        ,med_home_operation_info t4
         where 1=1
+        AND t.hospitalId = t3.hospital_id
+        AND t.hospitalId = t4.hospital_id
+        AND t.behospitalCode = t3.behospital_code
+        AND t3.home_page_id = t4.home_page_id
         <if test="qcResultShortPageVO.checkStatus != null">
             and t.checkStatus = #{qcResultShortPageVO.checkStatus}
         </if>
@@ -8040,6 +8048,12 @@
         <if test="qcResultShortPageVO.level != null and qcResultShortPageVO.level != ''">
             AND t.`level` = #{qcResultShortPageVO.level}
         </if>
+        <if test="qcResultShortPageVO.operationDoctor != null and qcResultShortPageVO.operationDoctor != ''">
+            AND t4.`operationDoctor` = #{qcResultShortPageVO.operationDoctor}
+        </if>
+        <if test="qcResultShortPageVO.operationLevel != null and qcResultShortPageVO.operationLevel != ''">
+            AND t4.`operationLevel` = #{qcResultShortPageVO.operationLevel}
+        </if>
     </select>
 
     <!-- 离院病人评分详情页-科室-->