소스 검색

查询效率优化

zhaops 4 년 전
부모
커밋
791101bf11
1개의 변경된 파일0개의 추가작업 그리고 4개의 파일을 삭제
  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'