本阶段迁移已完成。
Excel:班级、账号、考生、缴费、考场、成绩、志愿、录取、报到及正式录取名册均改为 ClosedXML 原生处理,支持模板、校验、筛选和导入预检。[SystemWorkbook.cs](C:\\Users\\BI\\Documents\\EIS-dotnet\\src\\Eis.Infrastructure\\Spreadsheets\\SystemWorkbook.cs) 文书:录取通知书模板、成绩单/准考证/通知书业务数据与防伪验真已脱离 Node;保留现有前端排版导出效果。[AdminAdmissionService.Documents.cs](C:\\Users\\BI\\Documents\\EIS-dotnet\\src\\Eis.Infrastructure\\Administration\\AdminAdmissionService.Documents.cs) 缓存:完成 Redis 命名空间版本缓存、有界本地回退、请求合并和并发失效保护;公开数据及成绩写入后立即失效。[ApplicationCache.cs](C:\\Users\\BI\\Documents\\EIS-dotnet\\src\\Eis.Infrastructure\\Caching\\ApplicationCache.cs) 迁移清单已更新为完成。[MIGRATION.md](C:\\Users\\BI\\Documents\\EIS-dotnet\\MIGRATION.md)
This commit is contained in:
+15
-2
@@ -2,6 +2,7 @@ using System.Net;
|
||||
using Eis.Infrastructure.Authentication;
|
||||
using Eis.Infrastructure.Administration;
|
||||
using Eis.Infrastructure.Candidate;
|
||||
using Eis.Infrastructure.Caching;
|
||||
using Eis.Application.Public;
|
||||
using Eis.Infrastructure;
|
||||
using Eis.Infrastructure.Data;
|
||||
@@ -85,7 +86,10 @@ app.MapGet("/health/live", () => Results.Json(new
|
||||
framework = ".NET 10"
|
||||
}));
|
||||
|
||||
app.MapGet("/health/migration", async (LegacyApiProxy proxy, CancellationToken cancellationToken) =>
|
||||
app.MapGet("/health/migration", async (
|
||||
LegacyApiProxy proxy,
|
||||
IApplicationCache cache,
|
||||
CancellationToken cancellationToken) =>
|
||||
{
|
||||
var legacyAvailable = await proxy.IsAvailableAsync(cancellationToken);
|
||||
var statusCode = legacyAvailable ? StatusCodes.Status200OK : StatusCodes.Status503ServiceUnavailable;
|
||||
@@ -93,6 +97,13 @@ app.MapGet("/health/migration", async (LegacyApiProxy proxy, CancellationToken c
|
||||
{
|
||||
status = legacyAvailable ? "healthy" : "degraded",
|
||||
legacyApiAvailable = legacyAvailable,
|
||||
cache = new
|
||||
{
|
||||
status = cache.Status,
|
||||
redisEnabled = cache.Enabled,
|
||||
localFallback = true,
|
||||
namespaces = new[] { "public", "results" }
|
||||
},
|
||||
authentication = new
|
||||
{
|
||||
nativeEnabled = authenticationOptions.NativeEnabled,
|
||||
@@ -183,7 +194,9 @@ app.MapGet("/health/migration", async (LegacyApiProxy proxy, CancellationToken c
|
||||
"GET admissions/indicator qualifications", "PUT qualification single/bulk",
|
||||
"POST/PATCH/reset admission-school accounts", "PUT admission settings",
|
||||
"POST/PATCH admission plans", "POST admission match/finalize/supplementary",
|
||||
"PATCH admission reporting/withdrawals"
|
||||
"PATCH admission reporting/withdrawals",
|
||||
"GET/POST admin Excel", "GET/PUT admission notice template",
|
||||
"GET/POST admission reporting Excel", "GET admission placement Excel"
|
||||
}
|
||||
: [])
|
||||
.ToArray()
|
||||
|
||||
Reference in New Issue
Block a user