Browse Source

版本管理移到医学术语维护

gaodm 5 years ago
parent
commit
35dc9db85d
24 changed files with 567 additions and 14 deletions
  1. 15 2
      aipt-service/src/main/java/com/diagbot/entity/VersionInfo.java
  2. 14 1
      aipt-service/src/main/java/com/diagbot/facade/VersionInfoFacade.java
  3. 18 0
      aipt-service/src/main/java/com/diagbot/vo/VersionVO.java
  4. 4 2
      aipt-service/src/main/java/com/diagbot/web/VersionInfoController.java
  5. 1 1
      aipt-service/src/test/java/com/diagbot/CodeGeneration.java
  6. 54 0
      common/src/main/java/com/diagbot/enums/ProductTypeEnum.java
  7. 8 0
      data-service/src/main/java/com/diagbot/client/AiptServiceClient.java
  8. 11 0
      data-service/src/main/java/com/diagbot/client/hystrix/AiptServiceHystrix.java
  9. 60 0
      data-service/src/main/java/com/diagbot/dto/VersionDetailDTO.java
  10. 48 0
      data-service/src/main/java/com/diagbot/dto/VersionWrapperDTO.java
  11. 18 0
      data-service/src/main/java/com/diagbot/vo/VersionVO.java
  12. 2 1
      icss-service/src/main/java/com/diagbot/client/AiptServiceClient.java
  13. 2 1
      icss-service/src/main/java/com/diagbot/client/hystrix/AiptServiceHystrix.java
  14. 5 1
      icss-service/src/main/java/com/diagbot/facade/VersionInfoFacade.java
  15. 18 0
      icss-service/src/main/java/com/diagbot/vo/VersionVO.java
  16. 18 5
      knowledgeman-service/src/main/java/com/diagbot/entity/VersionInfo.java
  17. 60 0
      prec-service/src/main/java/com/diagbot/dto/VersionDetailDTO.java
  18. 48 0
      prec-service/src/main/java/com/diagbot/dto/VersionWrapperDTO.java
  19. 18 0
      prec-service/src/main/java/com/diagbot/vo/VersionVO.java
  20. 8 0
      triage-service/src/main/java/com/diagbot/client/AiptServiceClient.java
  21. 11 0
      triage-service/src/main/java/com/diagbot/client/hystrix/AiptServiceHystrix.java
  22. 60 0
      triage-service/src/main/java/com/diagbot/dto/VersionDetailDTO.java
  23. 48 0
      triage-service/src/main/java/com/diagbot/dto/VersionWrapperDTO.java
  24. 18 0
      triage-service/src/main/java/com/diagbot/vo/VersionVO.java

+ 15 - 2
aipt-service/src/main/java/com/diagbot/entity/VersionInfo.java

@@ -12,8 +12,8 @@ import com.baomidou.mybatisplus.annotation.TableName;
  * 版本信息(关于)
  * </p>
  *
- * @author wangfeng
- * @since 2018-11-20
+ * @author gaodm
+ * @since 2019-08-07
  */
 @TableName("kl_version_info")
 public class VersionInfo implements Serializable {
@@ -48,6 +48,11 @@ public class VersionInfo implements Serializable {
      */
     private String modifier;
 
+    /**
+     * 产品类型(1:云平台内部;2:云平台外部;3:icss;4:智能分诊;5:数据服务模式;6:智能预问诊)
+     */
+    private Integer productType;
+
     /**
      * 名称
      */
@@ -107,6 +112,13 @@ public class VersionInfo implements Serializable {
     public void setModifier(String modifier) {
         this.modifier = modifier;
     }
+    public Integer getProductType() {
+        return productType;
+    }
+
+    public void setProductType(Integer productType) {
+        this.productType = productType;
+    }
     public String getName() {
         return name;
     }
@@ -145,6 +157,7 @@ public class VersionInfo implements Serializable {
         ", gmtModified=" + gmtModified +
         ", creator=" + creator +
         ", modifier=" + modifier +
+        ", productType=" + productType +
         ", name=" + name +
         ", refreshTime=" + refreshTime +
         ", status=" + status +

+ 14 - 1
aipt-service/src/main/java/com/diagbot/facade/VersionInfoFacade.java

@@ -6,7 +6,11 @@ import com.diagbot.dto.VersionWrapperDTO;
 import com.diagbot.entity.VersionInfo;
 import com.diagbot.enums.IsDeleteEnum;
 import com.diagbot.enums.StatusEnum;
+import com.diagbot.exception.CommonErrorCode;
+import com.diagbot.exception.CommonException;
 import com.diagbot.service.impl.VersionInfoServiceImpl;
+import com.diagbot.util.IntegerUtil;
+import com.diagbot.vo.VersionVO;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 
@@ -29,10 +33,19 @@ public class VersionInfoFacade extends VersionInfoServiceImpl {
      *
      * @return
      */
-    public VersionWrapperDTO getVersionInfoAll() {
+    public VersionWrapperDTO getVersionInfoAll(VersionVO versionVO) {
+        //入参配置验证
+        if (null == versionVO) {
+            throw new CommonException(CommonErrorCode.PARAM_IS_NULL);
+        }
+
+        if (IntegerUtil.isNull(versionVO.getProductType())) {
+            throw new CommonException(CommonErrorCode.PARAM_IS_NULL, "产品类型不能为空!");
+        }
         //查询最新的一条版本信息
         QueryWrapper<VersionInfo> versionInfoQuery = new QueryWrapper<>();
         versionInfoQuery.eq("is_deleted", IsDeleteEnum.N.getKey())
+                .eq("product_type", versionVO.getProductType())
                 .eq("STATUS", StatusEnum.Enable.getKey())
                 .orderByDesc("gmt_modified");
 

+ 18 - 0
aipt-service/src/main/java/com/diagbot/vo/VersionVO.java

@@ -0,0 +1,18 @@
+package com.diagbot.vo;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @Description: 版本信息
+ * @author: gaodm
+ * @time: 2019/8/7 13:26
+ */
+@Getter
+@Setter
+public class VersionVO {
+    /**
+     * 产品类型(1:云平台内部;2:云平台外部;3:icss;4:智能分诊;5:数据服务模式;6:智能预问诊)
+     */
+    private Integer productType;
+}

+ 4 - 2
aipt-service/src/main/java/com/diagbot/web/VersionInfoController.java

@@ -4,10 +4,12 @@ import com.diagbot.annotation.SysLogger;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.dto.VersionWrapperDTO;
 import com.diagbot.facade.VersionInfoFacade;
+import com.diagbot.vo.VersionVO;
 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;
 
@@ -31,8 +33,8 @@ public class VersionInfoController {
     @ApiOperation(value = "获取版本信息[by:wangfeng]", notes = "获取版本信息")
     @PostMapping("/getVersionInfoAlls")
     @SysLogger("getVersionInfoAlls")
-    public RespDTO<VersionWrapperDTO> getVersionInfoAlls() {
-        VersionWrapperDTO data = versionInfoFacade.getVersionInfoAll();
+    public RespDTO<VersionWrapperDTO> getVersionInfoAlls(@RequestBody VersionVO versionVO) {
+        VersionWrapperDTO data = versionInfoFacade.getVersionInfoAll(versionVO);
         return RespDTO.onSuc(data);
     }
 

+ 1 - 1
aipt-service/src/test/java/com/diagbot/CodeGeneration.java

@@ -56,7 +56,7 @@ public class CodeGeneration {
         StrategyConfig strategy = new StrategyConfig();
         strategy.setTablePrefix(new String[] { "kl_" });// 此处可以修改为您的表前缀
         strategy.setNaming(NamingStrategy.underline_to_camel);// 表名生成策略
-        strategy.setInclude(new String[] { "kl_concept" }); // 需要生成的表
+        strategy.setInclude(new String[] { "kl_version_info" }); // 需要生成的表
 
         strategy.setSuperServiceClass(null);
         strategy.setSuperServiceImplClass(null);

+ 54 - 0
common/src/main/java/com/diagbot/enums/ProductTypeEnum.java

@@ -0,0 +1,54 @@
+package com.diagbot.enums;
+
+import com.diagbot.core.KeyedNamed;
+import lombok.Setter;
+
+/**
+ * @Description: 访问的系统类型
+ * 1:user-service,2:diagbotman-service,3:uaa-service,4:log-service,
+ * 5:bi-service,6:knowledge-service,7:feedback-service,8:icss-web
+ * @author: gaodm
+ * @time: 2018/9/14 9:15
+ */
+public enum ProductTypeEnum implements KeyedNamed {
+    DIAGBOTCLOUD_INNER(1, "云平台内部"),
+    DIAGBOTCLOUD_OUTTER(2, "云平台外部"),
+    ICSS(3, "ICSS"),
+    TRIAGE(4, "智能分诊"),
+    DATA(5, "数据服务模式"),
+    PREC(6, "智能预问诊");
+    @Setter
+    private int key;
+
+    @Setter
+    private String name;
+
+    ProductTypeEnum(int key, String name) {
+        this.key = key;
+        this.name = name;
+    }
+
+    public static ProductTypeEnum getEnum(int key) {
+        for (ProductTypeEnum item : ProductTypeEnum.values()) {
+            if (item.key == key) {
+                return item;
+            }
+        }
+        return null;
+    }
+
+    public static String getName(int key) {
+        ProductTypeEnum item = getEnum(key);
+        return item != null ? item.name : null;
+    }
+
+    @Override
+    public int getKey() {
+        return key;
+    }
+
+    @Override
+    public String getName() {
+        return name;
+    }
+}

+ 8 - 0
data-service/src/main/java/com/diagbot/client/AiptServiceClient.java

@@ -8,7 +8,9 @@ import com.diagbot.dto.ConceptIntroduceDTO;
 import com.diagbot.dto.DisclaimerInformationDTO;
 import com.diagbot.dto.PushDTO;
 import com.diagbot.dto.RespDTO;
+import com.diagbot.dto.VersionWrapperDTO;
 import com.diagbot.vo.ConceptIntroduceVO;
+import com.diagbot.vo.VersionVO;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -72,4 +74,10 @@ public interface AiptServiceClient {
      */
     @PostMapping(value = "/conceptDetail/getConceptDetail")
     RespDTO<ConceptIntroduceDTO> getConceptDetail(@Valid @RequestBody ConceptIntroduceVO conceptIntroduceVO);
+
+    /**
+     * 获取版本信息
+     */
+    @PostMapping("/versionInfo/getVersionInfoAlls")
+    RespDTO<VersionWrapperDTO> getVersionInfoAlls(@RequestBody VersionVO versionVO);
 }

+ 11 - 0
data-service/src/main/java/com/diagbot/client/hystrix/AiptServiceHystrix.java

@@ -8,7 +8,9 @@ import com.diagbot.dto.ConceptIntroduceDTO;
 import com.diagbot.dto.DisclaimerInformationDTO;
 import com.diagbot.dto.PushDTO;
 import com.diagbot.dto.RespDTO;
+import com.diagbot.dto.VersionWrapperDTO;
 import com.diagbot.vo.ConceptIntroduceVO;
+import com.diagbot.vo.VersionVO;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -90,4 +92,13 @@ public class AiptServiceHystrix implements AiptServiceClient {
         log.error("【hystrix】调用{}异常", "getConceptDetail");
         return null;
     }
+
+    /**
+     * 获取版本信息
+     */
+    @Override
+    public RespDTO<VersionWrapperDTO> getVersionInfoAlls(VersionVO versionVO){
+        log.error("【hystrix】调用{}异常", "getVersionInfoAlls");
+        return null;
+    }
 }

+ 60 - 0
data-service/src/main/java/com/diagbot/dto/VersionDetailDTO.java

@@ -0,0 +1,60 @@
+package com.diagbot.dto;
+
+import lombok.Getter;
+import lombok.Setter;
+
+import java.util.Date;
+
+/**
+ * 
+ * @author wangfeng
+ * @Description: TODO
+ * @date 2018年11月21日 上午11:12:12
+ */
+@Getter
+@Setter
+public class VersionDetailDTO {
+	
+	private Long id;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+   // private String creator;
+
+  
+    /**
+     * 版本主表id
+     */
+    private Long versionId;
+
+    /**
+     * 标题
+     */
+    private String title;
+
+    /**
+     * 描述
+     */
+    private String description;
+
+    /**
+     * 排序号
+     */
+    private String orderNo;
+
+    /**
+     * 1:启动,0:不启用
+     */
+  //  private String status;
+
+    /**
+     * 备注
+     */
+    private String remark;
+}

+ 48 - 0
data-service/src/main/java/com/diagbot/dto/VersionWrapperDTO.java

@@ -0,0 +1,48 @@
+package com.diagbot.dto;
+
+import lombok.Getter;
+import lombok.Setter;
+
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 
+ * @author wangfeng
+ * @Description: TODO
+ * @date 2018年11月21日 上午11:09:33
+ */
+@Getter
+@Setter
+public class VersionWrapperDTO {
+	
+	private Long id;
+	/**
+	 * 记录创建时间
+	 */
+	private Date gmtCreate;
+
+	/**
+	 * 创建人,0表示无创建人值
+	 */
+	private String creator;
+
+	/**
+	 * 名称
+	 */
+	private String name;
+
+	private Date refreshTime;
+
+	/**
+	 * 1:启动,0:不启用
+	 */
+	private String status;
+
+	private List<VersionDetailDTO> detail;
+	/**
+	 * 备注
+	 */
+	private String remark;
+
+}

+ 18 - 0
data-service/src/main/java/com/diagbot/vo/VersionVO.java

@@ -0,0 +1,18 @@
+package com.diagbot.vo;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @Description: 版本信息
+ * @author: gaodm
+ * @time: 2019/8/7 13:26
+ */
+@Getter
+@Setter
+public class VersionVO {
+    /**
+     * 产品类型(1:云平台内部;2:云平台外部;3:icss;4:智能分诊;5:数据服务模式;6:智能预问诊)
+     */
+    private Integer productType;
+}

+ 2 - 1
icss-service/src/main/java/com/diagbot/client/AiptServiceClient.java

@@ -41,6 +41,7 @@ import com.diagbot.vo.IndexDataFindVO;
 import com.diagbot.vo.IndexDataSaveVO;
 import com.diagbot.vo.RetrievalVO;
 import com.diagbot.vo.ScaleIndexVO;
+import com.diagbot.vo.VersionVO;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -238,5 +239,5 @@ public interface AiptServiceClient {
      * 获取版本信息
      */
     @PostMapping("/versionInfo/getVersionInfoAlls")
-    RespDTO<VersionWrapperDTO> getVersionInfoAlls();
+    RespDTO<VersionWrapperDTO> getVersionInfoAlls(@RequestBody VersionVO versionVO);
 }

+ 2 - 1
icss-service/src/main/java/com/diagbot/client/hystrix/AiptServiceHystrix.java

@@ -41,6 +41,7 @@ import com.diagbot.vo.IndexDataFindVO;
 import com.diagbot.vo.IndexDataSaveVO;
 import com.diagbot.vo.RetrievalVO;
 import com.diagbot.vo.ScaleIndexVO;
+import com.diagbot.vo.VersionVO;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -304,7 +305,7 @@ public class AiptServiceHystrix implements AiptServiceClient {
      * 获取版本信息
      */
     @Override
-    public RespDTO<VersionWrapperDTO> getVersionInfoAlls(){
+    public RespDTO<VersionWrapperDTO> getVersionInfoAlls(VersionVO versionVO){
         log.error("【hystrix】调用{}异常", "getVersionInfoAlls");
         return null;
     }

+ 5 - 1
icss-service/src/main/java/com/diagbot/facade/VersionInfoFacade.java

@@ -3,7 +3,9 @@ package com.diagbot.facade;
 import com.diagbot.client.AiptServiceClient;
 import com.diagbot.dto.RespDTO;
 import com.diagbot.dto.VersionWrapperDTO;
+import com.diagbot.enums.ProductTypeEnum;
 import com.diagbot.util.RespDTOUtil;
+import com.diagbot.vo.VersionVO;
 import org.springframework.beans.factory.annotation.Autowired;
 import org.springframework.stereotype.Component;
 
@@ -23,7 +25,9 @@ public class VersionInfoFacade {
      * @return
      */
     public VersionWrapperDTO getVersionInfoAll() {
-        RespDTO<VersionWrapperDTO> res = aiptServiceClient.getVersionInfoAlls();
+        VersionVO versionVO = new VersionVO();
+        versionVO.setProductType(ProductTypeEnum.ICSS.getKey());
+        RespDTO<VersionWrapperDTO> res = aiptServiceClient.getVersionInfoAlls(versionVO);
         RespDTOUtil.respNGDealCover(res, "获取不到版本信息!");
         return res.data;
     }

+ 18 - 0
icss-service/src/main/java/com/diagbot/vo/VersionVO.java

@@ -0,0 +1,18 @@
+package com.diagbot.vo;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @Description: 版本信息
+ * @author: gaodm
+ * @time: 2019/8/7 13:26
+ */
+@Getter
+@Setter
+public class VersionVO {
+    /**
+     * 产品类型(1:云平台内部;2:云平台外部;3:icss;4:智能分诊;5:数据服务模式;6:智能预问诊)
+     */
+    private Integer productType;
+}

+ 18 - 5
knowledgeman-service/src/main/java/com/diagbot/entity/VersionInfo.java

@@ -1,19 +1,19 @@
 package com.diagbot.entity;
 
-import java.io.Serializable;
-import java.util.Date;
-
 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 wangfeng
- * @since 2018-11-20
+ * @author gaodm
+ * @since 2019-08-07
  */
 @TableName("kl_version_info")
 public class VersionInfo implements Serializable {
@@ -48,6 +48,11 @@ public class VersionInfo implements Serializable {
      */
     private String modifier;
 
+    /**
+     * 产品类型(1:云平台内部;2:云平台外部;3:icss;4:智能分诊;5:数据服务模式;6:智能预问诊)
+     */
+    private Integer productType;
+
     /**
      * 名称
      */
@@ -107,6 +112,13 @@ public class VersionInfo implements Serializable {
     public void setModifier(String modifier) {
         this.modifier = modifier;
     }
+    public Integer getProductType() {
+        return productType;
+    }
+
+    public void setProductType(Integer productType) {
+        this.productType = productType;
+    }
     public String getName() {
         return name;
     }
@@ -145,6 +157,7 @@ public class VersionInfo implements Serializable {
         ", gmtModified=" + gmtModified +
         ", creator=" + creator +
         ", modifier=" + modifier +
+        ", productType=" + productType +
         ", name=" + name +
         ", refreshTime=" + refreshTime +
         ", status=" + status +

+ 60 - 0
prec-service/src/main/java/com/diagbot/dto/VersionDetailDTO.java

@@ -0,0 +1,60 @@
+package com.diagbot.dto;
+
+import lombok.Getter;
+import lombok.Setter;
+
+import java.util.Date;
+
+/**
+ * 
+ * @author wangfeng
+ * @Description: TODO
+ * @date 2018年11月21日 上午11:12:12
+ */
+@Getter
+@Setter
+public class VersionDetailDTO {
+	
+	private Long id;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+   // private String creator;
+
+  
+    /**
+     * 版本主表id
+     */
+    private Long versionId;
+
+    /**
+     * 标题
+     */
+    private String title;
+
+    /**
+     * 描述
+     */
+    private String description;
+
+    /**
+     * 排序号
+     */
+    private String orderNo;
+
+    /**
+     * 1:启动,0:不启用
+     */
+  //  private String status;
+
+    /**
+     * 备注
+     */
+    private String remark;
+}

+ 48 - 0
prec-service/src/main/java/com/diagbot/dto/VersionWrapperDTO.java

@@ -0,0 +1,48 @@
+package com.diagbot.dto;
+
+import lombok.Getter;
+import lombok.Setter;
+
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 
+ * @author wangfeng
+ * @Description: TODO
+ * @date 2018年11月21日 上午11:09:33
+ */
+@Getter
+@Setter
+public class VersionWrapperDTO {
+	
+	private Long id;
+	/**
+	 * 记录创建时间
+	 */
+	private Date gmtCreate;
+
+	/**
+	 * 创建人,0表示无创建人值
+	 */
+	private String creator;
+
+	/**
+	 * 名称
+	 */
+	private String name;
+
+	private Date refreshTime;
+
+	/**
+	 * 1:启动,0:不启用
+	 */
+	private String status;
+
+	private List<VersionDetailDTO> detail;
+	/**
+	 * 备注
+	 */
+	private String remark;
+
+}

+ 18 - 0
prec-service/src/main/java/com/diagbot/vo/VersionVO.java

@@ -0,0 +1,18 @@
+package com.diagbot.vo;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @Description: 版本信息
+ * @author: gaodm
+ * @time: 2019/8/7 13:26
+ */
+@Getter
+@Setter
+public class VersionVO {
+    /**
+     * 产品类型(1:云平台内部;2:云平台外部;3:icss;4:智能分诊;5:数据服务模式;6:智能预问诊)
+     */
+    private Integer productType;
+}

+ 8 - 0
triage-service/src/main/java/com/diagbot/client/AiptServiceClient.java

@@ -7,9 +7,11 @@ import com.diagbot.dto.ConceptBaseDTO;
 import com.diagbot.dto.ConceptRetrievalDTO;
 import com.diagbot.dto.PartSymptomDTO;
 import com.diagbot.dto.RespDTO;
+import com.diagbot.dto.VersionWrapperDTO;
 import com.diagbot.vo.ConceptUsualVO;
 import com.diagbot.vo.PartSymptomVO;
 import com.diagbot.vo.RetrievalVO;
+import com.diagbot.vo.VersionVO;
 import org.springframework.cloud.openfeign.FeignClient;
 import org.springframework.web.bind.annotation.PostMapping;
 import org.springframework.web.bind.annotation.RequestBody;
@@ -49,4 +51,10 @@ public interface AiptServiceClient {
     @PostMapping(value = "/clinicaldata/processData")
     RespDTO<ResponseData> aiptData(@RequestBody SearchData searchData);
 
+    /**
+     * 获取版本信息
+     */
+    @PostMapping("/versionInfo/getVersionInfoAlls")
+    RespDTO<VersionWrapperDTO> getVersionInfoAlls(@RequestBody VersionVO versionVO);
+
 }

+ 11 - 0
triage-service/src/main/java/com/diagbot/client/hystrix/AiptServiceHystrix.java

@@ -7,9 +7,11 @@ import com.diagbot.dto.ConceptBaseDTO;
 import com.diagbot.dto.ConceptRetrievalDTO;
 import com.diagbot.dto.PartSymptomDTO;
 import com.diagbot.dto.RespDTO;
+import com.diagbot.dto.VersionWrapperDTO;
 import com.diagbot.vo.ConceptUsualVO;
 import com.diagbot.vo.PartSymptomVO;
 import com.diagbot.vo.RetrievalVO;
+import com.diagbot.vo.VersionVO;
 import lombok.extern.slf4j.Slf4j;
 import org.springframework.stereotype.Component;
 
@@ -48,4 +50,13 @@ public class AiptServiceHystrix implements AiptServiceClient {
         return null;
     }
 
+    /**
+     * 获取版本信息
+     */
+    @Override
+    public RespDTO<VersionWrapperDTO> getVersionInfoAlls(VersionVO versionVO){
+        log.error("【hystrix】调用{}异常", "getVersionInfoAlls");
+        return null;
+    }
+
 }

+ 60 - 0
triage-service/src/main/java/com/diagbot/dto/VersionDetailDTO.java

@@ -0,0 +1,60 @@
+package com.diagbot.dto;
+
+import lombok.Getter;
+import lombok.Setter;
+
+import java.util.Date;
+
+/**
+ * 
+ * @author wangfeng
+ * @Description: TODO
+ * @date 2018年11月21日 上午11:12:12
+ */
+@Getter
+@Setter
+public class VersionDetailDTO {
+	
+	private Long id;
+
+    /**
+     * 记录创建时间
+     */
+    private Date gmtCreate;
+
+    /**
+     * 创建人,0表示无创建人值
+     */
+   // private String creator;
+
+  
+    /**
+     * 版本主表id
+     */
+    private Long versionId;
+
+    /**
+     * 标题
+     */
+    private String title;
+
+    /**
+     * 描述
+     */
+    private String description;
+
+    /**
+     * 排序号
+     */
+    private String orderNo;
+
+    /**
+     * 1:启动,0:不启用
+     */
+  //  private String status;
+
+    /**
+     * 备注
+     */
+    private String remark;
+}

+ 48 - 0
triage-service/src/main/java/com/diagbot/dto/VersionWrapperDTO.java

@@ -0,0 +1,48 @@
+package com.diagbot.dto;
+
+import lombok.Getter;
+import lombok.Setter;
+
+import java.util.Date;
+import java.util.List;
+
+/**
+ * 
+ * @author wangfeng
+ * @Description: TODO
+ * @date 2018年11月21日 上午11:09:33
+ */
+@Getter
+@Setter
+public class VersionWrapperDTO {
+	
+	private Long id;
+	/**
+	 * 记录创建时间
+	 */
+	private Date gmtCreate;
+
+	/**
+	 * 创建人,0表示无创建人值
+	 */
+	private String creator;
+
+	/**
+	 * 名称
+	 */
+	private String name;
+
+	private Date refreshTime;
+
+	/**
+	 * 1:启动,0:不启用
+	 */
+	private String status;
+
+	private List<VersionDetailDTO> detail;
+	/**
+	 * 备注
+	 */
+	private String remark;
+
+}

+ 18 - 0
triage-service/src/main/java/com/diagbot/vo/VersionVO.java

@@ -0,0 +1,18 @@
+package com.diagbot.vo;
+
+import lombok.Getter;
+import lombok.Setter;
+
+/**
+ * @Description: 版本信息
+ * @author: gaodm
+ * @time: 2019/8/7 13:26
+ */
+@Getter
+@Setter
+public class VersionVO {
+    /**
+     * 产品类型(1:云平台内部;2:云平台外部;3:icss;4:智能分诊;5:数据服务模式;6:智能预问诊)
+     */
+    private Integer productType;
+}