Ver código fonte

导出异常处理

lzk 1 semana atrás
pai
commit
c001296b30

+ 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;
                     }
                 }