|
@@ -1059,14 +1059,17 @@ func (this *CoalMineDataController) Coastal() {
|
|
|
for _, sheet := range req.SheetData {
|
|
|
sheetName = sheet.Name
|
|
|
|
|
|
- maxCol := sheet.MaxCol
|
|
|
- for i := 0; i < maxCol; i++ {
|
|
|
+ maxRow := sheet.MaxRow
|
|
|
+ for i := 0; i < maxRow; i++ {
|
|
|
if i == 0 {
|
|
|
row := sheet.Rows[i]
|
|
|
cells := row.Cells
|
|
|
for k, cell := range cells {
|
|
|
if k > 0 && k < 9 {
|
|
|
text := cell.Value
|
|
|
+ if text == "" {
|
|
|
+ continue
|
|
|
+ }
|
|
|
groupMap[k] = text
|
|
|
var item models.BaseFromCoalmineMapping
|
|
|
|