using HighWayIot.Config; using HighWayIot.Log4net; using HighWayIot.Repository.service; using HighWayIot.Repository.service.Impl; using System; namespace HighWayIot { internal class Program { private static LogHelper logger = LogHelper.Instance; private static AppConfig appConfig = AppConfig.Instance; private static IExecutePlanInfoService execPlanInfoService = new ExecutePlanInfoServiceImpl(); static void Main(string[] args) { logger.Info("初始化启动"); var info = execPlanInfoService.GetStationHourAmount(appConfig.stationCode); foreach (var item in info) { Console.WriteLine($"productLine_code:{item.productLine_code}"); } } } }