瀏覽代碼

Merge branch 'bzq1/execl-edit' of eta_server/eta_api into debug

鲍自强 9 月之前
父節點
當前提交
630860df9d
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      controllers/target.go

+ 2 - 2
controllers/target.go

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