Преглед на файлове

检索添加QuestionType

wangyu преди 6 години
родител
ревизия
bc72ff4799

+ 1 - 0
aipt-service/src/main/java/com/diagbot/dto/ConceptRetrievalDTO.java

@@ -19,4 +19,5 @@ public class ConceptRetrievalDTO {
     private Integer showType;//显示类型(1本体,2同义词)
     private Long libTypeId;//标签类型id
     private String libTypeName;//标签类型名称
+    private Integer type;//questionType
 }

+ 1 - 0
aipt-service/src/main/java/com/diagbot/facade/ConceptFacade.java

@@ -213,6 +213,7 @@ public class ConceptFacade extends ConceptServiceImpl {
             if(conceptRetrievalDTO.getSameName() != null && conceptRetrievalDTO.getSameName().equals(conceptRetrievalDTO.getSelfName())){
                 conceptRetrievalDTO.setSameName(null);
             }
+            conceptRetrievalDTO.setType(ParamConvertUtil.libConvert2Concept(conceptRetrievalDTO.getLibTypeId().intValue()));
         }
         return conceptRetrievalDTOS;
     }

+ 1 - 0
icss-service/src/main/java/com/diagbot/dto/ConceptRetrievalDTO.java

@@ -19,4 +19,5 @@ public class ConceptRetrievalDTO {
     private Integer showType;//显示类型(1本体,2同义词)
     private Long libTypeId;//标签类型id
     private String libTypeName;//标签类型名称
+    private Integer type;//questionType
 }

+ 2 - 0
icss-service/src/main/java/com/diagbot/dto/RetrievalDTO.java

@@ -25,4 +25,6 @@ public class RetrievalDTO {
     private Long libTypeId;
     //标签类型名称
     private String libTypeName;
+    //icss标签type
+    private Integer type;
 }

+ 1 - 0
icss-service/src/main/java/com/diagbot/facade/RetrievalFacade.java

@@ -81,6 +81,7 @@ public class RetrievalFacade {
                 }
                 retrievalDTO.setLibTypeId(conceptRetrievalDTO.getLibTypeId());
                 retrievalDTO.setLibTypeName(conceptRetrievalDTO.getLibTypeName());
+                retrievalDTO.setType(conceptRetrievalDTO.getType());
                 retrievalDTO.setShowType(conceptRetrievalDTO.getShowType());
                 retrievalDTOS.add(retrievalDTO);
             }