-
Notifications
You must be signed in to change notification settings - Fork 0
Closed
Labels
P2Priority 2Priority 2enhancementNew feature or requestNew feature or requestin-progressWork currently in progressWork currently in progress
Description
問題描述
BaseImportVM<T> 的匯入流程有三個長期痛點,讓業務部門在處理大批量資料匯入時難以操作:
1. 無 dry-run 模式
使用者無法在真正寫入 DB 前預覽「哪幾列會出錯」。目前只能先跑一次,失敗後再修 Excel 重傳,效率極低。
2. 無進度回報
大型 Excel(5000+ 列)匯入時,介面無任何進度指示,使用者不知道是在處理中還是卡住了。
3. 無錯誤標記 Excel 回傳
匯入失敗時只顯示錯誤訊息列表,使用者需自行對照原始 Excel 逐列修正。業界標準(如 EasyExcel)是回傳標有紅色批注的 Excel 供下載。
建議修正方向
- Dry-run:新增
ValidateOnly = true參數,執行 validation 與 business rule check 但 rollback transaction - 進度:透過 SignalR Hub 或 SSE 推送
{ processed, total, errors }進度事件 - 錯誤 Excel:失敗時使用 EPPlus 在原始 Excel 加入
ErrorMessage欄,highlight 錯誤列後提供下載
Priority: P2
Labels: enhancement, import, ux
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
P2Priority 2Priority 2enhancementNew feature or requestNew feature or requestin-progressWork currently in progressWork currently in progress