Browse Source

Merge remote-tracking branch 'origin/dev/20200513end_1.2.0' into debug

zhaops 5 years ago
parent
commit
920a2017ae
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/main/resources/mapper/BehospitalInfoMapper.xml

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

@@ -579,7 +579,7 @@
     <!-- 病案首页手术病历数统计 -->
     <select id="homePageCountForOperation" parameterType="com.diagbot.vo.FilterVO" resultType="int">
         SELECT
-        COUNT(*)
+        COUNT(DISTINCT a.behospital_code)
         FROM
         med_behospital_info a,
         med_home_page b,
@@ -648,7 +648,7 @@
         SELECT
         a.beh_dept_id AS id,
         a.beh_dept_name AS NAME,
-        COUNT(*) AS num
+        COUNT(DISTINCT a.behospital_code) AS num
         FROM
         med_behospital_info a,
         med_home_page b,