|
@@ -105,7 +105,7 @@ public class KlConceptStaticFacade extends KlConceptStaticServiceImpl {
|
|
|
.eq("lib_name", staticKnowledgeVO.getName())
|
|
|
.eq("lib_type", type), false);
|
|
|
|
|
|
- Integer sameType = null;
|
|
|
+ Integer sameType = 0;
|
|
|
//标准词不存在,同名的是否存在,仅检验检查
|
|
|
if (concept == null) {
|
|
|
//同名静态知识互取
|
|
@@ -118,7 +118,7 @@ public class KlConceptStaticFacade extends KlConceptStaticServiceImpl {
|
|
|
} else if (type.equals(LexiconEnum.PacsSubName.getKey())) {
|
|
|
sameType = LexiconEnum.PacsName.getKey();
|
|
|
}
|
|
|
- if (sameType != null) {
|
|
|
+ if (!sameType.equals(0)) {
|
|
|
concept = klConceptFacade.getOne(new QueryWrapper<KlConcept>()
|
|
|
.eq("is_deleted", IsDeleteEnum.N.getKey())
|
|
|
.eq("lib_name", staticKnowledgeVO.getName())
|