Browse Source

导出优化。。。。

wangfeng 5 years ago
parent
commit
476e838e4d

+ 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;