Kaynağa Gözat

基础术语映射

zhaops 4 yıl önce
ebeveyn
işleme
a8da5a5590
34 değiştirilmiş dosya ile 424 ekleme ve 80 silme
  1. 0 40
      cdssman-service/src/main/java/com/diagbot/config/ResourceServerConfigurer.java
  2. 0 40
      cdssman-service/src/main/java/com/diagbot/config/security/UrlAccessDecisionManager.java
  3. 26 0
      cdssman-service/src/main/java/com/diagbot/dto/HosRelationNumDTO.java
  4. 12 0
      cdssman-service/src/main/java/com/diagbot/facade/DiseaseConfigFacade.java
  5. 12 0
      cdssman-service/src/main/java/com/diagbot/facade/DrugConfigFacade.java
  6. 12 0
      cdssman-service/src/main/java/com/diagbot/facade/LisConfigFacade.java
  7. 12 0
      cdssman-service/src/main/java/com/diagbot/facade/OperationConfigFacade.java
  8. 12 0
      cdssman-service/src/main/java/com/diagbot/facade/PacsConfigFacade.java
  9. 10 0
      cdssman-service/src/main/java/com/diagbot/mapper/DiseaseConfigMapper.java
  10. 10 0
      cdssman-service/src/main/java/com/diagbot/mapper/DrugConfigMapper.java
  11. 10 0
      cdssman-service/src/main/java/com/diagbot/mapper/LisConfigMapper.java
  12. 10 0
      cdssman-service/src/main/java/com/diagbot/mapper/OperationConfigMapper.java
  13. 10 0
      cdssman-service/src/main/java/com/diagbot/mapper/PacsConfigMapper.java
  14. 10 0
      cdssman-service/src/main/java/com/diagbot/service/DiseaseConfigService.java
  15. 10 0
      cdssman-service/src/main/java/com/diagbot/service/DrugConfigService.java
  16. 10 0
      cdssman-service/src/main/java/com/diagbot/service/LisConfigService.java
  17. 10 0
      cdssman-service/src/main/java/com/diagbot/service/OperationConfigService.java
  18. 10 0
      cdssman-service/src/main/java/com/diagbot/service/PacsConfigService.java
  19. 12 0
      cdssman-service/src/main/java/com/diagbot/service/impl/DiseaseConfigServiceImpl.java
  20. 12 0
      cdssman-service/src/main/java/com/diagbot/service/impl/DrugConfigServiceImpl.java
  21. 12 0
      cdssman-service/src/main/java/com/diagbot/service/impl/LisConfigServiceImpl.java
  22. 12 0
      cdssman-service/src/main/java/com/diagbot/service/impl/OperationConfigServiceImpl.java
  23. 12 0
      cdssman-service/src/main/java/com/diagbot/service/impl/PacsConfigServiceImpl.java
  24. 15 0
      cdssman-service/src/main/java/com/diagbot/vo/HosRelationNumPageVO.java
  25. 17 0
      cdssman-service/src/main/java/com/diagbot/web/DiseaseConfigController.java
  26. 17 0
      cdssman-service/src/main/java/com/diagbot/web/DrugConfigController.java
  27. 17 0
      cdssman-service/src/main/java/com/diagbot/web/LisConfigController.java
  28. 17 0
      cdssman-service/src/main/java/com/diagbot/web/OperationConfigController.java
  29. 17 0
      cdssman-service/src/main/java/com/diagbot/web/PacsConfigController.java
  30. 15 0
      cdssman-service/src/main/resources/mapper/DiseaseConfigMapper.xml
  31. 15 0
      cdssman-service/src/main/resources/mapper/DrugConfigMapper.xml
  32. 16 0
      cdssman-service/src/main/resources/mapper/LisConfigMapper.xml
  33. 16 0
      cdssman-service/src/main/resources/mapper/OperationConfigMapper.xml
  34. 16 0
      cdssman-service/src/main/resources/mapper/PacsConfigMapper.xml

+ 0 - 40
cdssman-service/src/main/java/com/diagbot/config/ResourceServerConfigurer.java

@@ -26,46 +26,6 @@ public class ResourceServerConfigurer extends ResourceServerConfigurerAdapter {
                 .csrf().disable()
                 .authorizeRequests()
                 .regexMatchers(".*swagger.*", ".*v2.*", ".*webjars.*", "/druid.*", "/actuator.*", "/hystrix.*").permitAll()
-                .antMatchers("/tran/lisConfig/isExistRecord").permitAll()
-                .antMatchers("/tran/lisConfig/saveOrUpdateRecord").permitAll()
-                .antMatchers("/tran/lisConfig/saveOrUpdateRecords").permitAll()
-                .antMatchers("/tran/lisConfig/deleteRecord").permitAll()
-                .antMatchers("/tran/lisConfig/deleteRecords").permitAll()
-                .antMatchers("/tran/lisConfig/getPage").permitAll()
-                .antMatchers("/tran/lisConfig/importExcel").permitAll()
-                .antMatchers("/tran/lisConfig/exportExcel").permitAll()
-                .antMatchers("/tran/pacsConfig/isExistRecord").permitAll()
-                .antMatchers("/tran/pacsConfig/saveOrUpdateRecord").permitAll()
-                .antMatchers("/tran/pacsConfig/saveOrUpdateRecords").permitAll()
-                .antMatchers("/tran/pacsConfig/deleteRecord").permitAll()
-                .antMatchers("/tran/pacsConfig/deleteRecords").permitAll()
-                .antMatchers("/tran/pacsConfig/getPage").permitAll()
-                .antMatchers("/tran/pacsConfig/importExcel").permitAll()
-                .antMatchers("/tran/pacsConfig/exportExcel").permitAll()
-                .antMatchers("/tran/diseaseConfig/isExistRecord").permitAll()
-                .antMatchers("/tran/diseaseConfig/saveOrUpdateRecord").permitAll()
-                .antMatchers("/tran/diseaseConfig/saveOrUpdateRecords").permitAll()
-                .antMatchers("/tran/diseaseConfig/deleteRecord").permitAll()
-                .antMatchers("/tran/diseaseConfig/deleteRecords").permitAll()
-                .antMatchers("/tran/diseaseConfig/getPage").permitAll()
-                .antMatchers("/tran/diseaseConfig/importExcel").permitAll()
-                .antMatchers("/tran/diseaseConfig/exportExcel").permitAll()
-                .antMatchers("/tran/drugConfig/isExistRecord").permitAll()
-                .antMatchers("/tran/drugConfig/saveOrUpdateRecord").permitAll()
-                .antMatchers("/tran/drugConfig/saveOrUpdateRecords").permitAll()
-                .antMatchers("/tran/drugConfig/deleteRecord").permitAll()
-                .antMatchers("/tran/drugConfig/deleteRecords").permitAll()
-                .antMatchers("/tran/drugConfig/getPage").permitAll()
-                .antMatchers("/tran/drugConfig/importExcel").permitAll()
-                .antMatchers("/tran/drugConfig/exportExcel").permitAll()
-                .antMatchers("/tran/operationConfig/isExistRecord").permitAll()
-                .antMatchers("/tran/operationConfig/saveOrUpdateRecord").permitAll()
-                .antMatchers("/tran/operationConfig/saveOrUpdateRecords").permitAll()
-                .antMatchers("/tran/operationConfig/deleteRecord").permitAll()
-                .antMatchers("/tran/operationConfig/deleteRecords").permitAll()
-                .antMatchers("/tran/operationConfig/getPage").permitAll()
-                .antMatchers("/tran/operationConfig/importExcel").permitAll()
-                .antMatchers("/tran/operationConfig/exportExcel").permitAll()
 //                .antMatchers("/**").authenticated();
                 .antMatchers("/**").permitAll();
     }

+ 0 - 40
cdssman-service/src/main/java/com/diagbot/config/security/UrlAccessDecisionManager.java

@@ -65,46 +65,6 @@ public class UrlAccessDecisionManager implements AccessDecisionManager {
                 || matchers("/druid/**", request)
                 || matchers("/actuator/**", request)
                 || matchers("/hystrix/**", request)
-                || matchers("/tran/lisConfig/isExistRecord", request)
-                || matchers("/tran/lisConfig/saveOrUpdateRecord", request)
-                || matchers("/tran/lisConfig/saveOrUpdateRecords", request)
-                || matchers("/tran/lisConfig/deleteRecord", request)
-                || matchers("/tran/lisConfig/deleteRecords", request)
-                || matchers("/tran/lisConfig/getPage", request)
-                || matchers("/tran/lisConfig/importExcel", request)
-                || matchers("/tran/lisConfig/exportExcel", request)
-                || matchers("/tran/pacsConfig/isExistRecord", request)
-                || matchers("/tran/pacsConfig/saveOrUpdateRecord", request)
-                || matchers("/tran/pacsConfig/saveOrUpdateRecords", request)
-                || matchers("/tran/pacsConfig/deleteRecord", request)
-                || matchers("/tran/pacsConfig/deleteRecords", request)
-                || matchers("/tran/pacsConfig/getPage", request)
-                || matchers("/tran/pacsConfig/importExcel", request)
-                || matchers("/tran/pacsConfig/exportExcel", request)
-                || matchers("/tran/diseaseConfig/isExistRecord", request)
-                || matchers("/tran/diseaseConfig/saveOrUpdateRecord", request)
-                || matchers("/tran/diseaseConfig/saveOrUpdateRecords", request)
-                || matchers("/tran/diseaseConfig/deleteRecord", request)
-                || matchers("/tran/diseaseConfig/deleteRecords", request)
-                || matchers("/tran/diseaseConfig/getPage", request)
-                || matchers("/tran/diseaseConfig/importExcel", request)
-                || matchers("/tran/diseaseConfig/exportExcel", request)
-                || matchers("/tran/drugConfig/isExistRecord", request)
-                || matchers("/tran/drugConfig/saveOrUpdateRecord", request)
-                || matchers("/tran/drugConfig/saveOrUpdateRecords", request)
-                || matchers("/tran/drugConfig/deleteRecord", request)
-                || matchers("/tran/drugConfig/deleteRecords", request)
-                || matchers("/tran/drugConfig/getPage", request)
-                || matchers("/tran/drugConfig/importExcel", request)
-                || matchers("/tran/drugConfig/exportExcel", request)
-                || matchers("/tran/operationConfig/isExistRecord", request)
-                || matchers("/tran/operationConfig/saveOrUpdateRecord", request)
-                || matchers("/tran/operationConfig/saveOrUpdateRecords", request)
-                || matchers("/tran/operationConfig/deleteRecord", request)
-                || matchers("/tran/operationConfig/deleteRecords", request)
-                || matchers("/tran/operationConfig/getPage", request)
-                || matchers("/tran/operationConfig/importExcel", request)
-                || matchers("/tran/operationConfig/exportExcel", request)
                 || matchers("/", request)) {
             return true;
         }

+ 26 - 0
cdssman-service/src/main/java/com/diagbot/dto/HosRelationNumDTO.java

@@ -0,0 +1,26 @@
+package com.diagbot.dto;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2020/8/5 14:53
+ */
+@Getter
+@Setter
+public class HosRelationNumDTO {
+    /**
+     * 医院id
+     */
+    private Long id;
+    /**
+     * 医院名称
+     */
+    private String name;
+    /**
+     * 映射关系条数
+     */
+    private Integer num;
+}

+ 12 - 0
cdssman-service/src/main/java/com/diagbot/facade/DiseaseConfigFacade.java

@@ -2,6 +2,7 @@ package com.diagbot.facade;
 
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.DiseaseConfig;
 import com.diagbot.enums.IsDeleteEnum;
 import com.diagbot.service.DiseaseConfigService;
@@ -13,6 +14,7 @@ import com.diagbot.util.StringUtil;
 import com.diagbot.util.UserUtils;
 import com.diagbot.vo.DiseaseConfigListVO;
 import com.diagbot.vo.DiseaseConfigPageVO;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.HospitalIdVO;
 import com.diagbot.vo.IdListVO;
 import com.diagbot.vo.IdVO;
@@ -253,4 +255,14 @@ public class DiseaseConfigFacade {
         String fileName = "疾病映射.xls";
         ExcelUtils.exportExcel(records, null, "sheet1", DiseaseConfig.class, fileName, response, 12.8f);
     }
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    public IPage<HosRelationNumDTO> getRelationNumPage(HosRelationNumPageVO hosRelationNumPageVO) {
+        return diseaseConfigService.getRelationNumPage(hosRelationNumPageVO);
+    }
 }

+ 12 - 0
cdssman-service/src/main/java/com/diagbot/facade/DrugConfigFacade.java

@@ -3,6 +3,7 @@ package com.diagbot.facade;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.DrugConfig;
 import com.diagbot.enums.IsDeleteEnum;
 import com.diagbot.service.DrugConfigService;
@@ -14,6 +15,7 @@ import com.diagbot.util.StringUtil;
 import com.diagbot.util.UserUtils;
 import com.diagbot.vo.DrugConfigListVO;
 import com.diagbot.vo.DrugConfigPageVO;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.HospitalIdVO;
 import com.diagbot.vo.IdListVO;
 import com.diagbot.vo.IdVO;
@@ -260,4 +262,14 @@ public class DrugConfigFacade {
         String fileName = "药品映射.xls";
         ExcelUtils.exportExcel(records, null, "sheet1", DrugConfig.class, fileName, response, 12.8f);
     }
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    public IPage<HosRelationNumDTO> getRelationNumPage(HosRelationNumPageVO hosRelationNumPageVO) {
+        return drugConfigService.getRelationNumPage(hosRelationNumPageVO);
+    }
 }

+ 12 - 0
cdssman-service/src/main/java/com/diagbot/facade/LisConfigFacade.java

@@ -3,6 +3,7 @@ package com.diagbot.facade;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.LisConfig;
 import com.diagbot.enums.IsDeleteEnum;
 import com.diagbot.service.LisConfigService;
@@ -12,6 +13,7 @@ import com.diagbot.util.ExcelUtils;
 import com.diagbot.util.ListUtil;
 import com.diagbot.util.StringUtil;
 import com.diagbot.util.UserUtils;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.HospitalIdVO;
 import com.diagbot.vo.IdListVO;
 import com.diagbot.vo.IdVO;
@@ -300,4 +302,14 @@ public class LisConfigFacade{
         String fileName = "检验映射.xls";
         ExcelUtils.exportExcel(records, null, "sheet1", LisConfig.class, fileName, response, 12.8f);
     }
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    public IPage<HosRelationNumDTO> getRelationNumPage(HosRelationNumPageVO hosRelationNumPageVO) {
+        return lisConfigService.getRelationNumPage(hosRelationNumPageVO);
+    }
 }

+ 12 - 0
cdssman-service/src/main/java/com/diagbot/facade/OperationConfigFacade.java

@@ -3,6 +3,7 @@ package com.diagbot.facade;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.OperationConfig;
 import com.diagbot.enums.IsDeleteEnum;
 import com.diagbot.service.OperationConfigService;
@@ -12,6 +13,7 @@ import com.diagbot.util.ExcelUtils;
 import com.diagbot.util.ListUtil;
 import com.diagbot.util.StringUtil;
 import com.diagbot.util.UserUtils;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.HospitalIdVO;
 import com.diagbot.vo.IdListVO;
 import com.diagbot.vo.IdVO;
@@ -262,4 +264,14 @@ public class OperationConfigFacade {
         String fileName = "手术映射.xls";
         ExcelUtils.exportExcel(records, null, "sheet1", OperationConfig.class, fileName, response, 12.8f);
     }
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    public IPage<HosRelationNumDTO> getRelationNumPage(HosRelationNumPageVO hosRelationNumPageVO) {
+        return operationConfigService.getRelationNumPage(hosRelationNumPageVO);
+    }
 }

+ 12 - 0
cdssman-service/src/main/java/com/diagbot/facade/PacsConfigFacade.java

@@ -3,6 +3,7 @@ package com.diagbot.facade;
 import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
 import com.baomidou.mybatisplus.core.conditions.update.UpdateWrapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.PacsConfig;
 import com.diagbot.enums.IsDeleteEnum;
 import com.diagbot.service.PacsConfigService;
@@ -12,6 +13,7 @@ import com.diagbot.util.ExcelUtils;
 import com.diagbot.util.ListUtil;
 import com.diagbot.util.StringUtil;
 import com.diagbot.util.UserUtils;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.HospitalIdVO;
 import com.diagbot.vo.IdListVO;
 import com.diagbot.vo.IdVO;
@@ -260,4 +262,14 @@ public class PacsConfigFacade {
         String fileName = "检查映射.xls";
         ExcelUtils.exportExcel(records, null, "sheet1", PacsConfig.class, fileName, response, 12.8f);
     }
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    public IPage<HosRelationNumDTO> getRelationNumPage(HosRelationNumPageVO hosRelationNumPageVO) {
+        return pacsConfigService.getRelationNumPage(hosRelationNumPageVO);
+    }
 }

+ 10 - 0
cdssman-service/src/main/java/com/diagbot/mapper/DiseaseConfigMapper.java

@@ -2,8 +2,10 @@ package com.diagbot.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.DiseaseConfig;
 import com.diagbot.vo.DiseaseConfigPageVO;
+import com.diagbot.vo.HosRelationNumPageVO;
 import org.apache.ibatis.annotations.Param;
 
 /**
@@ -23,4 +25,12 @@ public interface DiseaseConfigMapper extends BaseMapper<DiseaseConfig> {
      * @return
      */
     IPage<DiseaseConfig> getPage(@Param("diseaseConfigPageVO") DiseaseConfigPageVO diseaseConfigPageVO);
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    IPage<HosRelationNumDTO> getRelationNumPage(@Param("hosRelationNumPageVO") HosRelationNumPageVO hosRelationNumPageVO);
 }

+ 10 - 0
cdssman-service/src/main/java/com/diagbot/mapper/DrugConfigMapper.java

@@ -2,8 +2,10 @@ package com.diagbot.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.DrugConfig;
 import com.diagbot.vo.DrugConfigPageVO;
+import com.diagbot.vo.HosRelationNumPageVO;
 import org.apache.ibatis.annotations.Param;
 
 /**
@@ -22,4 +24,12 @@ public interface DrugConfigMapper extends BaseMapper<DrugConfig> {
      * @return
      */
     IPage<DrugConfig> getPage(@Param("drugConfigPageVO") DrugConfigPageVO drugConfigPageVO);
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    IPage<HosRelationNumDTO> getRelationNumPage(@Param("hosRelationNumPageVO") HosRelationNumPageVO hosRelationNumPageVO);
 }

+ 10 - 0
cdssman-service/src/main/java/com/diagbot/mapper/LisConfigMapper.java

@@ -2,7 +2,9 @@ package com.diagbot.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.LisConfig;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.LisConfigPageVO;
 import org.apache.ibatis.annotations.Param;
 
@@ -23,4 +25,12 @@ public interface LisConfigMapper extends BaseMapper<LisConfig> {
      * @return
      */
     IPage<LisConfig> getPage(@Param("lisConfigPageVO") LisConfigPageVO lisConfigPageVO);
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    IPage<HosRelationNumDTO> getRelationNumPage(@Param("hosRelationNumPageVO") HosRelationNumPageVO hosRelationNumPageVO);
 }

+ 10 - 0
cdssman-service/src/main/java/com/diagbot/mapper/OperationConfigMapper.java

@@ -2,7 +2,9 @@ package com.diagbot.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.OperationConfig;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.OperationConfigPageVO;
 import org.apache.ibatis.annotations.Param;
 
@@ -22,4 +24,12 @@ public interface OperationConfigMapper extends BaseMapper<OperationConfig> {
      * @return
      */
     IPage<OperationConfig> getPage(@Param("operationConfigPageVO") OperationConfigPageVO operationConfigPageVO);
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    IPage<HosRelationNumDTO> getRelationNumPage(@Param("hosRelationNumPageVO") HosRelationNumPageVO hosRelationNumPageVO);
 }

+ 10 - 0
cdssman-service/src/main/java/com/diagbot/mapper/PacsConfigMapper.java

@@ -2,7 +2,9 @@ package com.diagbot.mapper;
 
 import com.baomidou.mybatisplus.core.mapper.BaseMapper;
 import com.baomidou.mybatisplus.core.metadata.IPage;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.PacsConfig;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.PacsConfigPageVO;
 import org.apache.ibatis.annotations.Param;
 
@@ -22,4 +24,12 @@ public interface PacsConfigMapper extends BaseMapper<PacsConfig> {
      * @return
      */
     IPage<PacsConfig> getPage(@Param("pacsConfigPageVO") PacsConfigPageVO pacsConfigPageVO);
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    IPage<HosRelationNumDTO> getRelationNumPage(@Param("hosRelationNumPageVO") HosRelationNumPageVO hosRelationNumPageVO);
 }

+ 10 - 0
cdssman-service/src/main/java/com/diagbot/service/DiseaseConfigService.java

@@ -2,8 +2,10 @@ package com.diagbot.service;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.IService;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.DiseaseConfig;
 import com.diagbot.vo.DiseaseConfigPageVO;
+import com.diagbot.vo.HosRelationNumPageVO;
 import org.apache.ibatis.annotations.Param;
 
 /**
@@ -22,4 +24,12 @@ public interface DiseaseConfigService extends IService<DiseaseConfig> {
      * @return
      */
     IPage<DiseaseConfig> getPage(@Param("diseaseConfigPageVO") DiseaseConfigPageVO diseaseConfigPageVO);
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    IPage<HosRelationNumDTO> getRelationNumPage(@Param("hosRelationNumPageVO") HosRelationNumPageVO hosRelationNumPageVO);
 }

+ 10 - 0
cdssman-service/src/main/java/com/diagbot/service/DrugConfigService.java

@@ -2,8 +2,10 @@ package com.diagbot.service;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.IService;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.DrugConfig;
 import com.diagbot.vo.DrugConfigPageVO;
+import com.diagbot.vo.HosRelationNumPageVO;
 import org.apache.ibatis.annotations.Param;
 
 /**
@@ -22,4 +24,12 @@ public interface DrugConfigService extends IService<DrugConfig> {
      * @return
      */
     IPage<DrugConfig> getPage(@Param("drugConfigPageVO") DrugConfigPageVO drugConfigPageVO);
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    IPage<HosRelationNumDTO> getRelationNumPage(@Param("hosRelationNumPageVO") HosRelationNumPageVO hosRelationNumPageVO);
 }

+ 10 - 0
cdssman-service/src/main/java/com/diagbot/service/LisConfigService.java

@@ -2,7 +2,9 @@ package com.diagbot.service;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.IService;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.LisConfig;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.LisConfigPageVO;
 import org.apache.ibatis.annotations.Param;
 
@@ -23,4 +25,12 @@ public interface LisConfigService extends IService<LisConfig> {
      * @return
      */
     IPage<LisConfig> getPage(@Param("lisConfigPageVO") LisConfigPageVO lisConfigPageVO);
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    IPage<HosRelationNumDTO> getRelationNumPage(@Param("hosRelationNumPageVO") HosRelationNumPageVO hosRelationNumPageVO);
 }

+ 10 - 0
cdssman-service/src/main/java/com/diagbot/service/OperationConfigService.java

@@ -2,7 +2,9 @@ package com.diagbot.service;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.IService;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.OperationConfig;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.OperationConfigPageVO;
 import org.apache.ibatis.annotations.Param;
 
@@ -22,4 +24,12 @@ public interface OperationConfigService extends IService<OperationConfig> {
      * @return
      */
     IPage<OperationConfig> getPage(@Param("operationConfigPageVO") OperationConfigPageVO operationConfigPageVO);
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    IPage<HosRelationNumDTO> getRelationNumPage(@Param("hosRelationNumPageVO") HosRelationNumPageVO hosRelationNumPageVO);
 }

+ 10 - 0
cdssman-service/src/main/java/com/diagbot/service/PacsConfigService.java

@@ -2,7 +2,9 @@ package com.diagbot.service;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.IService;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.PacsConfig;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.PacsConfigPageVO;
 import org.apache.ibatis.annotations.Param;
 
@@ -22,4 +24,12 @@ public interface PacsConfigService extends IService<PacsConfig> {
      * @return
      */
     IPage<PacsConfig> getPage(@Param("pacsConfigPageVO") PacsConfigPageVO pacsConfigPageVO);
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    IPage<HosRelationNumDTO> getRelationNumPage(@Param("hosRelationNumPageVO") HosRelationNumPageVO hosRelationNumPageVO);
 }

+ 12 - 0
cdssman-service/src/main/java/com/diagbot/service/impl/DiseaseConfigServiceImpl.java

@@ -2,10 +2,12 @@ package com.diagbot.service.impl;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.DiseaseConfig;
 import com.diagbot.mapper.DiseaseConfigMapper;
 import com.diagbot.service.DiseaseConfigService;
 import com.diagbot.vo.DiseaseConfigPageVO;
+import com.diagbot.vo.HosRelationNumPageVO;
 import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Service;
 
@@ -28,4 +30,14 @@ public class DiseaseConfigServiceImpl extends ServiceImpl<DiseaseConfigMapper, D
     public IPage<DiseaseConfig> getPage(@Param("diseaseConfigPageVO") DiseaseConfigPageVO diseaseConfigPageVO){
         return baseMapper.getPage(diseaseConfigPageVO);
     }
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    public IPage<HosRelationNumDTO> getRelationNumPage(@Param("hosRelationNumPageVO") HosRelationNumPageVO hosRelationNumPageVO) {
+        return baseMapper.getRelationNumPage(hosRelationNumPageVO);
+    }
 }

+ 12 - 0
cdssman-service/src/main/java/com/diagbot/service/impl/DrugConfigServiceImpl.java

@@ -2,10 +2,12 @@ package com.diagbot.service.impl;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.DrugConfig;
 import com.diagbot.mapper.DrugConfigMapper;
 import com.diagbot.service.DrugConfigService;
 import com.diagbot.vo.DrugConfigPageVO;
+import com.diagbot.vo.HosRelationNumPageVO;
 import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Service;
 
@@ -28,4 +30,14 @@ public class DrugConfigServiceImpl extends ServiceImpl<DrugConfigMapper, DrugCon
     public IPage<DrugConfig> getPage(@Param("drugConfigPageVO") DrugConfigPageVO drugConfigPageVO){
         return baseMapper.getPage(drugConfigPageVO);
     }
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    public IPage<HosRelationNumDTO> getRelationNumPage(@Param("hosRelationNumPageVO") HosRelationNumPageVO hosRelationNumPageVO) {
+        return baseMapper.getRelationNumPage(hosRelationNumPageVO);
+    }
 }

+ 12 - 0
cdssman-service/src/main/java/com/diagbot/service/impl/LisConfigServiceImpl.java

@@ -2,9 +2,11 @@ package com.diagbot.service.impl;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.LisConfig;
 import com.diagbot.mapper.LisConfigMapper;
 import com.diagbot.service.LisConfigService;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.LisConfigPageVO;
 import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Service;
@@ -28,4 +30,14 @@ public class LisConfigServiceImpl extends ServiceImpl<LisConfigMapper, LisConfig
     public IPage<LisConfig> getPage(@Param("lisConfigPageVO") LisConfigPageVO lisConfigPageVO) {
         return baseMapper.getPage(lisConfigPageVO);
     }
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    public IPage<HosRelationNumDTO> getRelationNumPage(@Param("hosRelationNumPageVO") HosRelationNumPageVO hosRelationNumPageVO) {
+        return baseMapper.getRelationNumPage(hosRelationNumPageVO);
+    }
 }

+ 12 - 0
cdssman-service/src/main/java/com/diagbot/service/impl/OperationConfigServiceImpl.java

@@ -2,9 +2,11 @@ package com.diagbot.service.impl;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.OperationConfig;
 import com.diagbot.mapper.OperationConfigMapper;
 import com.diagbot.service.OperationConfigService;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.OperationConfigPageVO;
 import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Service;
@@ -28,4 +30,14 @@ public class OperationConfigServiceImpl extends ServiceImpl<OperationConfigMappe
     public IPage<OperationConfig> getPage(@Param("operationConfigPageVO") OperationConfigPageVO operationConfigPageVO){
         return baseMapper.getPage(operationConfigPageVO);
     }
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    public IPage<HosRelationNumDTO> getRelationNumPage(@Param("hosRelationNumPageVO") HosRelationNumPageVO hosRelationNumPageVO) {
+        return baseMapper.getRelationNumPage(hosRelationNumPageVO);
+    }
 }

+ 12 - 0
cdssman-service/src/main/java/com/diagbot/service/impl/PacsConfigServiceImpl.java

@@ -2,9 +2,11 @@ package com.diagbot.service.impl;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.entity.PacsConfig;
 import com.diagbot.mapper.PacsConfigMapper;
 import com.diagbot.service.PacsConfigService;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.PacsConfigPageVO;
 import org.apache.ibatis.annotations.Param;
 import org.springframework.stereotype.Service;
@@ -28,4 +30,14 @@ public class PacsConfigServiceImpl extends ServiceImpl<PacsConfigMapper, PacsCon
     public IPage<PacsConfig> getPage(@Param("pacsConfigPageVO") PacsConfigPageVO pacsConfigPageVO) {
         return baseMapper.getPage(pacsConfigPageVO);
     }
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    public IPage<HosRelationNumDTO> getRelationNumPage(@Param("hosRelationNumPageVO") HosRelationNumPageVO hosRelationNumPageVO) {
+        return baseMapper.getRelationNumPage(hosRelationNumPageVO);
+    }
 }

+ 15 - 0
cdssman-service/src/main/java/com/diagbot/vo/HosRelationNumPageVO.java

@@ -0,0 +1,15 @@
+package com.diagbot.vo;
+
+import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @Description:
+ * @Author:zhaops
+ * @time: 2020/8/5 14:58
+ */
+@Getter
+@Setter
+public class HosRelationNumPageVO extends Page {
+}

+ 17 - 0
cdssman-service/src/main/java/com/diagbot/web/DiseaseConfigController.java

@@ -3,11 +3,13 @@ package com.diagbot.web;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.diagbot.annotation.SysLogger;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.entity.DiseaseConfig;
 import com.diagbot.facade.DiseaseConfigFacade;
 import com.diagbot.vo.DiseaseConfigListVO;
 import com.diagbot.vo.DiseaseConfigPageVO;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.HospitalIdVO;
 import com.diagbot.vo.IdListVO;
 import com.diagbot.vo.IdVO;
@@ -151,4 +153,19 @@ public class DiseaseConfigController {
     public void exportExcel(HttpServletResponse response, @RequestBody @Valid HospitalIdVO hospitalIdVO) {
         diseaseConfigFacade.exportExcel(response, hospitalIdVO);
     }
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    @ApiOperation(value = "各医院映射关系数列表[by:zhaops]",
+            notes = "")
+    @PostMapping("/getRelationNumPage")
+    @SysLogger("getRelationNumPage")
+    public RespDTO<IPage<HosRelationNumDTO>> getRelationNumPage(@RequestBody @Valid HosRelationNumPageVO hosRelationNumPageVO) {
+        IPage<HosRelationNumDTO> data = diseaseConfigFacade.getRelationNumPage(hosRelationNumPageVO);
+        return RespDTO.onSuc(data);
+    }
 }

+ 17 - 0
cdssman-service/src/main/java/com/diagbot/web/DrugConfigController.java

@@ -3,11 +3,13 @@ package com.diagbot.web;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.diagbot.annotation.SysLogger;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.entity.DrugConfig;
 import com.diagbot.facade.DrugConfigFacade;
 import com.diagbot.vo.DrugConfigListVO;
 import com.diagbot.vo.DrugConfigPageVO;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.HospitalIdVO;
 import com.diagbot.vo.IdListVO;
 import com.diagbot.vo.IdVO;
@@ -151,4 +153,19 @@ public class DrugConfigController {
     public void exportExcel(HttpServletResponse response, @RequestBody @Valid HospitalIdVO hospitalIdVO) {
         drugConfigFacade.exportExcel(response, hospitalIdVO);
     }
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    @ApiOperation(value = "各医院映射关系数列表[by:zhaops]",
+            notes = "")
+    @PostMapping("/getRelationNumPage")
+    @SysLogger("getRelationNumPage")
+    public RespDTO<IPage<HosRelationNumDTO>> getRelationNumPage(@RequestBody @Valid HosRelationNumPageVO hosRelationNumPageVO) {
+        IPage<HosRelationNumDTO> data = drugConfigFacade.getRelationNumPage(hosRelationNumPageVO);
+        return RespDTO.onSuc(data);
+    }
 }

+ 17 - 0
cdssman-service/src/main/java/com/diagbot/web/LisConfigController.java

@@ -3,9 +3,11 @@ package com.diagbot.web;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.diagbot.annotation.SysLogger;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.entity.LisConfig;
 import com.diagbot.facade.LisConfigFacade;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.HospitalIdVO;
 import com.diagbot.vo.IdListVO;
 import com.diagbot.vo.IdVO;
@@ -149,4 +151,19 @@ public class LisConfigController {
     public void exportExcel(HttpServletResponse response, @RequestBody @Valid HospitalIdVO hospitalIdVO) {
         lisConfigFacade.exportExcel(response, hospitalIdVO);
     }
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    @ApiOperation(value = "各医院映射关系数列表[by:zhaops]",
+            notes = "")
+    @PostMapping("/getRelationNumPage")
+    @SysLogger("getRelationNumPage")
+    public RespDTO<IPage<HosRelationNumDTO>> getRelationNumPage(@RequestBody @Valid HosRelationNumPageVO hosRelationNumPageVO) {
+        IPage<HosRelationNumDTO> data = lisConfigFacade.getRelationNumPage(hosRelationNumPageVO);
+        return RespDTO.onSuc(data);
+    }
 }

+ 17 - 0
cdssman-service/src/main/java/com/diagbot/web/OperationConfigController.java

@@ -3,9 +3,11 @@ package com.diagbot.web;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.diagbot.annotation.SysLogger;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.entity.OperationConfig;
 import com.diagbot.facade.OperationConfigFacade;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.HospitalIdVO;
 import com.diagbot.vo.IdListVO;
 import com.diagbot.vo.IdVO;
@@ -152,4 +154,19 @@ public class OperationConfigController {
     public void exportExcel(HttpServletResponse response, @RequestBody @Valid HospitalIdVO hospitalIdVO) {
         operationConfigFacade.exportExcel(response, hospitalIdVO);
     }
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    @ApiOperation(value = "各医院映射关系数列表[by:zhaops]",
+            notes = "")
+    @PostMapping("/getRelationNumPage")
+    @SysLogger("getRelationNumPage")
+    public RespDTO<IPage<HosRelationNumDTO>> getRelationNumPage(@RequestBody @Valid HosRelationNumPageVO hosRelationNumPageVO) {
+        IPage<HosRelationNumDTO> data = operationConfigFacade.getRelationNumPage(hosRelationNumPageVO);
+        return RespDTO.onSuc(data);
+    }
 }

+ 17 - 0
cdssman-service/src/main/java/com/diagbot/web/PacsConfigController.java

@@ -3,9 +3,11 @@ package com.diagbot.web;
 
 import com.baomidou.mybatisplus.core.metadata.IPage;
 import com.diagbot.annotation.SysLogger;
+import com.diagbot.dto.HosRelationNumDTO;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.entity.PacsConfig;
 import com.diagbot.facade.PacsConfigFacade;
+import com.diagbot.vo.HosRelationNumPageVO;
 import com.diagbot.vo.HospitalIdVO;
 import com.diagbot.vo.IdListVO;
 import com.diagbot.vo.IdVO;
@@ -153,4 +155,19 @@ public class PacsConfigController {
     public void exportExcel(HttpServletResponse response, @RequestBody @Valid HospitalIdVO hospitalIdVO) {
         pacsConfigFacade.exportExcel(response, hospitalIdVO);
     }
+
+    /**
+     * 各医院映射关系数列表
+     *
+     * @param hosRelationNumPageVO
+     * @return
+     */
+    @ApiOperation(value = "各医院映射关系数列表[by:zhaops]",
+            notes = "")
+    @PostMapping("/getRelationNumPage")
+    @SysLogger("getRelationNumPage")
+    public RespDTO<IPage<HosRelationNumDTO>> getRelationNumPage(@RequestBody @Valid HosRelationNumPageVO hosRelationNumPageVO) {
+        IPage<HosRelationNumDTO> data = pacsConfigFacade.getRelationNumPage(hosRelationNumPageVO);
+        return RespDTO.onSuc(data);
+    }
 }

+ 15 - 0
cdssman-service/src/main/resources/mapper/DiseaseConfigMapper.xml

@@ -35,4 +35,19 @@
         </if>
     </select>
 
+    <!-- 各医院映射关系数列表 -->
+    <select id="getRelationNumPage" resultType="com.diagbot.dto.HosRelationNumDTO">
+        SELECT
+        a.id,
+        a.NAME,
+        sum( b.id IS NOT NULL ) AS num
+        FROM
+        tran_hospital_info a
+        LEFT JOIN tran_disease_config b ON a.id = b.hospital_id
+        AND b.is_deleted = 'N'
+        WHERE
+        a.is_deleted = 'N'
+        GROUP BY
+        a.id
+    </select>
 </mapper>

+ 15 - 0
cdssman-service/src/main/resources/mapper/DrugConfigMapper.xml

@@ -35,4 +35,19 @@
         </if>
     </select>
 
+    <!-- 各医院映射关系数列表 -->
+    <select id="getRelationNumPage" resultType="com.diagbot.dto.HosRelationNumDTO">
+        SELECT
+        a.id,
+        a.NAME,
+        sum( b.id IS NOT NULL ) AS num
+        FROM
+        tran_hospital_info a
+        LEFT JOIN tran_drug_config b ON a.id = b.hospital_id
+        AND b.is_deleted = 'N'
+        WHERE
+        a.is_deleted = 'N'
+        GROUP BY
+        a.id
+    </select>
 </mapper>

+ 16 - 0
cdssman-service/src/main/resources/mapper/LisConfigMapper.xml

@@ -38,4 +38,20 @@
             and a.unique_code like concat("%",#{lisConfigPageVO.uniqueCode},"%")
         </if>
     </select>
+
+    <!-- 各医院映射关系数列表 -->
+    <select id="getRelationNumPage" resultType="com.diagbot.dto.HosRelationNumDTO">
+        SELECT
+        a.id,
+        a.NAME,
+        sum( b.id IS NOT NULL ) AS num
+        FROM
+        tran_hospital_info a
+        LEFT JOIN tran_lis_config b ON a.id = b.hospital_id
+        AND b.is_deleted = 'N'
+        WHERE
+        a.is_deleted = 'N'
+        GROUP BY
+        a.id
+    </select>
 </mapper>

+ 16 - 0
cdssman-service/src/main/resources/mapper/OperationConfigMapper.xml

@@ -34,4 +34,20 @@
             and a.unique_code like concat("%",#{operationConfigPageVO.uniqueCode},"%")
         </if>
     </select>
+
+    <!-- 各医院映射关系数列表 -->
+    <select id="getRelationNumPage" resultType="com.diagbot.dto.HosRelationNumDTO">
+        SELECT
+        a.id,
+        a.NAME,
+        sum( b.id IS NOT NULL ) AS num
+        FROM
+        tran_hospital_info a
+        LEFT JOIN tran_operation_config b ON a.id = b.hospital_id
+        AND b.is_deleted = 'N'
+        WHERE
+        a.is_deleted = 'N'
+        GROUP BY
+        a.id
+    </select>
 </mapper>

+ 16 - 0
cdssman-service/src/main/resources/mapper/PacsConfigMapper.xml

@@ -34,4 +34,20 @@
             and a.unique_code like concat("%",#{pacsConfigPageVO.uniqueCode},"%")
         </if>
     </select>
+
+    <!-- 各医院映射关系数列表 -->
+    <select id="getRelationNumPage" resultType="com.diagbot.dto.HosRelationNumDTO">
+        SELECT
+        a.id,
+        a.NAME,
+        sum( b.id IS NOT NULL ) AS num
+        FROM
+        tran_hospital_info a
+        LEFT JOIN tran_pacs_config b ON a.id = b.hospital_id
+        AND b.is_deleted = 'N'
+        WHERE
+        a.is_deleted = 'N'
+        GROUP BY
+        a.id
+    </select>
 </mapper>