fix: 修复中介导入成功条数计算错误
问题: - 导入成功条数显示为负数 - 原因:成功数量计算使用 validRecords.size() - failures.size() - 但没有使用实际的数据库操作返回值 修复: - saveBatchWithUpsert 和 saveBatch 方法现在返回 int - 累加实际的数据库影响行数 - 使用 actualSuccessCount 变量跟踪真实成功数量 影响范围: - CcdiIntermediaryPersonImportServiceImpl - CcdiIntermediaryEntityImportServiceImpl
This commit is contained in:
88
doc/test-data/purchase_transaction/node_modules/fast-csv/CHANGELOG.md
generated
vendored
Normal file
88
doc/test-data/purchase_transaction/node_modules/fast-csv/CHANGELOG.md
generated
vendored
Normal file
@@ -0,0 +1,88 @@
|
||||
# Change Log
|
||||
|
||||
All notable changes to this project will be documented in this file.
|
||||
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
||||
|
||||
## [4.3.6](https://github.com/C2FO/fast-csv/compare/v4.3.5...v4.3.6) (2020-12-04)
|
||||
|
||||
**Note:** Version bump only for package fast-csv
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.3.5](https://github.com/C2FO/fast-csv/compare/v4.3.4...v4.3.5) (2020-11-03)
|
||||
|
||||
**Note:** Version bump only for package fast-csv
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.3.4](https://github.com/C2FO/fast-csv/compare/v4.3.3...v4.3.4) (2020-11-03)
|
||||
|
||||
**Note:** Version bump only for package fast-csv
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.3.3](https://github.com/C2FO/fast-csv/compare/v4.3.2...v4.3.3) (2020-10-30)
|
||||
|
||||
**Note:** Version bump only for package fast-csv
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.3.2](https://github.com/C2FO/fast-csv/compare/v4.3.1...v4.3.2) (2020-09-02)
|
||||
|
||||
**Note:** Version bump only for package fast-csv
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.3.1](https://github.com/C2FO/fast-csv/compare/v4.3.0...v4.3.1) (2020-06-23)
|
||||
|
||||
**Note:** Version bump only for package fast-csv
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [4.3.0](https://github.com/C2FO/fast-csv/compare/v4.2.0...v4.3.0) (2020-05-27)
|
||||
|
||||
**Note:** Version bump only for package fast-csv
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
# [4.2.0](https://github.com/C2FO/fast-csv/compare/v4.1.6...v4.2.0) (2020-05-19)
|
||||
|
||||
**Note:** Version bump only for package fast-csv
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.1.6](https://github.com/C2FO/fast-csv/compare/v4.1.5...v4.1.6) (2020-05-15)
|
||||
|
||||
**Note:** Version bump only for package fast-csv
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.1.5](https://github.com/C2FO/fast-csv/compare/v4.1.4...v4.1.5) (2020-05-15)
|
||||
|
||||
**Note:** Version bump only for package fast-csv
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
## [4.1.4](https://github.com/C2FO/fast-csv/compare/v4.1.3...v4.1.4) (2020-05-15)
|
||||
|
||||
**Note:** Version bump only for package fast-csv
|
||||
21
doc/test-data/purchase_transaction/node_modules/fast-csv/LICENSE
generated
vendored
Normal file
21
doc/test-data/purchase_transaction/node_modules/fast-csv/LICENSE
generated
vendored
Normal file
@@ -0,0 +1,21 @@
|
||||
The MIT License
|
||||
|
||||
Copyright (c) 2011-2019 C2FO
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in
|
||||
all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
THE SOFTWARE.
|
||||
20
doc/test-data/purchase_transaction/node_modules/fast-csv/README.md
generated
vendored
Normal file
20
doc/test-data/purchase_transaction/node_modules/fast-csv/README.md
generated
vendored
Normal file
@@ -0,0 +1,20 @@
|
||||
<p align="center">
|
||||
<a href="https://c2fo.io/fast-csv" target="blank"><img src="https://c2fo.io/fast-csv/img/logo.svg" width="200" alt="fast-csv Logo" /></a>
|
||||
</p>
|
||||
|
||||
[](https://www.npmjs.org/package/fast-csv)
|
||||
[](https://travis-ci.org/C2FO/fast-csv)
|
||||
[](https://coveralls.io/github/C2FO/fast-csv?branch=master)
|
||||
[](https://snyk.io/test/github/C2FO/fast-csv?targetFile=package.json)
|
||||
|
||||
# `fast-csv`
|
||||
|
||||
Package that combines both [`@fast-csv/format`](https://c2fo.io/fast-csv/docs/formatting/getting-started) and [`@fast-csv/parse`](https://c2fo.io/fast-csv/docs/parsing/getting-started) into a single package.
|
||||
|
||||
## Installation
|
||||
|
||||
[Install Guide](https://c2fo.io/fast-csv/docs/introduction/install)
|
||||
|
||||
## Usage
|
||||
|
||||
To get started with `fast-csv` [check out the docs](https://c2fo.io/fast-csv/docs/introduction/getting-started)
|
||||
2
doc/test-data/purchase_transaction/node_modules/fast-csv/build/src/index.d.ts
generated
vendored
Normal file
2
doc/test-data/purchase_transaction/node_modules/fast-csv/build/src/index.d.ts
generated
vendored
Normal 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';
|
||||
20
doc/test-data/purchase_transaction/node_modules/fast-csv/build/src/index.js
generated
vendored
Normal file
20
doc/test-data/purchase_transaction/node_modules/fast-csv/build/src/index.js
generated
vendored
Normal 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
|
||||
1
doc/test-data/purchase_transaction/node_modules/fast-csv/build/src/index.js.map
generated
vendored
Normal file
1
doc/test-data/purchase_transaction/node_modules/fast-csv/build/src/index.js.map
generated
vendored
Normal 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"}
|
||||
44
doc/test-data/purchase_transaction/node_modules/fast-csv/package.json
generated
vendored
Normal file
44
doc/test-data/purchase_transaction/node_modules/fast-csv/package.json
generated
vendored
Normal file
@@ -0,0 +1,44 @@
|
||||
{
|
||||
"name": "fast-csv",
|
||||
"version": "4.3.6",
|
||||
"description": "CSV parser and writer",
|
||||
"main": "./build/src/index.js",
|
||||
"types": "./build/src/index.d.ts",
|
||||
"scripts": {
|
||||
"prepublishOnly": "npm run build",
|
||||
"build": "npm run clean && npm run compile",
|
||||
"clean": "rm -rf ./build && rm -rf tsconfig.tsbuildinfo",
|
||||
"compile": "tsc"
|
||||
},
|
||||
"directories": {
|
||||
"lib": "src",
|
||||
"test": "__tests__"
|
||||
},
|
||||
"files": [
|
||||
"build/src/**"
|
||||
],
|
||||
"repository": {
|
||||
"type": "git",
|
||||
"url": "git+https://github.com/C2FO/fast-csv.git",
|
||||
"directory": "packages/fast-csv"
|
||||
},
|
||||
"keywords": [
|
||||
"csv",
|
||||
"parser",
|
||||
"fast",
|
||||
"writer",
|
||||
"csv writer",
|
||||
"CSV"
|
||||
],
|
||||
"homepage": "http://c2fo.github.com/fast-csv",
|
||||
"author": "Doug Martin",
|
||||
"license": "MIT",
|
||||
"engines": {
|
||||
"node": ">=10.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fast-csv/format": "4.3.5",
|
||||
"@fast-csv/parse": "4.3.6"
|
||||
},
|
||||
"gitHead": "3dc859edb19924b315051e4c87d6273808a0de73"
|
||||
}
|
||||
Reference in New Issue
Block a user