测试覆盖率
All checks were successful
Docker Build & Deploy / Build Docker Image (push) Successful in 27s
Docker Build & Deploy / Deploy to Production (push) Successful in 9s
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 2s
Docker Build & Deploy / WeChat Notification (push) Successful in 2s

This commit is contained in:
SunCheng
2026-01-28 17:00:58 +08:00
parent 3ed9cf5ebd
commit e93c3d6bae
30 changed files with 2492 additions and 227 deletions

View File

@@ -432,7 +432,7 @@ public class ImportService(
// 读取表头(第一行)
var headers = new List<string>();
for (int col = 1; col <= colCount; col++)
for (var col = 1; col <= colCount; col++)
{
var header = worksheet.Cells[1, col].Text?.Trim() ?? string.Empty;
headers.Add(header);
@@ -441,10 +441,10 @@ public class ImportService(
var result = new List<IDictionary<string, string>>();
// 读取数据行(从第二行开始)
for (int row = 2; row <= rowCount; row++)
for (var row = 2; row <= rowCount; row++)
{
var rowData = new Dictionary<string, string>();
for (int col = 1; col <= colCount; col++)
for (var col = 1; col <= colCount; col++)
{
var header = headers[col - 1];
var value = worksheet.Cells[row, col].Text?.Trim() ?? string.Empty;