fix: 修复中介导入成功条数计算错误

问题:
- 导入成功条数显示为负数
- 原因:成功数量计算使用 validRecords.size() - failures.size()
- 但没有使用实际的数据库操作返回值

修复:
- saveBatchWithUpsert 和 saveBatch 方法现在返回 int
- 累加实际的数据库影响行数
- 使用 actualSuccessCount 变量跟踪真实成功数量

影响范围:
- CcdiIntermediaryPersonImportServiceImpl
- CcdiIntermediaryEntityImportServiceImpl
This commit is contained in:
wkc
2026-02-08 17:18:18 +08:00
parent bb0d68c41d
commit 5ec5913759
2058 changed files with 234134 additions and 269 deletions

View File

@@ -0,0 +1,18 @@
{
"name": "purchase_transaction",
"version": "1.0.0",
"description": "- **操作系统**: Windows/Linux\r - **Java版本**: JDK 17\r - **数据库**: MySQL 8.2.0\r - **后端框架**: Spring Boot 3.5.8\r - **前端框架**: Vue 2.6.12 + Element UI 2.15.14",
"main": "test-import-debug.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
"license": "ISC",
"type": "commonjs",
"dependencies": {
"axios": "^1.13.4",
"exceljs": "^4.4.0",
"form-data": "^4.0.5"
}
}