You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
haoliang-net/src/CncRepository/Interface/IDailyProductionRepository.cs

30 lines
1.7 KiB
C#

using System;
using System.Collections.Generic;
using CncModels.Dto;
using CncModels.Dto.Production;
using CncModels.Entity;
namespace CncRepository.Interface
{
/// <summary>
/// cnc_daily_production 产量仓储接口(业务库)
/// </summary>
public interface IDailyProductionRepository
{
DailyProduction GetById(int id);
PagedResult<DailyProductionListItem> GetList(ProductionQuery query);
List<DailyProduction> GetByMachineAndDate(int machineId, DateTime date);
List<DailyProduction> GetByDateRange(DateTime startDate, DateTime endDate);
decimal GetTotalByDateRange(DateTime startDate, DateTime endDate, int? workshopId);
decimal GetTotalByWorkerAndDateRange(int workerId, DateTime startDate, DateTime endDate);
List<DailyProduction> GetMachineRankByDateRange(DateTime startDate, DateTime endDate, int top);
List<DailyProduction> GetWorkerRankByDateRange(DateTime startDate, DateTime endDate, int top);
MachineProductionSummaryResponse GetMachineSummary(DateTime startDate, DateTime endDate, int? workshopId);
List<MachineProductionListItem> GetMachineList(DateTime startDate, DateTime endDate, int? workshopId, string machineIds);
WorkerProductionSummaryResponse GetWorkerSummary(DateTime startDate, DateTime endDate);
List<WorkerProductionListItem> GetWorkerList(DateTime startDate, DateTime endDate, int? workerId, string sortOrder = "desc");
ProgramProductionSummaryResponse GetProgramSummary(DateTime startDate, DateTime endDate, int? workshopId);
List<ProgramProductionListItem> GetProgramList(DateTime startDate, DateTime endDate, string programNames);
}
}