浏览代码

no message

Jianghan 1 年之前
父节点
当前提交
9f408d29d1
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      CMPlatform/service/data_ent.go

+ 1 - 1
CMPlatform/service/data_ent.go

@@ -126,7 +126,7 @@ func ImportDataByExcel(mf multipart.File, eid int64, entid string) (int, int64,
 			}()
 			tmp := map[string]interface{}{}
 			AreaM, IndustryM, WtM := CodeFieldFuc(eid)
-			for index, cell := range row.Cells {
+			for index, cell := range cells {
 				if val := cell.Value; val != "" {
 					if fMap[index] == "infoid" {
 						if mongodb.IsObjectIdHex(val) {