소스 검색

Merge branch 'dev/20200618_1.3.6' into test

zhoutg 5 년 전
부모
커밋
8a80a92f10
1개의 변경된 파일2개의 추가작업 그리고 16개의 파일을 삭제
  1. 2 16
      src/main/resources/mapper/BehospitalInfoMapper.xml

+ 2 - 16
src/main/resources/mapper/BehospitalInfoMapper.xml

@@ -2597,21 +2597,17 @@
         med_behospital_info a,
         med_qcresult_info b,
         med_qcresult_detail c,
-        qc_cases d,
-        sys_user_dept e
+        qc_cases d
         WHERE
         a.is_deleted = 'N'
         AND b.is_deleted = 'N'
         AND c.is_deleted = 'N'
         AND d.is_deleted = 'N'
-        AND e.is_deleted = 'N'
         AND a.hospital_id = b.hospital_id
         AND a.hospital_id = c.hospital_id
-        AND a.hospital_id = e.hospital_id
         AND a.behospital_code = b.behospital_code
         AND a.behospital_code = c.behospital_code
         AND c.cases_id = d.id
-        AND a.beh_dept_id = e.dept_id
         AND a.is_placefile = '1'
         AND a.doctor_id in
             (SELECT doctor_id FROM `bas_doctor_info`
@@ -2627,9 +2623,6 @@
         <if test="hospitalId != null and hospitalId != ''">
             AND a.hospital_id = #{hospitalId}
         </if>
-        <if test="userId != null ">
-            AND e.user_id = #{userId}
-        </if>
         <if test="leaveHosDateStart != null ">
             <![CDATA[ and a.leave_hospital_date >= DATE(#{leaveHosDateStart})]]>
         </if>
@@ -2666,8 +2659,7 @@
         a.beh_dept_name AS behDeptName
         FROM
         med_behospital_info a,
-        med_qcresult_info b,
-        sys_user_dept c
+        med_qcresult_info b
         WHERE
         a.is_deleted = 'N'
         AND a.doctor_id in
@@ -2681,19 +2673,13 @@
             and c1.id = #{userId}
             ))
         AND b.is_deleted = 'N'
-        AND c.is_deleted = 'N'
         AND a.hospital_id = b.hospital_id
-        AND a.hospital_id = c.hospital_id
         AND a.behospital_code = b.behospital_code
-        AND a.beh_dept_id = c.dept_id
         AND a.is_placefile = '1'
         <![CDATA[AND a.qc_type_id <>0 ]]>
         <if test="hospitalId != null and hospitalId != ''">
             AND a.hospital_id = #{hospitalId}
         </if>
-        <if test="userId != null ">
-            AND c.user_id = #{userId}
-        </if>
         <if test="leaveHosDateStart != null ">
             <![CDATA[ and a.leave_hospital_date >= DATE(#{leaveHosDateStart})]]>
         </if>