|
@@ -315,7 +315,9 @@ func generateRuleScopeIndexMap(items []*excel.ExcelInfoRuleMappingView) (ruleSco
|
|
|
}
|
|
|
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
|
|
|
}
|
|
|
}
|