Browse Source

查询效率优化

zhaops 4 years ago
parent
commit
791101bf11
1 changed files with 0 additions and 4 deletions
  1. 0 4
      cdssman-service/src/main/resources/mapper/HospitalInfoMapper.xml

+ 0 - 4
cdssman-service/src/main/resources/mapper/HospitalInfoMapper.xml

@@ -74,10 +74,6 @@
         ( SELECT hospital_id, type, count(*) AS num FROM tran_mapping_config WHERE is_deleted = 'N' GROUP BY hospital_id, type ) t1
         GROUP BY
         hospital_id
-        FROM
-        ( SELECT hospital_id, type, count(*) AS num FROM tran_mapping_config WHERE is_deleted = 'N' GROUP BY hospital_id, type ) t1
-        GROUP BY
-        hospital_id
         ) b ON a.id = b.hospital_id
         WHERE
         a.is_deleted = 'N'