using System; using System.Collections.Generic; using CncModels.Dto.Dashboard; namespace CncRepository.Interface { /// /// 仪表盘统计查询仓储接口(跨表聚合) /// public interface IDashboardRepository { DashboardSummaryResponse GetSummary(); List GetWorkshopProduction(DateTime startDate, DateTime endDate); List GetMachineRank(DateTime startDate, DateTime endDate, int top, string sortOrder = "desc"); List GetWorkerRank(DateTime startDate, DateTime endDate, int top, string sortOrder = "desc"); List GetProductionTrend(int days); object GetMachineStatusDistribution(); List GetRecentAlerts(int count); /// NC程序产量排行TOP N List GetProgramRank(DateTime startDate, DateTime endDate, int top, string sortOrder = "desc"); /// NC程序产量分布(饼图数据) List GetProgramDistribution(DateTime startDate, DateTime endDate, int top = 10); } }