Browse Source

fix:过滤手工数据空值

zqbao 8 months ago
parent
commit
5c1d71a9ba
1 changed files with 2 additions and 2 deletions
  1. 2 2
      controllers/target.go

+ 2 - 2
controllers/target.go

@@ -3929,13 +3929,13 @@ func (this *TargetController) ExcelDataAdd() {
 				closeVal := req.Data[i][j].(map[string]interface{})
 				if item, ok := secNameToDateMap[secNameList[j-1]]; ok {
 					tmpVal, ok := closeVal["m"].(string)
-					if !ok {
+					if !ok || tmpVal == "" {
 						continue
 					}
 					item[date] = tmpVal
 				} else {
 					tmpVal, ok := closeVal["m"].(string)
-					if !ok {
+					if !ok || tmpVal == "" {
 						continue
 					}
 					secNameToDateMap[secNameList[j-1]] = map[string]string{