diff --git a/FrontendWebApi/ApiControllers/HydroMeterController.cs b/FrontendWebApi/ApiControllers/HydroMeterController.cs index 6904700..50f94f5 100644 --- a/FrontendWebApi/ApiControllers/HydroMeterController.cs +++ b/FrontendWebApi/ApiControllers/HydroMeterController.cs @@ -841,6 +841,7 @@ namespace FrontendWebApi.ApiControllers bool total_flag = false; if (input.Mode == HydroMeterInputSearchMode.Custom) { + input.Mode = HydroMeterInputSearchMode.All; result_for_sum = ElectricListEachTotal(input).Result.Value.Data.ToList(); flag = false; total_flag = true; @@ -1038,11 +1039,16 @@ namespace FrontendWebApi.ApiControllers { flag = false; } + if (r.device_full_name == "綜合大樓總盤") + { + continue; + } string buildingName = r.building_name; string floorTag = r.floor_tag; string deviceFullName = r.device_full_name; columnIndex = 0; + // 這兩個盤不納入該棟總計 if (last_device == "電機館分盤" || last_device == "薄膜分盤") { flag = false;