Jianghan 1 жил өмнө
parent
commit
90ec4b27ef

+ 1 - 1
CMPlatform/service/data_ent.go

@@ -100,7 +100,7 @@ func ImportDataByExcel(mf multipart.File, eid int64, entid string) (int, int64,
 	fMap := make(map[int]string) //字段位置
 	fMap := make(map[int]string) //字段位置
 	sheet := xls.Sheets[0]
 	sheet := xls.Sheets[0]
 	rows := sheet.Rows
 	rows := sheet.Rows
-	ch := make(chan bool, 10) // 协程处理
+	ch := make(chan bool, 20) // 协程处理
 	wg := &sync.WaitGroup{}
 	wg := &sync.WaitGroup{}
 	for rn, row := range rows {
 	for rn, row := range rows {
 		if rn == 0 {
 		if rn == 0 {