feat: 门店员工与排班管理上线

This commit is contained in:
2025-12-04 09:32:03 +08:00
parent 1a5209a8b1
commit 19422df0f1
31 changed files with 1265 additions and 7 deletions

View File

@@ -26,6 +26,16 @@ public interface IMerchantRepository
/// </summary>
Task<IReadOnlyList<MerchantStaff>> GetStaffAsync(long merchantId, long tenantId, CancellationToken cancellationToken = default);
/// <summary>
/// 获取指定门店的员工列表。
/// </summary>
Task<IReadOnlyList<MerchantStaff>> GetStaffByStoreAsync(long storeId, long tenantId, CancellationToken cancellationToken = default);
/// <summary>
/// 依据标识获取员工。
/// </summary>
Task<MerchantStaff?> FindStaffByIdAsync(long staffId, long tenantId, CancellationToken cancellationToken = default);
/// <summary>
/// 获取指定商户的合同列表。
/// </summary>
@@ -75,6 +85,11 @@ public interface IMerchantRepository
/// </summary>
Task DeleteMerchantAsync(long merchantId, long tenantId, CancellationToken cancellationToken = default);
/// <summary>
/// 删除员工。
/// </summary>
Task DeleteStaffAsync(long staffId, long tenantId, CancellationToken cancellationToken = default);
/// <summary>
/// 记录审核日志。
/// </summary>

View File

@@ -72,9 +72,14 @@ public interface IStoreRepository
Task<StoreTable?> FindTableByIdAsync(long tableId, long tenantId, CancellationToken cancellationToken = default);
/// <summary>
/// 获取门店员工排班。
/// 获取门店员工排班(可选时间范围)
/// </summary>
Task<IReadOnlyList<StoreEmployeeShift>> GetShiftsAsync(long storeId, long tenantId, CancellationToken cancellationToken = default);
Task<IReadOnlyList<StoreEmployeeShift>> GetShiftsAsync(long storeId, long tenantId, DateTime? from = null, DateTime? to = null, CancellationToken cancellationToken = default);
/// <summary>
/// 依据标识获取排班。
/// </summary>
Task<StoreEmployeeShift?> FindShiftByIdAsync(long shiftId, long tenantId, CancellationToken cancellationToken = default);
/// <summary>
/// 新增门店。
@@ -136,6 +141,11 @@ public interface IStoreRepository
/// </summary>
Task AddShiftsAsync(IEnumerable<StoreEmployeeShift> shifts, CancellationToken cancellationToken = default);
/// <summary>
/// 更新排班。
/// </summary>
Task UpdateShiftAsync(StoreEmployeeShift shift, CancellationToken cancellationToken = default);
/// <summary>
/// 持久化变更。
/// </summary>
@@ -166,6 +176,11 @@ public interface IStoreRepository
/// </summary>
Task DeleteTableAsync(long tableId, long tenantId, CancellationToken cancellationToken = default);
/// <summary>
/// 删除排班。
/// </summary>
Task DeleteShiftAsync(long shiftId, long tenantId, CancellationToken cancellationToken = default);
/// <summary>
/// 更新门店。
/// </summary>