整体调整了功能

This commit is contained in:
2026-01-13 15:03:02 +08:00
parent 63a768bd80
commit f1a892281b
82 changed files with 11226 additions and 291 deletions

View File

@@ -0,0 +1,64 @@
using FreeSql.DataAnnotations;
using System;
namespace FATrace.Model
{
/// <summary>
/// Excel 文件导入日志,用于追踪每次导入结果与行数统计
/// </summary>
[Table(Name = "FileImportLog")]
public class FileImportLog
{
/// <summary>
/// 主键
/// </summary>
[Column(IsPrimary = true, IsIdentity = true)]
public long Id { get; set; }
/// <summary>
/// 文件名包含时间戳例如20251218161818.xlsx
/// </summary>
[Column(StringLength = 260)]
public string? FileName { get; set; }
/// <summary>
/// 源文件完整路径
/// </summary>
[Column(StringLength = 500)]
public string? SourcePath { get; set; }
/// <summary>
/// 归档后完整路径
/// </summary>
[Column(StringLength = 500)]
public string? ArchivePath { get; set; }
/// <summary>
/// 导入开始时间
/// </summary>
public DateTime StartTime { get; set; }
/// <summary>
/// 导入结束时间
/// </summary>
public DateTime EndTime { get; set; }
/// <summary>
/// 导入状态Success / Failed / Partial 等
/// </summary>
[Column(StringLength = 20)]
public string? Status { get; set; }
/// <summary>
/// 错误或摘要信息
/// </summary>
[Column(StringLength = 1000)]
public string? Message { get; set; }
/// <summary>
/// 每个 Sheet 的行数统计摘要例如FactoryInbound=100;FactoryOutbound=50
/// </summary>
[Column(StringLength = 1000)]
public string? SheetRowStats { get; set; }
}
}