ソースを参照

术语映射导入导出

zhaops 4 年 前
コミット
a5e72650ef
21 ファイル変更190 行追加21 行削除
  1. 3 3
      cdssman-service/src/main/java/com/diagbot/entity/DeptConfig.java
  2. 3 3
      cdssman-service/src/main/java/com/diagbot/entity/DrugConfig.java
  3. 1 1
      cdssman-service/src/main/java/com/diagbot/entity/LisConfig.java
  4. 1 1
      cdssman-service/src/main/java/com/diagbot/entity/OperationConfig.java
  5. 1 1
      cdssman-service/src/main/java/com/diagbot/entity/PacsConfig.java
  6. 1 1
      cdssman-service/src/main/java/com/diagbot/entity/TransfusionConfig.java
  7. 6 6
      cdssman-service/src/main/java/com/diagbot/facade/ConceptInfoFacade.java
  8. 11 0
      cdssman-service/src/main/java/com/diagbot/facade/DeptConfigFacade.java
  9. 11 0
      cdssman-service/src/main/java/com/diagbot/facade/DiseaseConfigFacade.java
  10. 11 0
      cdssman-service/src/main/java/com/diagbot/facade/DrugConfigFacade.java
  11. 11 0
      cdssman-service/src/main/java/com/diagbot/facade/LisConfigFacade.java
  12. 12 1
      cdssman-service/src/main/java/com/diagbot/facade/OperationConfigFacade.java
  13. 14 3
      cdssman-service/src/main/java/com/diagbot/facade/PacsConfigFacade.java
  14. 11 0
      cdssman-service/src/main/java/com/diagbot/facade/TransfusionConfigFacade.java
  15. 13 0
      cdssman-service/src/main/java/com/diagbot/web/DeptConfigController.java
  16. 14 1
      cdssman-service/src/main/java/com/diagbot/web/DiseaseConfigController.java
  17. 14 0
      cdssman-service/src/main/java/com/diagbot/web/DrugConfigController.java
  18. 13 0
      cdssman-service/src/main/java/com/diagbot/web/LisConfigController.java
  19. 13 0
      cdssman-service/src/main/java/com/diagbot/web/OperationConfigController.java
  20. 13 0
      cdssman-service/src/main/java/com/diagbot/web/PacsConfigController.java
  21. 13 0
      cdssman-service/src/main/java/com/diagbot/web/TransfusionConfigController.java

+ 3 - 3
cdssman-service/src/main/java/com/diagbot/entity/DeptConfig.java

@@ -61,14 +61,14 @@ public class DeptConfig implements Serializable {
     /**
      * 医院科室名称
      */
-    @Excel(name = "医院科室名称", width = 40, orderNum = "1")
+    @Excel(name = "医院科室名称", width = 40, orderNum = "2")
     @NotBlank(message = "请输入医院科室名称")
     private String hisName;
 
     /**
      * 医院科室编码
      */
-    @Excel(name = "医院科室编码", width = 40, orderNum = "2")
+    @Excel(name = "医院科室编码", width = 40, orderNum = "1")
     private String hisCode;
 
     /**
@@ -81,7 +81,7 @@ public class DeptConfig implements Serializable {
     /**
      * 对应项编码
      */
-    @Excel(name = "对应项编码", width = 40, orderNum = "3")
+    //@Excel(name = "对应项编码", width = 40, orderNum = "3")
     private String uniqueCode;
 
     public Long getId() {

+ 3 - 3
cdssman-service/src/main/java/com/diagbot/entity/DrugConfig.java

@@ -68,20 +68,20 @@ public class DrugConfig implements Serializable {
     /**
      * 标准药品名称
      */
-    @Excel(name = "标准药品名称", width = 40, orderNum = "4")
+    @Excel(name = "标准药品名称", width = 40, orderNum = "2")
     @NotBlank(message = "请输入标准药品名称")
     private String uniqueName;
 
     /**
      * 标准编码
      */
-    @Excel(name = "对应项编码", width = 40, orderNum = "3")
+    //@Excel(name = "对应项编码", width = 40, orderNum = "3")
     private String uniqueCode;
 
     /**
      * 剂型
      */
-    @Excel(name = "剂型", width = 20, orderNum = "2")
+    @Excel(name = "药品剂型", width = 20, orderNum = "3")
     private String form;
 
     public Long getId() {

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/entity/LisConfig.java

@@ -83,7 +83,7 @@ public class LisConfig implements Serializable {
     /**
      * 对应项目编码
      */
-    @Excel(name = "对应项目编码", width = 40, orderNum = "3")
+    //@Excel(name = "对应项目编码", width = 40, orderNum = "3")
     private String uniqueCode;
 
     public Long getId() {

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/entity/OperationConfig.java

@@ -75,7 +75,7 @@ public class OperationConfig implements Serializable {
     /**
      * 对应项编码
      */
-    @Excel(name = "对应项编码", width = 40, orderNum = "2")
+    //@Excel(name = "对应项编码", width = 40, orderNum = "2")
     private String uniqueCode;
 
     public Long getId() {

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/entity/PacsConfig.java

@@ -75,7 +75,7 @@ public class PacsConfig implements Serializable {
     /**
      * 对应项编码
      */
-    @Excel(name = "对应项编码", width = 40, orderNum = "2")
+    //@Excel(name = "对应项编码", width = 40, orderNum = "2")
     private String uniqueCode;
 
     public Long getId() {

+ 1 - 1
cdssman-service/src/main/java/com/diagbot/entity/TransfusionConfig.java

@@ -75,7 +75,7 @@ public class TransfusionConfig implements Serializable {
     /**
      * 对应项编码
      */
-    @Excel(name = "对应项编码", width = 40, orderNum = "2")
+    //@Excel(name = "对应项编码", width = 40, orderNum = "2")
     private String uniqueCode;
 
     public Long getId() {

+ 6 - 6
cdssman-service/src/main/java/com/diagbot/facade/ConceptInfoFacade.java

@@ -67,7 +67,7 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
      * @return
      */
     public List<StaticKnowledgeIndexDTO> staticKnowledgeIndexWithoutInfo(StaticKnowledgeIndexVO staticKnowledgeIndexVO) {
-        List<StaticKnowledgeIndexDTO> staticKnowledgeIndexDTOList = staticKnowledgeIndex(staticKnowledgeIndexVO);
+        List<StaticKnowledgeIndexDTO> staticKnowledgeIndexDTOList = staticKnowledgeIndex(staticKnowledgeIndexVO, 1);
         //过滤没有静态知识的检索结果
         staticKnowledgeIndexDTOList = staticKnowledgeIndexDTOList
                 .stream()
@@ -80,9 +80,10 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
      * 医学知识(静态信息)检索
      *
      * @param staticKnowledgeIndexVO
+     * @param type 0:过滤逻辑删除数据,1:不过滤逻辑删除数据
      * @return
      */
-    public List<StaticKnowledgeIndexDTO> staticKnowledgeIndex(StaticKnowledgeIndexVO staticKnowledgeIndexVO) {
+    public List<StaticKnowledgeIndexDTO> staticKnowledgeIndex(StaticKnowledgeIndexVO staticKnowledgeIndexVO, Integer type) {
         List<StaticKnowledgeIndexDTO> retList = Lists.newLinkedList();
         //静态知识检索顺序
         List<DictionaryInfoDTO> dicStaticIndexList = dictionaryFacade.getListByGroupType(7);
@@ -124,7 +125,9 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
                         .collect(Collectors.toList());
                 if (ListUtil.isNotEmpty(conceptIdList)) {
                     QueryWrapper<ConceptDetail> conceptDetailQueryWrapper = new QueryWrapper<>();
-                    //conceptDetailQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey());
+                    if (type.equals(0)) {
+                        conceptDetailQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey());
+                    }
                     conceptDetailQueryWrapper.in("concept_id", conceptIdList);
                     List<ConceptDetail> conceptDetailList = conceptDetailFacade.list(conceptDetailQueryWrapper);
                     Map<Long, List<ConceptDetail>> detailMap
@@ -141,9 +144,6 @@ public class ConceptInfoFacade extends ConceptInfoServiceImpl {
                         }
                         for (ConceptDetail detail : detailMap.get(item.getId())) {
                             item.setHasInfo(1);
-                            if (detail.getIsDeleted().equals(IsDeleteEnum.Y.getKey())) {
-                                continue;
-                            }
                             List<String> contentTypeList = Arrays.asList(detail.getContentType().split(","));
                             if (contentTypeList.contains("1")) {
                                 item.setHasStaticKnowledge(1);

+ 11 - 0
cdssman-service/src/main/java/com/diagbot/facade/DeptConfigFacade.java

@@ -32,6 +32,7 @@ import org.springframework.stereotype.Component;
 import org.springframework.web.multipart.MultipartFile;
 
 import javax.servlet.http.HttpServletResponse;
+import java.util.ArrayList;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.List;
@@ -376,4 +377,14 @@ public class DeptConfigFacade {
     public IPage<HosRelationNumDTO> getRelationNumPage(HosRelationNumPageVO hosRelationNumPageVO) {
         return deptConfigService.getRelationNumPage(hosRelationNumPageVO);
     }
+
+    /**
+     * 数据导入模板导出
+     *
+     * @param response
+     */
+    public void exportExcelModule(HttpServletResponse response) {
+        String fileName = "科室映射模板.xls";
+        ExcelUtils.exportExcel(new ArrayList<>(), null, "sheet1", DeptConfig.class, fileName, response, 12.8f);
+    }
 }

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

@@ -31,6 +31,7 @@ import org.springframework.stereotype.Component;
 import org.springframework.web.multipart.MultipartFile;
 
 import javax.servlet.http.HttpServletResponse;
+import java.util.ArrayList;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.List;
@@ -367,4 +368,14 @@ public class DiseaseConfigFacade {
     public IPage<HosRelationNumDTO> getRelationNumPage(HosRelationNumPageVO hosRelationNumPageVO) {
         return diseaseConfigService.getRelationNumPage(hosRelationNumPageVO);
     }
+
+    /**
+     * 数据导入模板导出
+     *
+     * @param response
+     */
+    public void exportExcelModule(HttpServletResponse response) {
+        String fileName = "疾病映射模板.xls";
+        ExcelUtils.exportExcel(new ArrayList<>(), null, "sheet1", DiseaseConfig.class, fileName, response, 12.8f);
+    }
 }

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

@@ -32,6 +32,7 @@ import org.springframework.stereotype.Component;
 import org.springframework.web.multipart.MultipartFile;
 
 import javax.servlet.http.HttpServletResponse;
+import java.util.ArrayList;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.List;
@@ -547,4 +548,14 @@ public class DrugConfigFacade {
     public IPage<HosRelationNumDTO> getRelationNumPage(HosRelationNumPageVO hosRelationNumPageVO) {
         return drugConfigService.getRelationNumPage(hosRelationNumPageVO);
     }
+
+    /**
+     * 数据导入模板导出
+     *
+     * @param response
+     */
+    public void exportExcelModule(HttpServletResponse response) {
+        String fileName = "药品映射模板.xls";
+        ExcelUtils.exportExcel(new ArrayList<>(), null, "sheet1", DrugConfig.class, fileName, response, 12.8f);
+    }
 }

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

@@ -32,6 +32,7 @@ import org.springframework.stereotype.Component;
 import org.springframework.web.multipart.MultipartFile;
 
 import javax.servlet.http.HttpServletResponse;
+import java.util.ArrayList;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.List;
@@ -444,4 +445,14 @@ public class LisConfigFacade{
     public IPage<HosRelationNumDTO> getRelationNumPage(HosRelationNumPageVO hosRelationNumPageVO) {
         return lisConfigService.getRelationNumPage(hosRelationNumPageVO);
     }
+
+    /**
+     * 数据导入模板导出
+     *
+     * @param response
+     */
+    public void exportExcelModule(HttpServletResponse response) {
+        String fileName = "检验映射模板.xls";
+        ExcelUtils.exportExcel(new ArrayList<>(), null, "sheet1", LisConfig.class, fileName, response, 12.8f);
+    }
 }

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

@@ -32,6 +32,7 @@ import org.springframework.stereotype.Component;
 import org.springframework.web.multipart.MultipartFile;
 
 import javax.servlet.http.HttpServletResponse;
+import java.util.ArrayList;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.List;
@@ -247,7 +248,7 @@ public class OperationConfigFacade {
      * @param operationConfigList
      * @return
      */
-    public Boolean importExcelRecords(List<OperationConfig> operationConfigList,HospitalIdVO hospitalIdVO) {
+    public Boolean importExcelRecords(List<OperationConfig> operationConfigList, HospitalIdVO hospitalIdVO) {
         Long hospitalId = hospitalIdVO.getHospitalId();
         String userId = UserUtils.getCurrentPrincipleID();
         Date now = DateUtil.now();
@@ -377,4 +378,14 @@ public class OperationConfigFacade {
     public IPage<HosRelationNumDTO> getRelationNumPage(HosRelationNumPageVO hosRelationNumPageVO) {
         return operationConfigService.getRelationNumPage(hosRelationNumPageVO);
     }
+
+    /**
+     * 数据导入模板导出
+     *
+     * @param response
+     */
+    public void exportExcelModule(HttpServletResponse response) {
+        String fileName = "手术映射模板.xls";
+        ExcelUtils.exportExcel(new ArrayList<>(), null, "sheet1", OperationConfig.class, fileName, response, 12.8f);
+    }
 }

+ 14 - 3
cdssman-service/src/main/java/com/diagbot/facade/PacsConfigFacade.java

@@ -32,6 +32,7 @@ import org.springframework.stereotype.Component;
 import org.springframework.web.multipart.MultipartFile;
 
 import javax.servlet.http.HttpServletResponse;
+import java.util.ArrayList;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.List;
@@ -233,8 +234,8 @@ public class PacsConfigFacade {
             pacsConfigList.forEach(pacsConfig -> {
                 pacsConfig.setHospitalId(hospitalIdVO.getHospitalId());
             });
-            importExcelRecords(pacsConfigList,hospitalIdVO);
-        }else {
+            importExcelRecords(pacsConfigList, hospitalIdVO);
+        } else {
             throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "校验失败,导入数据不能为空");
         }
     }
@@ -245,7 +246,7 @@ public class PacsConfigFacade {
      * @param pacsConfigList
      * @return
      */
-    public Boolean importExcelRecords(List<PacsConfig> pacsConfigList,HospitalIdVO hospitalIdVO) {
+    public Boolean importExcelRecords(List<PacsConfig> pacsConfigList, HospitalIdVO hospitalIdVO) {
         Long hospitalId = hospitalIdVO.getHospitalId();
         String userId = UserUtils.getCurrentPrincipleID();
         Date now = DateUtil.now();
@@ -375,4 +376,14 @@ public class PacsConfigFacade {
     public IPage<HosRelationNumDTO> getRelationNumPage(HosRelationNumPageVO hosRelationNumPageVO) {
         return pacsConfigService.getRelationNumPage(hosRelationNumPageVO);
     }
+
+    /**
+     * 数据导入模板导出
+     *
+     * @param response
+     */
+    public void exportExcelModule(HttpServletResponse response) {
+        String fileName = "检查映射模板.xls";
+        ExcelUtils.exportExcel(new ArrayList<>(), null, "sheet1", PacsConfig.class, fileName, response, 12.8f);
+    }
 }

+ 11 - 0
cdssman-service/src/main/java/com/diagbot/facade/TransfusionConfigFacade.java

@@ -32,6 +32,7 @@ import org.springframework.stereotype.Component;
 import org.springframework.web.multipart.MultipartFile;
 
 import javax.servlet.http.HttpServletResponse;
+import java.util.ArrayList;
 import java.util.Date;
 import java.util.HashMap;
 import java.util.List;
@@ -375,4 +376,14 @@ public class TransfusionConfigFacade {
     public IPage<HosRelationNumDTO> getRelationNumPage(HosRelationNumPageVO hosRelationNumPageVO) {
         return transfusionConfigService.getRelationNumPage(hosRelationNumPageVO);
     }
+
+    /**
+     * 数据导入模板导出
+     *
+     * @param response
+     */
+    public void exportExcelModule(HttpServletResponse response) {
+        String fileName = "输血映射模板.xls";
+        ExcelUtils.exportExcel(new ArrayList<>(), null, "sheet1", TransfusionConfig.class, fileName, response, 12.8f);
+    }
 }

+ 13 - 0
cdssman-service/src/main/java/com/diagbot/web/DeptConfigController.java

@@ -175,4 +175,17 @@ public class DeptConfigController {
         IPage<HosRelationNumDTO> data = deptConfigFacade.getRelationNumPage(hosRelationNumPageVO);
         return RespDTO.onSuc(data);
     }
+
+    /**
+     * 数据导入模板导出
+     *
+     * @return
+     */
+    @ApiOperation(value = "数据导入模板导出[by:zhaops]",
+            notes = "")
+    @PostMapping("/exportExcelModule")
+    @SysLogger("exportExcelModule")
+    public void exportExcelModule(HttpServletResponse response) {
+        deptConfigFacade.exportExcelModule(response);
+    }
 }

+ 14 - 1
cdssman-service/src/main/java/com/diagbot/web/DiseaseConfigController.java

@@ -174,4 +174,17 @@ public class DiseaseConfigController {
         IPage<HosRelationNumDTO> data = diseaseConfigFacade.getRelationNumPage(hosRelationNumPageVO);
         return RespDTO.onSuc(data);
     }
-}
+
+    /**
+     * 数据导入模板导出
+     *
+     * @return
+     */
+    @ApiOperation(value = "数据导入模板导出[by:zhaops]",
+            notes = "")
+    @PostMapping("/exportExcelModule")
+    @SysLogger("exportExcelModule")
+    public void exportExcelModule(HttpServletResponse response) {
+        diseaseConfigFacade.exportExcelModule(response);
+    }
+}

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

@@ -149,6 +149,7 @@ public class DrugConfigController {
 
     /**
      * 数据导出
+     *
      * @param response
      * @param hospitalIdVO
      */
@@ -174,4 +175,17 @@ public class DrugConfigController {
         IPage<HosRelationNumDTO> data = drugConfigFacade.getRelationNumPage(hosRelationNumPageVO);
         return RespDTO.onSuc(data);
     }
+
+    /**
+     * 数据导入模板导出
+     *
+     * @return
+     */
+    @ApiOperation(value = "数据导入模板导出[by:zhaops]",
+            notes = "")
+    @PostMapping("/exportExcelModule")
+    @SysLogger("exportExcelModule")
+    public void exportExcelModule(HttpServletResponse response) {
+        drugConfigFacade.exportExcelModule(response);
+    }
 }

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

@@ -172,4 +172,17 @@ public class LisConfigController {
         IPage<HosRelationNumDTO> data = lisConfigFacade.getRelationNumPage(hosRelationNumPageVO);
         return RespDTO.onSuc(data);
     }
+
+    /**
+     * 数据导入模板导出
+     *
+     * @return
+     */
+    @ApiOperation(value = "数据导入模板导出[by:zhaops]",
+            notes = "")
+    @PostMapping("/exportExcelModule")
+    @SysLogger("exportExcelModule")
+    public void exportExcelModule(HttpServletResponse response) {
+        lisConfigFacade.exportExcelModule(response);
+    }
 }

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

@@ -175,4 +175,17 @@ public class OperationConfigController {
         IPage<HosRelationNumDTO> data = operationConfigFacade.getRelationNumPage(hosRelationNumPageVO);
         return RespDTO.onSuc(data);
     }
+
+    /**
+     * 数据导入模板导出
+     *
+     * @return
+     */
+    @ApiOperation(value = "数据导入模板导出[by:zhaops]",
+            notes = "")
+    @PostMapping("/exportExcelModule")
+    @SysLogger("exportExcelModule")
+    public void exportExcelModule(HttpServletResponse response) {
+        operationConfigFacade.exportExcelModule(response);
+    }
 }

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

@@ -176,4 +176,17 @@ public class PacsConfigController {
         IPage<HosRelationNumDTO> data = pacsConfigFacade.getRelationNumPage(hosRelationNumPageVO);
         return RespDTO.onSuc(data);
     }
+
+    /**
+     * 数据导入模板导出
+     *
+     * @return
+     */
+    @ApiOperation(value = "数据导入模板导出[by:zhaops]",
+            notes = "")
+    @PostMapping("/exportExcelModule")
+    @SysLogger("exportExcelModule")
+    public void exportExcelModule(HttpServletResponse response) {
+        pacsConfigFacade.exportExcelModule(response);
+    }
 }

+ 13 - 0
cdssman-service/src/main/java/com/diagbot/web/TransfusionConfigController.java

@@ -171,4 +171,17 @@ public class TransfusionConfigController {
         IPage<HosRelationNumDTO> data = transfusionConfigFacade.getRelationNumPage(hosRelationNumPageVO);
         return RespDTO.onSuc(data);
     }
+
+    /**
+     * 数据导入模板导出
+     *
+     * @return
+     */
+    @ApiOperation(value = "数据导入模板导出[by:zhaops]",
+            notes = "")
+    @PostMapping("/exportExcelModule")
+    @SysLogger("exportExcelModule")
+    public void exportExcelModule(HttpServletResponse response) {
+        transfusionConfigFacade.exportExcelModule(response);
+    }
 }