Browse Source

fix:管理规则提取

zqbao 6 months ago
parent
commit
31988a2afb
1 changed files with 3 additions and 1 deletions
  1. 3 1
      services/excel/luck_sheet_table.go

+ 3 - 1
services/excel/luck_sheet_table.go

@@ -218,7 +218,9 @@ func generateRuleScopeIndexMap(items []*models.ExcelInfoRuleMappingView) (ruleSc
 		}
 		if len(coords) == 2 {
 			x, y := coordIntArr[0]-1, coordIntArr[1]-1
-			ruleScopeMap[y] = make(map[int]int)
+			if _, ok := ruleScopeMap[y]; !ok {
+				ruleScopeMap[y] = make(map[int]int)
+			}
 			ruleScopeMap[y][x] = item.ExcelInfoRuleMappingId
 		}
 	}