first commit

This commit is contained in:
yanpeng200212
2026-10-08 10:43:59 +08:00
commit 8430ba0452
288 changed files with 29595 additions and 0 deletions
@@ -0,0 +1,18 @@
using FreeSql.DataAnnotations;
using F9WebAiTest.Domain.Common;
namespace F9WebAiTest.Domain.Entities.Attendance;
/// <summary>考勤打卡记录</summary>
[Table(Name = "AttendanceRecords")]
[Index("IX_AttendanceRecords_EmployeeId_WorkDate", "EmployeeId, WorkDate", IsUnique = true)]
public class AttendanceRecord : BaseEntity
{
public long EmployeeId { get; set; }
public DateTime WorkDate { get; set; } // 考勤日期
public DateTime? SignInTime { get; set; } // 签到时间
public DateTime? SignOutTime { get; set; } // 签退时间
public string SignInStatus { get; set; } = ""; // 正常/迟到/缺卡
public string SignOutStatus { get; set; } = ""; // 正常/早退/缺卡
public string Remark { get; set; } = "";
}
@@ -0,0 +1,18 @@
using FreeSql.DataAnnotations;
using F9WebAiTest.Domain.Common;
namespace F9WebAiTest.Domain.Entities.Attendance;
/// <summary>请假审批节点(多级审批流程,OrderNo 表示审批顺序)</summary>
[Table(Name = "LeaveApprovers")]
[Index("IX_LeaveApprovers_LeaveId_OrderNo", "LeaveId, OrderNo", IsUnique = true)]
public class LeaveApprover : BaseEntity
{
public long LeaveId { get; set; }
public long ApproverId { get; set; } // 审批人ID
public string ApproverName { get; set; } = ""; // 审批人姓名(冗余)
public int OrderNo { get; set; } // 序号(从1开始,表示审批顺序)
public string Status { get; set; } = "待审批"; // 待审批/已批准/已驳回
public string ApproveRemark { get; set; } = "";
public DateTime? ApprovedAt { get; set; }
}
@@ -0,0 +1,21 @@
using FreeSql.DataAnnotations;
using F9WebAiTest.Domain.Common;
namespace F9WebAiTest.Domain.Entities.Attendance;
/// <summary>请假申请</summary>
[Table(Name = "LeaveRequests")]
public class LeaveRequest : BaseEntity
{
public long EmployeeId { get; set; }
public string Type { get; set; } = "事假"; // 事假/病假/年假/调休/婚假/产假
public DateTime StartTime { get; set; }
public DateTime EndTime { get; set; }
public string Reason { get; set; } = "";
public string Status { get; set; } = "待审批"; // 待审批/已批准/已驳回
public int CurrentOrderNo { get; set; } = 1; // 当前审批到第几步(多级审批)
public long? ApproverId { get; set; }
public string ApproverName { get; set; } = "";
public string ApproveRemark { get; set; } = "";
public DateTime? ApprovedAt { get; set; }
}