Jelajahi Sumber

tran服务字段修改,以及科室接口修改

gaodm 6 tahun lalu
induk
melakukan
ebb68827b5
25 mengubah file dengan 500 tambahan dan 130 penghapusan
  1. 13 0
      aipt-service/src/main/java/com/diagbot/client/TranServiceClient.java
  2. 8 1
      aipt-service/src/main/java/com/diagbot/client/hystrix/TranServiceHystrix.java
  3. 9 0
      aipt-service/src/main/java/com/diagbot/dto/DeptInfoDTO.java
  4. 15 0
      aipt-service/src/main/java/com/diagbot/dto/HospitalDeptInfoDTO.java
  5. 20 0
      aipt-service/src/main/java/com/diagbot/dto/HospitalDeptInfoVO.java
  6. 201 0
      aipt-service/src/main/java/com/diagbot/entity/HospitalDept.java
  7. 52 0
      aipt-service/src/main/java/com/diagbot/facade/DeptInfoFacade.java
  8. 20 0
      aipt-service/src/main/java/com/diagbot/vo/DeptInfoVO.java
  9. 48 0
      aipt-service/src/main/java/com/diagbot/web/DeptInfoController.java
  10. 4 0
      docs/009.20190425知识库标准化脚本/init_cloud_service.sql
  11. 5 0
      icss-service/src/main/java/com/diagbot/client/AiptServiceClient.java
  12. 0 9
      icss-service/src/main/java/com/diagbot/client/TranServiceClient.java
  13. 8 0
      icss-service/src/main/java/com/diagbot/client/hystrix/AiptServiceHystrix.java
  14. 0 6
      icss-service/src/main/java/com/diagbot/client/hystrix/TranServiceHystrix.java
  15. 1 3
      icss-service/src/main/java/com/diagbot/dto/DeptInfoDTO.java
  16. 18 18
      icss-service/src/main/java/com/diagbot/entity/DiseaseIcd.java
  17. 20 20
      icss-service/src/main/java/com/diagbot/entity/HospitalDept.java
  18. 5 20
      icss-service/src/main/java/com/diagbot/facade/DeptInfoFacade.java
  19. 2 2
      icss-service/src/main/java/com/diagbot/facade/TranDiseaseIcdFacade.java
  20. 1 1
      icss-service/src/main/java/com/diagbot/web/DeptInfoController.java
  21. 22 22
      tran-service/src/main/java/com/diagbot/entity/DiseaseIcd.java
  22. 25 25
      tran-service/src/main/java/com/diagbot/entity/HospitalDept.java
  23. 1 1
      tran-service/src/main/resources/mapper/DiseaseIcdMapper.xml
  24. 1 1
      tran-service/src/main/resources/mapper/HospitalDeptMapper.xml
  25. 1 1
      tran-service/src/main/resources/mapper/PatientInfoMapper.xml

+ 13 - 0
aipt-service/src/main/java/com/diagbot/client/TranServiceClient.java

@@ -1,7 +1,12 @@
 package com.diagbot.client;
 
 import com.diagbot.client.hystrix.TranServiceHystrix;
+import com.diagbot.dto.HospitalDeptInfoDTO;
+import com.diagbot.dto.HospitalDeptInfoVO;
+import com.diagbot.dto.RespDTO;
 import org.springframework.cloud.openfeign.FeignClient;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
 
 /**
  * @Description: 调用信息对接层服务
@@ -10,5 +15,13 @@ import org.springframework.cloud.openfeign.FeignClient;
  */
 @FeignClient(value = "tran-service", fallback = TranServiceHystrix.class)
 public interface TranServiceClient {
+    /**
+     * 获取科室信息
+     *
+     * @param hospitalDeptInfoVO
+     * @return
+     */
+    @PostMapping("/hospitalDeptInfo/getHospitalDeptInfo")
+    RespDTO<HospitalDeptInfoDTO> getHospitalDeptInfo(@RequestBody HospitalDeptInfoVO hospitalDeptInfoVO);
 
 }

+ 8 - 1
aipt-service/src/main/java/com/diagbot/client/hystrix/TranServiceHystrix.java

@@ -1,6 +1,9 @@
 package com.diagbot.client.hystrix;
 
 import com.diagbot.client.TranServiceClient;
+import com.diagbot.dto.HospitalDeptInfoDTO;
+import com.diagbot.dto.HospitalDeptInfoVO;
+import com.diagbot.dto.RespDTO;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
 
@@ -12,5 +15,9 @@ import org.springframework.stereotype.Component;
 @Component
 @Slf4j
 public class TranServiceHystrix implements TranServiceClient {
-
+    @Override
+    public RespDTO<HospitalDeptInfoDTO> getHospitalDeptInfo(HospitalDeptInfoVO hospitalDeptInfoVO) {
+        log.error("【hystrix】调用{}异常", "getHospitalDeptInfo");
+        return null;
+    }
 }

+ 9 - 0
aipt-service/src/main/java/com/diagbot/dto/DeptInfoDTO.java

@@ -0,0 +1,9 @@
+package com.diagbot.dto;
+
+/**
+ * @Description:
+ * @author: gaodm
+ * @time: 2019/5/8 13:51
+ */
+public class DeptInfoDTO extends ConceptBaseDTO {
+}

+ 15 - 0
aipt-service/src/main/java/com/diagbot/dto/HospitalDeptInfoDTO.java

@@ -0,0 +1,15 @@
+package com.diagbot.dto;
+
+import com.diagbot.entity.HospitalDept;
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @Description:
+ * @author: wangyu
+ * @time: 2019/2/12 17:23
+ */
+@Setter
+@Getter
+public class HospitalDeptInfoDTO extends HospitalDept {
+}

+ 20 - 0
aipt-service/src/main/java/com/diagbot/dto/HospitalDeptInfoVO.java

@@ -0,0 +1,20 @@
+package com.diagbot.dto;
+
+import lombok.Getter;
+import lombok.Setter;
+
+import javax.validation.constraints.NotNull;
+
+/**
+ * @Description:
+ * @author: wangyu
+ * @time: 2019/2/12 17:24
+ */
+@Getter
+@Setter
+public class HospitalDeptInfoVO {
+    @NotNull(message = "请输入科室编码")
+    private String deptCode;
+    @NotNull(message = "请输入医院编码")
+    private String hospitalCode;
+}

+ 201 - 0
aipt-service/src/main/java/com/diagbot/entity/HospitalDept.java

@@ -0,0 +1,201 @@
+package com.diagbot.entity;
+
+import com.baomidou.mybatisplus.annotation.IdType;
+import com.baomidou.mybatisplus.annotation.TableId;
+import com.baomidou.mybatisplus.annotation.TableName;
+
+import java.io.Serializable;
+import java.util.Date;
+
+/**
+ * <p>
+ * 医院科室信息表
+ * </p>
+ *
+ * @author rengb
+ * @since 2018-11-19
+ */
+@TableName("tran_hospital_dept")
+public class HospitalDept implements Serializable {
+
+    private static final long serialVersionUID = 1L;
+
+    /**
+     * 主键
+     */
+    @TableId(value = "id", type = IdType.AUTO)
+    private Long id;
+
+    /**
+     * 是否删除,N:未删除,Y:删除
+     */
+    private String isDeleted;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 记录修改时间,如果时间是1970年则表示纪录未修改
+     */
+    private Date gmtModified;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+    private String creator;
+
+    /**
+     * 修改人,如果为0则表示纪录未修改
+     */
+    private String modifier;
+
+    /**
+     * 医院科室编码
+     */
+    private String code;
+
+    /**
+     * 医院科室名称
+     */
+    private String name;
+
+    /**
+     * 医院编码
+     */
+    private String hospitalCode;
+
+    /**
+     * 医院名称
+     */
+    private String hospitalName;
+
+    /**
+     * 朗通科室名称
+     */
+    private String conceptDeptName;
+
+    /**
+     * 状态:0.禁用1.启用
+     */
+    private Integer status;
+
+    /**
+     * 备注
+     */
+    private String remark;
+
+    public Long getId() {
+        return id;
+    }
+
+    public void setId(Long id) {
+        this.id = id;
+    }
+    public String getIsDeleted() {
+        return isDeleted;
+    }
+
+    public void setIsDeleted(String isDeleted) {
+        this.isDeleted = isDeleted;
+    }
+    public Date getGmtCreate() {
+        return gmtCreate;
+    }
+
+    public void setGmtCreate(Date gmtCreate) {
+        this.gmtCreate = gmtCreate;
+    }
+    public Date getGmtModified() {
+        return gmtModified;
+    }
+
+    public void setGmtModified(Date gmtModified) {
+        this.gmtModified = gmtModified;
+    }
+    public String getCreator() {
+        return creator;
+    }
+
+    public void setCreator(String creator) {
+        this.creator = creator;
+    }
+    public String getModifier() {
+        return modifier;
+    }
+
+    public void setModifier(String modifier) {
+        this.modifier = modifier;
+    }
+    public String getCode() {
+        return code;
+    }
+
+    public void setCode(String code) {
+        this.code = code;
+    }
+    public String getName() {
+        return name;
+    }
+
+    public void setName(String name) {
+        this.name = name;
+    }
+    public String getHospitalCode() {
+        return hospitalCode;
+    }
+
+    public void setHospitalCode(String hospitalCode) {
+        this.hospitalCode = hospitalCode;
+    }
+    public String getHospitalName() {
+        return hospitalName;
+    }
+
+    public void setHospitalName(String hospitalName) {
+        this.hospitalName = hospitalName;
+    }
+
+    public String getConceptDeptName() {
+        return conceptDeptName;
+    }
+
+    public void setconceptDeptName(String conceptDeptName) {
+        this.conceptDeptName = conceptDeptName;
+    }
+
+    public Integer getStatus() {
+        return status;
+    }
+
+    public void setStatus(Integer status) {
+        this.status = status;
+    }
+    public String getRemark() {
+        return remark;
+    }
+
+    public void setRemark(String remark) {
+        this.remark = remark;
+    }
+
+    @Override
+    public String toString() {
+        return "HospitalDept{" +
+                "id=" + id +
+                ", isDeleted=" + isDeleted +
+                ", gmtCreate=" + gmtCreate +
+                ", gmtModified=" + gmtModified +
+                ", creator=" + creator +
+                ", modifier=" + modifier +
+                ", code=" + code +
+                ", name=" + name +
+                ", hospitalCode=" + hospitalCode +
+                ", hospitalName=" + hospitalName +
+                ", conceptDeptName=" + conceptDeptName +
+                ", status=" + status +
+                ", remark=" + remark +
+                "}";
+    }
+}

+ 52 - 0
aipt-service/src/main/java/com/diagbot/facade/DeptInfoFacade.java

@@ -0,0 +1,52 @@
+package com.diagbot.facade;
+
+import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
+import com.diagbot.client.TranServiceClient;
+import com.diagbot.dto.DeptInfoDTO;
+import com.diagbot.dto.HospitalDeptInfoDTO;
+import com.diagbot.dto.HospitalDeptInfoVO;
+import com.diagbot.dto.RespDTO;
+import com.diagbot.entity.Concept;
+import com.diagbot.enums.IsDeleteEnum;
+import com.diagbot.enums.LexiconTypeEnum;
+import com.diagbot.util.BeanUtil;
+import com.diagbot.util.RespDTOUtil;
+import com.diagbot.vo.DeptInfoVO;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.stereotype.Component;
+
+/**
+ * @Description:
+ * @author: wangyu
+ * @time: 2018/11/19 19:21
+ */
+@Component
+public class DeptInfoFacade {
+    @Autowired
+    private ConceptFacade conceptFacade;
+
+    @Autowired
+    private TranServiceClient tranServiceClient;
+
+    /**
+     * 获取科室信息
+     *
+     * @param deptInfoVO
+     * @return
+     */
+    public DeptInfoDTO getDeptInfo(DeptInfoVO deptInfoVO) {
+        HospitalDeptInfoVO hospitalDeptInfoVO = new HospitalDeptInfoVO();
+        BeanUtil.copyProperties(deptInfoVO, hospitalDeptInfoVO);
+        RespDTO<HospitalDeptInfoDTO> hospitalDeptInfoDTORespDTO = tranServiceClient.getHospitalDeptInfo(hospitalDeptInfoVO);
+        RespDTOUtil.respNGDealCover(hospitalDeptInfoDTORespDTO, "获取科室信息失败");
+        QueryWrapper<Concept> deptInfoDTOQueryWrapper = new QueryWrapper<>();
+        deptInfoDTOQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
+                .eq("lib_name", hospitalDeptInfoDTORespDTO.data.getConceptDeptName())
+                .eq("lib_type", LexiconTypeEnum.DEPARTMENT.getKey());
+        Concept deptInfo = conceptFacade.getOne(deptInfoDTOQueryWrapper);
+        DeptInfoDTO deptInfoDTO = new DeptInfoDTO();
+        deptInfoDTO.setConceptId(deptInfo.getId());
+        deptInfoDTO.setName(deptInfo.getLibName());
+        return deptInfoDTO;
+    }
+}

+ 20 - 0
aipt-service/src/main/java/com/diagbot/vo/DeptInfoVO.java

@@ -0,0 +1,20 @@
+package com.diagbot.vo;
+
+import lombok.Getter;
+import lombok.Setter;
+
+import javax.validation.constraints.NotNull;
+
+/**
+ * @Description:
+ * @author: wangyu
+ * @time: 2018/11/19 18:58
+ */
+@Getter
+@Setter
+public class DeptInfoVO {
+    @NotNull(message = "请输入科室编码")
+    private String deptCode;
+    @NotNull(message = "请输入医院编码")
+    private String hospitalCode;
+}

+ 48 - 0
aipt-service/src/main/java/com/diagbot/web/DeptInfoController.java

@@ -0,0 +1,48 @@
+package com.diagbot.web;
+
+
+import com.diagbot.annotation.SysLogger;
+import com.diagbot.dto.DeptInfoDTO;
+import com.diagbot.dto.RespDTO;
+import com.diagbot.facade.DeptInfoFacade;
+import com.diagbot.vo.DeptInfoVO;
+import io.swagger.annotations.Api;
+import io.swagger.annotations.ApiOperation;
+import org.springframework.beans.factory.annotation.Autowired;
+import org.springframework.web.bind.annotation.PostMapping;
+import org.springframework.web.bind.annotation.RequestBody;
+import org.springframework.web.bind.annotation.RequestMapping;
+import org.springframework.web.bind.annotation.RestController;
+import springfox.documentation.annotations.ApiIgnore;
+
+import javax.validation.Valid;
+
+/**
+ * <p>
+ * 科室信息表 前端控制器
+ * </p>
+ *
+ * @author wangyu
+ * @since 2018-11-19
+ */
+@RestController
+@RequestMapping("/deptInfo")
+@Api(value = "科室信息API", tags = { "科室信息API" })
+@SuppressWarnings("unchecked")
+@ApiIgnore
+@Deprecated
+public class DeptInfoController {
+
+    @Autowired
+    private DeptInfoFacade deptInfoFacade;
+
+    @ApiOperation(value = "科室信息——查询[by:wangyu]",
+            notes = "deptCode:科室编号,必填<br>" +
+                    "hospitalCode:医院编号,必填<br>")
+    @PostMapping("/getDeptInfo")
+    @SysLogger("getDeptInfo")
+    public RespDTO<DeptInfoDTO> getDeptInfo(@Valid @RequestBody DeptInfoVO deptInfoVO) {
+        DeptInfoDTO data = deptInfoFacade.getDeptInfo(deptInfoVO);
+        return RespDTO.onSuc(data);
+    }
+}

+ 4 - 0
docs/009.20190425知识库标准化脚本/init_cloud_service.sql

@@ -0,0 +1,4 @@
+-- 高达明
+use `sys-tran`;
+ALTER TABLE `tran_hospital_dept` CHANGE `icss_dept_name` `concept_dept_name` varchar(200) DEFAULT NULL COMMENT '朗通科室名称';
+ALTER TABLE `tran_disease_icd` CHANGE `icss_question_name` `concept_dis_name` varchar(200) DEFAULT NULL COMMENT '朗通疾病名称';

+ 5 - 0
icss-service/src/main/java/com/diagbot/client/AiptServiceClient.java

@@ -7,12 +7,14 @@ import com.diagbot.client.bean.SearchData;
 import com.diagbot.client.hystrix.AiptServiceHystrix;
 import com.diagbot.dto.ConceptBaseDTO;
 import com.diagbot.dto.ConceptIntroduceDTO;
+import com.diagbot.dto.DeptInfoDTO;
 import com.diagbot.dto.DisScaleDTO;
 import com.diagbot.dto.DisTypeDTO;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.entity.ScaleContent;
 import com.diagbot.vo.ConceptIntroduceVO;
 import com.diagbot.vo.ConceptUsualVO;
+import com.diagbot.vo.DeptInfoVO;
 import com.diagbot.vo.DisScaleVO;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.PostMapping;
@@ -59,4 +61,7 @@ public interface AiptServiceClient {
 
     @PostMapping(value = "/concept/getConceptUsual")
     RespDTO<List<ConceptBaseDTO>> getConceptUsual(@RequestBody @Valid ConceptUsualVO conceptUsualVO);
+
+    @PostMapping(value = "/deptInfo/getDeptInfo")
+    RespDTO<DeptInfoDTO> getDeptInfo(@Valid @RequestBody DeptInfoVO deptInfoVO);
 }

+ 0 - 9
icss-service/src/main/java/com/diagbot/client/TranServiceClient.java

@@ -56,15 +56,6 @@ public interface TranServiceClient {
     @PostMapping("/doctorInfo/doctorInfoMapByIds")
     RespDTO<Map<Long, DoctorInfo>> doctorInfoMapByIds(@RequestBody List<Long> ids);
 
-    /**
-     * 获取科室信息
-     *
-     * @param hospitalDeptInfoVO
-     * @return
-     */
-    @PostMapping("/hospitalDeptInfo/getHospitalDeptInfo")
-    RespDTO<HospitalDeptInfoDTO> getHospitalDeptInfo(@RequestBody HospitalDeptInfoVO hospitalDeptInfoVO);
-
     /**
      * 根据ids获取科室信息map
      *

+ 8 - 0
icss-service/src/main/java/com/diagbot/client/hystrix/AiptServiceHystrix.java

@@ -7,12 +7,14 @@ import com.diagbot.client.bean.ResponseData;
 import com.diagbot.client.bean.SearchData;
 import com.diagbot.dto.ConceptBaseDTO;
 import com.diagbot.dto.ConceptIntroduceDTO;
+import com.diagbot.dto.DeptInfoDTO;
 import com.diagbot.dto.DisScaleDTO;
 import com.diagbot.dto.DisTypeDTO;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.entity.ScaleContent;
 import com.diagbot.vo.ConceptIntroduceVO;
 import com.diagbot.vo.ConceptUsualVO;
+import com.diagbot.vo.DeptInfoVO;
 import com.diagbot.vo.DisScaleVO;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
@@ -90,4 +92,10 @@ public class AiptServiceHystrix implements AiptServiceClient {
         log.error("【hystrix】调用{}异常", "getConceptUsual");
         return null;
     }
+
+    @Override
+    public RespDTO<DeptInfoDTO> getDeptInfo(@Valid @RequestBody DeptInfoVO deptInfoVO){
+        log.error("【hystrix】调用{}异常", "getDeptInfo");
+        return null;
+    }
 }

+ 0 - 6
icss-service/src/main/java/com/diagbot/client/hystrix/TranServiceHystrix.java

@@ -57,12 +57,6 @@ public class TranServiceHystrix implements TranServiceClient {
         return null;
     }
 
-    @Override
-    public RespDTO<HospitalDeptInfoDTO> getHospitalDeptInfo(HospitalDeptInfoVO hospitalDeptInfoVO) {
-        log.error("【hystrix】调用{}异常", "getHospitalDeptInfo");
-        return null;
-    }
-
     @Override
     public RespDTO<Map<Long, HospitalDept>> hospitalDeptInfoMapByIds(List<Long> ids) {
         log.error("【hystrix】调用{}异常", "hospitalDeptInfoMapByIds");

+ 1 - 3
icss-service/src/main/java/com/diagbot/dto/DeptInfoDTO.java

@@ -1,11 +1,9 @@
 package com.diagbot.dto;
 
-import com.diagbot.entity.DeptInfo;
-
 /**
  * @Description:
  * @author: wangyu
  * @time: 2018/11/19 18:56
  */
-public class DeptInfoDTO extends DeptInfo {
+public class DeptInfoDTO extends ConceptBaseDTO {
 }

+ 18 - 18
icss-service/src/main/java/com/diagbot/entity/DiseaseIcd.java

@@ -74,16 +74,16 @@ public class DiseaseIcd implements Serializable {
     private String remark;
 
     /**
-     * 疾病名称(内)
+     * 朗通疾病名称
      */
-    private String icssQuestionName;
+    private String conceptDisName;
 
-    public String getIcssQuestionName() {
-        return icssQuestionName;
+    public String getConceptDisName() {
+        return conceptDisName;
     }
 
-    public void setIcssQuestionName(String icssQuestionName) {
-        this.icssQuestionName = icssQuestionName;
+    public void setConceptDisName(String conceptDisName) {
+        this.conceptDisName = conceptDisName;
     }
 
     public Long getId() {
@@ -167,18 +167,18 @@ public class DiseaseIcd implements Serializable {
     @Override
     public String toString() {
         return "DiseaseIcd{" +
-        "id=" + id +
-        ", isDeleted=" + isDeleted +
-        ", gmtCreate=" + gmtCreate +
-        ", gmtModified=" + gmtModified +
-        ", creator=" + creator +
-        ", modifier=" + modifier +
-        ", hospitalCode=" + hospitalCode +
-        ", diseaseName=" + diseaseName +
-        ", icd=" + icd +
-        ", status=" + status +
-        ", remark=" + remark +
-        ",icssQuestionName" + icssQuestionName +
+                "id=" + id +
+                ", isDeleted=" + isDeleted +
+                ", gmtCreate=" + gmtCreate +
+                ", gmtModified=" + gmtModified +
+                ", creator=" + creator +
+                ", modifier=" + modifier +
+                ", hospitalCode=" + hospitalCode +
+                ", diseaseName=" + diseaseName +
+                ", icd=" + icd +
+                ", status=" + status +
+                ", remark=" + remark +
+                ",conceptDisName" + conceptDisName +
                 "}";
     }
 }

+ 20 - 20
icss-service/src/main/java/com/diagbot/entity/HospitalDept.java

@@ -72,9 +72,9 @@ public class HospitalDept implements Serializable {
     private String hospitalName;
 
     /**
-     * icss科室名称
+     * 朗通科室名称
      */
-    private String icssDeptName;
+    private String conceptDeptName;
 
     /**
      * 状态:0.禁用1.启用
@@ -157,12 +157,12 @@ public class HospitalDept implements Serializable {
         this.hospitalName = hospitalName;
     }
 
-    public String getIcssDeptName() {
-        return icssDeptName;
+    public String getConceptDeptName() {
+        return conceptDeptName;
     }
 
-    public void setIcssDeptName(String icssDeptName) {
-        this.icssDeptName = icssDeptName;
+    public void setconceptDeptName(String conceptDeptName) {
+        this.conceptDeptName = conceptDeptName;
     }
 
     public Integer getStatus() {
@@ -183,19 +183,19 @@ public class HospitalDept implements Serializable {
     @Override
     public String toString() {
         return "HospitalDept{" +
-        "id=" + id +
-        ", isDeleted=" + isDeleted +
-        ", gmtCreate=" + gmtCreate +
-        ", gmtModified=" + gmtModified +
-        ", creator=" + creator +
-        ", modifier=" + modifier +
-        ", code=" + code +
-        ", name=" + name +
-        ", hospitalCode=" + hospitalCode +
-        ", hospitalName=" + hospitalName +
-        ", deptId=" + icssDeptName +
-        ", status=" + status +
-        ", remark=" + remark +
-        "}";
+                "id=" + id +
+                ", isDeleted=" + isDeleted +
+                ", gmtCreate=" + gmtCreate +
+                ", gmtModified=" + gmtModified +
+                ", creator=" + creator +
+                ", modifier=" + modifier +
+                ", code=" + code +
+                ", name=" + name +
+                ", hospitalCode=" + hospitalCode +
+                ", hospitalName=" + hospitalName +
+                ", conceptDeptName=" + conceptDeptName +
+                ", status=" + status +
+                ", remark=" + remark +
+                "}";
     }
 }

+ 5 - 20
icss-service/src/main/java/com/diagbot/facade/DeptInfoFacade.java

@@ -1,17 +1,11 @@
 package com.diagbot.facade;
 
-import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
-import com.diagbot.client.TranServiceClient;
+import com.diagbot.client.AiptServiceClient;
 import com.diagbot.dto.DeptInfoDTO;
-import com.diagbot.dto.HospitalDeptInfoDTO;
 import com.diagbot.dto.RespDTO;
-import com.diagbot.entity.DeptInfo;
-import com.diagbot.enums.IsDeleteEnum;
 import com.diagbot.service.impl.DeptInfoServiceImpl;
-import com.diagbot.util.BeanUtil;
 import com.diagbot.util.RespDTOUtil;
 import com.diagbot.vo.DeptInfoVO;
-import com.diagbot.vo.HospitalDeptInfoVO;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 
@@ -24,7 +18,7 @@ import org.springframework.stereotype.Component;
 public class DeptInfoFacade extends DeptInfoServiceImpl {
 
     @Autowired
-    TranServiceClient tranServiceClient;
+    AiptServiceClient aiptServiceClient;
 
     /**
      * 获取科室信息
@@ -33,17 +27,8 @@ public class DeptInfoFacade extends DeptInfoServiceImpl {
      * @return
      */
     public DeptInfoDTO getDeptInfo(DeptInfoVO deptInfoVO) {
-        HospitalDeptInfoVO hospitalDeptInfoVO = new HospitalDeptInfoVO();
-        BeanUtil.copyProperties(deptInfoVO, hospitalDeptInfoVO);
-        RespDTO<HospitalDeptInfoDTO> hospitalDeptInfoDTORespDTO = tranServiceClient.getHospitalDeptInfo(hospitalDeptInfoVO);
-        RespDTOUtil.respNGDealCover(hospitalDeptInfoDTORespDTO, "获取科室信息失败");
-        QueryWrapper<DeptInfo> deptInfoDTOQueryWrapper = new QueryWrapper<>();
-        deptInfoDTOQueryWrapper.eq("is_deleted", IsDeleteEnum.N.getKey())
-                .eq("name", hospitalDeptInfoDTORespDTO.data.getIcssDeptName());
-        DeptInfo deptInfo = this.getOne(deptInfoDTOQueryWrapper);
-        DeptInfoDTO deptInfoDTO = new DeptInfoDTO();
-        BeanUtil.copyProperties(deptInfo, deptInfoDTO);
-        deptInfoDTO.setId(deptInfo.getId());
-        return deptInfoDTO;
+        RespDTO<DeptInfoDTO> res = aiptServiceClient.getDeptInfo(deptInfoVO);
+        RespDTOUtil.respNGDealCover(res, "获取科室信息失败");
+        return res.data;
     }
 }

+ 2 - 2
icss-service/src/main/java/com/diagbot/facade/TranDiseaseIcdFacade.java

@@ -43,7 +43,7 @@ public class TranDiseaseIcdFacade {
         List<GetDiseaseIcdDTO> res = new ArrayList<>();
 
         List<String> questionNames
-                = getDiseaseIcdsList.data.stream().map(getDiseaseIcdDTO -> getDiseaseIcdDTO.getIcssQuestionName()).collect(Collectors.toList());
+                = getDiseaseIcdsList.data.stream().map(getDiseaseIcdDTO -> getDiseaseIcdDTO.getConceptDisName()).collect(Collectors.toList());
         if (ListUtil.isEmpty(questionNames)) {
             return res;
         }
@@ -58,7 +58,7 @@ public class TranDiseaseIcdFacade {
                 .map(r -> r.getName()).collect(Collectors.toList());
         if (ListUtil.isNotEmpty(icssQuestionNames)) {
             for (GetDiseaseIcdDTO getDiseaseIcdDTO : getDiseaseIcdsList.data) {
-                if (icssQuestionNames.contains(getDiseaseIcdDTO.getIcssQuestionName())) {
+                if (icssQuestionNames.contains(getDiseaseIcdDTO.getConceptDisName())) {
                     res.add(getDiseaseIcdDTO);
                 }
             }

+ 1 - 1
icss-service/src/main/java/com/diagbot/web/DeptInfoController.java

@@ -29,7 +29,7 @@ import javax.validation.Valid;
 @RequestMapping("/deptInfo")
 @Api(value = "科室信息API", tags = { "科室信息API" })
 @SuppressWarnings("unchecked")
-@ApiIgnore
+//@ApiIgnore
 @Deprecated
 public class DeptInfoController {
 

+ 22 - 22
tran-service/src/main/java/com/diagbot/entity/DiseaseIcd.java

@@ -74,9 +74,17 @@ public class DiseaseIcd implements Serializable {
     private String remark;
 
     /**
-     * 疾病名称(内)
+     * 朗通疾病名称
      */
-    private String icssQuestionName;
+    private String conceptDisName;
+
+    public String getConceptDisName() {
+        return conceptDisName;
+    }
+
+    public void setConceptDisName(String conceptDisName) {
+        this.conceptDisName = conceptDisName;
+    }
 
     public Long getId() {
         return id;
@@ -156,29 +164,21 @@ public class DiseaseIcd implements Serializable {
         this.remark = remark;
     }
 
-    public String getIcssQuestionName() {
-        return icssQuestionName;
-    }
-
-    public void setIcssQuestionName(String icssQuestionName) {
-        this.icssQuestionName = icssQuestionName;
-    }
-
     @Override
     public String toString() {
         return "DiseaseIcd{" +
-        "id=" + id +
-        ", isDeleted=" + isDeleted +
-        ", gmtCreate=" + gmtCreate +
-        ", gmtModified=" + gmtModified +
-        ", creator=" + creator +
-        ", modifier=" + modifier +
-        ", hospitalCode=" + hospitalCode +
-        ", diseaseName=" + diseaseName +
-        ", icd=" + icd +
-        ", status=" + status +
-        ", remark=" + remark +
-        ",icssQuestionName" + icssQuestionName +
+                "id=" + id +
+                ", isDeleted=" + isDeleted +
+                ", gmtCreate=" + gmtCreate +
+                ", gmtModified=" + gmtModified +
+                ", creator=" + creator +
+                ", modifier=" + modifier +
+                ", hospitalCode=" + hospitalCode +
+                ", diseaseName=" + diseaseName +
+                ", icd=" + icd +
+                ", status=" + status +
+                ", remark=" + remark +
+                ",conceptDisName" + conceptDisName +
                 "}";
     }
 }

+ 25 - 25
tran-service/src/main/java/com/diagbot/entity/HospitalDept.java

@@ -72,9 +72,9 @@ public class HospitalDept implements Serializable {
     private String hospitalName;
 
     /**
-     * icss科室id
+     * 朗通科室名称
      */
-    private String icssDeptName;
+    private String conceptDeptName;
 
     /**
      * 状态:0.禁用1.启用
@@ -86,15 +86,6 @@ public class HospitalDept implements Serializable {
      */
     private String remark;
 
-
-    public String getIcssDeptName() {
-        return icssDeptName;
-    }
-
-    public void setIcssDeptName(String icssDeptName) {
-        this.icssDeptName = icssDeptName;
-    }
-
     public Long getId() {
         return id;
     }
@@ -165,6 +156,15 @@ public class HospitalDept implements Serializable {
     public void setHospitalName(String hospitalName) {
         this.hospitalName = hospitalName;
     }
+
+    public String getConceptDeptName() {
+        return conceptDeptName;
+    }
+
+    public void setconceptDeptName(String conceptDeptName) {
+        this.conceptDeptName = conceptDeptName;
+    }
+
     public Integer getStatus() {
         return status;
     }
@@ -183,19 +183,19 @@ public class HospitalDept implements Serializable {
     @Override
     public String toString() {
         return "HospitalDept{" +
-        "id=" + id +
-        ", isDeleted=" + isDeleted +
-        ", gmtCreate=" + gmtCreate +
-        ", gmtModified=" + gmtModified +
-        ", creator=" + creator +
-        ", modifier=" + modifier +
-        ", code=" + code +
-        ", name=" + name +
-        ", hospitalCode=" + hospitalCode +
-        ", hospitalName=" + hospitalName +
-        ", icssDeptName=" + icssDeptName +
-        ", status=" + status +
-        ", remark=" + remark +
-        "}";
+                "id=" + id +
+                ", isDeleted=" + isDeleted +
+                ", gmtCreate=" + gmtCreate +
+                ", gmtModified=" + gmtModified +
+                ", creator=" + creator +
+                ", modifier=" + modifier +
+                ", code=" + code +
+                ", name=" + name +
+                ", hospitalCode=" + hospitalCode +
+                ", hospitalName=" + hospitalName +
+                ", conceptDeptName=" + conceptDeptName +
+                ", status=" + status +
+                ", remark=" + remark +
+                "}";
     }
 }

+ 1 - 1
tran-service/src/main/resources/mapper/DiseaseIcdMapper.xml

@@ -15,7 +15,7 @@
         <result column="icd" property="icd" />
         <result column="status" property="status" />
         <result column="remark" property="remark" />
-        <result column="icss_question_name" property="icssQuestionName" />
+        <result column="concept_dis_name" property="conceptDisName" />
     </resultMap>
 
     <select id="getDiseaseIcds" resultMap="BaseResultMap" parameterType="java.util.Map">

+ 1 - 1
tran-service/src/main/resources/mapper/HospitalDeptMapper.xml

@@ -14,7 +14,7 @@
         <result column="name" property="name" />
         <result column="hospital_code" property="hospitalCode" />
         <result column="hospital_name" property="hospitalName" />
-        <result column="icss_dept_name" property="icssDeptName" />
+        <result column="concept_dept_name" property="conceptDeptName" />
         <result column="status" property="status" />
         <result column="remark" property="remark" />
     </resultMap>

+ 1 - 1
tran-service/src/main/resources/mapper/PatientInfoMapper.xml

@@ -44,7 +44,7 @@
 		a.`code` as hospitalCode,
 		a.`name` as hospitalName,
 		b.id as hospitalDeptId,
-		b.icss_dept_name as selfDeptName,
+		b.concept_dept_name as selfDeptName,
 		b.`code` as hospitalDeptCode,
 		b.`name` as hospitalDeptName,
 		c.id as doctorId,