瀏覽代碼

别名导入再修改

rgb 6 年之前
父節點
當前提交
85abff5f2b
共有 1 個文件被更改,包括 3 次插入3 次删除
  1. 3 3
      icssman-service/src/main/java/com/diagbot/facade/RetrievalFacade.java

+ 3 - 3
icssman-service/src/main/java/com/diagbot/facade/RetrievalFacade.java

@@ -117,17 +117,17 @@ public class RetrievalFacade extends RetrievalServiceImpl {
     public Boolean addTagRetrieval(AddTagRetrievalVO addTagRetrievalVO) {
     public Boolean addTagRetrieval(AddTagRetrievalVO addTagRetrievalVO) {
         if (addTagRetrievalVO.getItemList().stream().distinct().count() != addTagRetrievalVO.getItemList().size()) {
         if (addTagRetrievalVO.getItemList().stream().distinct().count() != addTagRetrievalVO.getItemList().size()) {
             throw new CommonException(CommonErrorCode.RPC_ERROR,
             throw new CommonException(CommonErrorCode.RPC_ERROR,
-                    "同义词中存在重复数据("+addTagRetrievalVO.getQuestionName()+")!");
+                    "导入本体/同义/子项名称重复("+addTagRetrievalVO.getQuestionName()+")!");
         }
         }
         
         
         long typeOneCou = addTagRetrievalVO.getItemList().stream().filter(i->i.getRetrievalType()==1).count();
         long typeOneCou = addTagRetrievalVO.getItemList().stream().filter(i->i.getRetrievalType()==1).count();
         if(typeOneCou==0){
         if(typeOneCou==0){
         	throw new CommonException(CommonErrorCode.RPC_ERROR,
         	throw new CommonException(CommonErrorCode.RPC_ERROR,
-                    "本体必须传("+addTagRetrievalVO.getQuestionName()+")!");
+                    "导入数据不完整("+addTagRetrievalVO.getQuestionName()+")!");
         }
         }
         if(typeOneCou>1){
         if(typeOneCou>1){
         	throw new CommonException(CommonErrorCode.RPC_ERROR,
         	throw new CommonException(CommonErrorCode.RPC_ERROR,
-                    "本体只能有一个("+addTagRetrievalVO.getQuestionName()+")!");
+                    "导入本体类型数据重复("+addTagRetrievalVO.getQuestionName()+")!");
         }
         }
 
 
         Date now = DateUtil.now();
         Date now = DateUtil.now();