From 22428432f8570f59362eff0fbc0a64371273c7e1 Mon Sep 17 00:00:00 2001 From: keke Date: Wed, 13 Sep 2023 00:13:45 +0800 Subject: [PATCH] =?UTF-8?q?[FE=20API]=20=E4=BF=AE=E6=94=B9=E6=AD=B7?= =?UTF-8?q?=E5=8F=B2=E8=B3=87=E6=96=99=E5=8C=AF=E5=87=BA=E5=A0=B1=E8=A1=A8?= =?UTF-8?q?=20=E6=AF=8F=E5=80=8B=E5=B7=A5=E4=BD=9C=E8=A1=A8=E7=AC=AC?= =?UTF-8?q?=E4=B8=80=E8=A1=8C=E9=83=BD=E6=9C=89=E6=A8=99=E9=A0=AD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- FrontendWebApi/ApiControllers/HistoryController.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/FrontendWebApi/ApiControllers/HistoryController.cs b/FrontendWebApi/ApiControllers/HistoryController.cs index b45c3b4..bfbb052 100644 --- a/FrontendWebApi/ApiControllers/HistoryController.cs +++ b/FrontendWebApi/ApiControllers/HistoryController.cs @@ -262,6 +262,7 @@ namespace FrontendWebApi.ApiControllers } if (d.type != lastDeviceItem) { + RowPosition = 0; lastDeviceItem = d.type; sheet = workbook.CreateSheet($"{building.Where(x => x.building_tag == lhe.device_number.Split("_")[1]).Select(x => x.full_name).FirstOrDefault()}{"_" + d.type}"); #region set cell @@ -282,7 +283,7 @@ namespace FrontendWebApi.ApiControllers cell.SetCellValue("記錄時間"); cell.CellStyle = styleLine12; #endregion - RowPosition = 0; + RowPosition = 1; } else { RowPosition += 1;