Asoka.Wang 21f044712c 1
2025-08-27 18:39:19 +08:00

22 lines
782 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Threading.Tasks;
using NPP.SmartSchedue.Api.Contracts.Domain.Time;
using ZhonTai.Admin.Core.Repositories;
namespace NPP.SmartSchedue.Api.Contracts;
/// <summary>
/// 班次规则仓储接口
/// </summary>
public interface IShiftRuleRepository : IRepositoryBase<ShiftRuleEntity>
{
/// <summary>
/// 获取适用于特定人员、日期和班次的排班规则
/// </summary>
/// <param name="personnelId">人员ID</param>
/// <param name="targetDate">目标日期</param>
/// <param name="shiftId">班次ID可选</param>
/// <returns>适用的排班规则列表</returns>
Task<List<ShiftRuleEntity>> GetApplicableRulesAsync(long personnelId, DateTime targetDate, long? shiftId);
}