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,2 @@
export { format, write, writeToStream, writeToBuffer, writeToString, writeToPath, CsvFormatterStream, FormatterOptions, FormatterOptionsArgs, Row as FormatterRow, RowMap as FormatterRowMap, RowArray as FormatterRowArray, RowHashArray as FormatterRowHashArray, RowTransformCallback as FormatterRowTransformCallback, RowTransformFunction as FormatterRowTransformFunction, } from '@fast-csv/format';
export { parse, parseString, parseStream, parseFile, ParserOptions, CsvParserStream, ParserOptionsArgs, Row as ParserRow, RowMap as ParserRowMap, RowArray as ParserRowArray, RowValidateCallback as ParserRowValidateCallback, SyncRowValidate as ParserSyncRowValidate, AsyncRowValidate as ParserAsyncRowValidate, RowValidate as ParserRowValidate, RowTransformCallback as ParserRowTransformCallback, SyncRowTransform as ParserSyncRowTransform, AsyncRowTransform as ParserAsyncRowTransform, RowTransformFunction as ParserRowTransformFunction, HeaderArray as ParserHeaderArray, HeaderTransformFunction as ParserHeaderTransformFunction, } from '@fast-csv/parse';

View File

@@ -0,0 +1,20 @@
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.CsvParserStream = exports.ParserOptions = exports.parseFile = exports.parseStream = exports.parseString = exports.parse = exports.FormatterOptions = exports.CsvFormatterStream = exports.writeToPath = exports.writeToString = exports.writeToBuffer = exports.writeToStream = exports.write = exports.format = void 0;
var format_1 = require("@fast-csv/format");
Object.defineProperty(exports, "format", { enumerable: true, get: function () { return format_1.format; } });
Object.defineProperty(exports, "write", { enumerable: true, get: function () { return format_1.write; } });
Object.defineProperty(exports, "writeToStream", { enumerable: true, get: function () { return format_1.writeToStream; } });
Object.defineProperty(exports, "writeToBuffer", { enumerable: true, get: function () { return format_1.writeToBuffer; } });
Object.defineProperty(exports, "writeToString", { enumerable: true, get: function () { return format_1.writeToString; } });
Object.defineProperty(exports, "writeToPath", { enumerable: true, get: function () { return format_1.writeToPath; } });
Object.defineProperty(exports, "CsvFormatterStream", { enumerable: true, get: function () { return format_1.CsvFormatterStream; } });
Object.defineProperty(exports, "FormatterOptions", { enumerable: true, get: function () { return format_1.FormatterOptions; } });
var parse_1 = require("@fast-csv/parse");
Object.defineProperty(exports, "parse", { enumerable: true, get: function () { return parse_1.parse; } });
Object.defineProperty(exports, "parseString", { enumerable: true, get: function () { return parse_1.parseString; } });
Object.defineProperty(exports, "parseStream", { enumerable: true, get: function () { return parse_1.parseStream; } });
Object.defineProperty(exports, "parseFile", { enumerable: true, get: function () { return parse_1.parseFile; } });
Object.defineProperty(exports, "ParserOptions", { enumerable: true, get: function () { return parse_1.ParserOptions; } });
Object.defineProperty(exports, "CsvParserStream", { enumerable: true, get: function () { return parse_1.CsvParserStream; } });
//# sourceMappingURL=index.js.map

View File

@@ -0,0 +1 @@
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;AAAA,2CAgB0B;AAftB,gGAAA,MAAM,OAAA;AACN,+FAAA,KAAK,OAAA;AACL,uGAAA,aAAa,OAAA;AACb,uGAAA,aAAa,OAAA;AACb,uGAAA,aAAa,OAAA;AACb,qGAAA,WAAW,OAAA;AACX,4GAAA,kBAAkB,OAAA;AAClB,0GAAA,gBAAgB,OAAA;AAUpB,yCAqByB;AApBrB,8FAAA,KAAK,OAAA;AACL,oGAAA,WAAW,OAAA;AACX,oGAAA,WAAW,OAAA;AACX,kGAAA,SAAS,OAAA;AACT,sGAAA,aAAa,OAAA;AACb,wGAAA,eAAe,OAAA"}