Browse Source

fix:手工数据导入模板2对于指标名称是空的做过滤,且不作为错误提示

Roc 2 months ago
parent
commit
f34a2fa6df
1 changed files with 5 additions and 0 deletions
  1. 5 0
      services/data/manual.go

+ 5 - 0
services/data/manual.go

@@ -432,6 +432,11 @@ func ImportManualData(path string, sysUser *system.Admin) (successCount, failCou
 			tmpValue = val
 			break
 		}
+		// 指标名称是空的,说明是空列
+		if v.IndexName == `` {
+			continue
+		}
+
 		if !strings.Contains(strings.Join(classifyNameStrList, ","), v.ClassName) {
 			failItem := &models.EdbdataImportFail{
 				ClassifyName: v.ClassName,