From 1d5b344c8be498c9989f3fe2e9846b1dcc919cb8 Mon Sep 17 00:00:00 2001 From: Shuxia Ning <NingShuxia0927@outlook.com> Date: 星期二, 06 八月 2024 17:29:23 +0800 Subject: [PATCH] 累计运行时长更新 --- IStation.Application/01-ch/01-schedule/Schedule_Controller.cs | 12 +++++------- 1 files changed, 5 insertions(+), 7 deletions(-) diff --git a/IStation.Application/01-ch/02-schedule/Schedule_Controller.cs b/IStation.Application/01-ch/01-schedule/Schedule_Controller.cs similarity index 97% rename from IStation.Application/01-ch/02-schedule/Schedule_Controller.cs rename to IStation.Application/01-ch/01-schedule/Schedule_Controller.cs index 9ad88a5..6048dc7 100644 --- a/IStation.Application/01-ch/02-schedule/Schedule_Controller.cs +++ b/IStation.Application/01-ch/01-schedule/Schedule_Controller.cs @@ -1,13 +1,11 @@ -锘縰sing static IStation.Algorithm.ScheduleHelper; - -namespace IStation.Application +锘縩amespace IStation.Application { /// <summary> /// 闄堣杈撴按璋冨害 /// </summary> [AllowAnonymous] [Route("OpenApi/Dispatch/Solution")] - [ApiDescriptionSettings("Schedule", Name = "杈撴按璋冨害", Order = 1)] + [ApiDescriptionSettings("Schedule", Name = "璋冨害", Order = 1000)] public class Schedule_Controller : IDynamicApiController, ITransient { private readonly Service.ScheduleRequest _service_schedule_request = new(); @@ -79,7 +77,7 @@ GlobalHelper.GetStationOpenFlagList(zy_scada_list, out List<int> station1_open_flag_list, out List<int> station2_open_flag_list); GlobalHelper.GetStationMaintenanceFlagList(zy_scada_list, out List<int> station1_maintenance_flag_list, out List<int> station2_maintenance_flag_list); GlobalHelper.GetFlagInletWaterLevelDict(zy_scada_list, out Dictionary<int, double> station1_flag_inlet_water_level_dict, out Dictionary<int, double> station2_flag_inlet_water_level_dict); - GlobalHelper.GetFlagCumulativeRunTimeDict(out Dictionary<int, double> station1_flag_cumulative_run_time_dict, out Dictionary<int, double> station2_flag_cumulative_run_time_dict); + //GlobalHelper.GetFlagCumulativeRuntimeDict(out Dictionary<int, double> station1_flag_cumulative_run_time_dict, out Dictionary<int, double> station2_flag_cumulative_run_time_dict); log_title = "鏈烘车妫�淇�"; if (station1_maintenance_flag_list != null && station1_maintenance_flag_list.Any()) @@ -100,11 +98,11 @@ var helper = new Algorithm.ScheduleHelper(); helper.Initial(station1_open_flag_list, station1_schedule_config); - var optimal_combine1 = helper.GetOptAnaCombine(station1, station1_same_type_flag_group_first, station1_flag_inlet_water_level_dict, station1_flag_cumulative_run_time_dict, target_flow1, target_head1); + var optimal_combine1 = helper.GetOptAnaCombine(station1, station1_same_type_flag_group_first, station1_flag_inlet_water_level_dict, target_flow1, target_head1); helper.Initial(station2_open_flag_list, station2_schedule_config); - var optimal_combine2 = helper.GetOptAnaCombine(station2, station2_same_type_flag_group_first, station2_flag_inlet_water_level_dict, station2_flag_cumulative_run_time_dict, target_flow2, target_head2); + var optimal_combine2 = helper.GetOptAnaCombine(station2, station2_same_type_flag_group_first, station2_flag_inlet_water_level_dict, target_flow2, target_head2); var schedule_request = new Model.ScheduleRequest { -- Gitblit v1.9.3