问题: - 导入成功条数显示为负数 - 原因:成功数量计算使用 validRecords.size() - failures.size() - 但没有使用实际的数据库操作返回值 修复: - saveBatchWithUpsert 和 saveBatch 方法现在返回 int - 累加实际的数据库影响行数 - 使用 actualSuccessCount 变量跟踪真实成功数量 影响范围: - CcdiIntermediaryPersonImportServiceImpl - CcdiIntermediaryEntityImportServiceImpl
63 lines
1.6 KiB
JSON
63 lines
1.6 KiB
JSON
{
|
|
"name": "@fast-csv/parse",
|
|
"version": "4.3.6",
|
|
"description": "fast-csv parsing package",
|
|
"keywords": [
|
|
"csv",
|
|
"parse",
|
|
"fast-csv",
|
|
"parser"
|
|
],
|
|
"author": "doug-martin <doug@dougamartin.com>",
|
|
"homepage": "http://c2fo.github.com/fast-csv/packages/parse",
|
|
"license": "MIT",
|
|
"main": "build/src/index.js",
|
|
"types": "build/src/index.d.ts",
|
|
"directories": {
|
|
"lib": "src",
|
|
"test": "__tests__"
|
|
},
|
|
"files": [
|
|
"build/src/**"
|
|
],
|
|
"publishConfig": {
|
|
"access": "public"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "git+https://github.com/C2FO/fast-csv.git",
|
|
"directory": "packages/parse"
|
|
},
|
|
"scripts": {
|
|
"prepublishOnly": "npm run build",
|
|
"build": "npm run clean && npm run compile",
|
|
"clean": "rm -rf ./build && rm -rf tsconfig.tsbuildinfo",
|
|
"compile": "tsc"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/C2FO/fast-csv/issues"
|
|
},
|
|
"dependencies": {
|
|
"@types/node": "^14.0.1",
|
|
"lodash.escaperegexp": "^4.1.2",
|
|
"lodash.groupby": "^4.6.0",
|
|
"lodash.isfunction": "^3.0.9",
|
|
"lodash.isnil": "^4.0.0",
|
|
"lodash.isundefined": "^3.0.1",
|
|
"lodash.uniq": "^4.5.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/lodash.escaperegexp": "4.1.6",
|
|
"@types/lodash.groupby": "4.6.6",
|
|
"@types/lodash.isfunction": "3.0.6",
|
|
"@types/lodash.isnil": "4.0.6",
|
|
"@types/lodash.isundefined": "3.0.6",
|
|
"@types/lodash.partition": "4.6.6",
|
|
"@types/lodash.uniq": "4.5.6",
|
|
"@types/sinon": "9.0.9",
|
|
"lodash.partition": "4.6.0",
|
|
"sinon": "9.2.1"
|
|
},
|
|
"gitHead": "3dc859edb19924b315051e4c87d6273808a0de73"
|
|
}
|