Browse Source

导出异常处理

lzk 3 days ago
parent
commit
c001296b30
1 changed files with 1 additions and 1 deletions
  1. 1 1
      3.Service/XYY.Service.Standard.Order/FBA/FBAOrderService.cs

+ 1 - 1
3.Service/XYY.Service.Standard.Order/FBA/FBAOrderService.cs

@@ -1842,7 +1842,7 @@ where Id in @Ids", 600, new { Ids = Ids });
                         case 8:
                             cell.CellStyle = styleCollectCenter;
                             cell.SetCellValue(dbData.FirstOrDefault().CustomerConfirmBillWeight.ToString("0.00"));
-                            if (RowIndex > 2) { sheet.AddMergedRegion(new CellRangeAddress(startRow, RowIndex - 1, 8, 8)); }
+                            if ((RowIndex- startRow) > 1) { sheet.AddMergedRegion(new CellRangeAddress(startRow, RowIndex - 1, 8, 8)); }
                             break;
                     }
                 }