作者 庄敏学

读取图片

... ... @@ -308,7 +308,7 @@ func (srv ExcelDataService) ImportCost(importDataCommand *command.ImportDataComm
},
}
for key, v := range excelData {
_, mBytes, err := f.GetPicture(f.GetSheetName(index), "E"+fmt.Sprintf("%v", excelImport.RowBegin+key))
_, mBytes, err := f.GetPicture(f.GetSheetName(index), "E"+fmt.Sprintf("%v", excelImport.RowBegin+key+1))
if err != nil {
return nil, application.ThrowError(application.INTERNAL_SERVER_ERROR, "读取图片失败")
}
... ...