浏览代码

导出优化。。。。

wangfeng 5 年之前
父节点
当前提交
476e838e4d
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      knowledgeman-service/src/main/java/com/diagbot/facade/DiagnoseImportFacade.java

+ 2 - 2
knowledgeman-service/src/main/java/com/diagbot/facade/DiagnoseImportFacade.java

@@ -359,7 +359,7 @@ public class DiagnoseImportFacade {
 		String typeName = "";
 		
 		typeName = DiagnoseFeatureTypeEnum.getName(type);
-		if(typeName.isEmpty()){
+		if(typeName == null){
 			typeName = DiagnoseTypeEnum.getName(type);
 		}
 		return typeName;
@@ -373,7 +373,7 @@ public class DiagnoseImportFacade {
 		String relation = "";
 		typeName = DiagnoseFeatureTypeEnum.getName(type);
 		relation =  diagnose.getRelation();
-		if(typeName.isEmpty()){
+		if(typeName == null ){
 			relation =  diagnose.getFormula();
 		}
 		return relation;