Browse Source

fix:批量添加错误

zqbao 7 months ago
parent
commit
6d1ed9852f
1 changed files with 3 additions and 0 deletions
  1. 3 0
      services/hq_index.go

+ 3 - 0
services/hq_index.go

@@ -104,6 +104,9 @@ func ReadHqExcel(filePath string) {
 					continue
 				}
 				// 没有数据
+				if len(rows[row]) <= col {
+					continue
+				}
 				if rows[row][col] == "" {
 					continue
 				}