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