问题: - 导入成功条数显示为负数 - 原因:成功数量计算使用 validRecords.size() - failures.size() - 但没有使用实际的数据库操作返回值 修复: - saveBatchWithUpsert 和 saveBatch 方法现在返回 int - 累加实际的数据库影响行数 - 使用 actualSuccessCount 变量跟踪真实成功数量 影响范围: - CcdiIntermediaryPersonImportServiceImpl - CcdiIntermediaryEntityImportServiceImpl
54 lines
1.0 KiB
JSON
54 lines
1.0 KiB
JSON
{
|
|
"name": "graceful-fs",
|
|
"description": "A drop-in replacement for fs, making various improvements.",
|
|
"version": "4.2.11",
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/isaacs/node-graceful-fs"
|
|
},
|
|
"main": "graceful-fs.js",
|
|
"directories": {
|
|
"test": "test"
|
|
},
|
|
"scripts": {
|
|
"preversion": "npm test",
|
|
"postversion": "npm publish",
|
|
"postpublish": "git push origin --follow-tags",
|
|
"test": "nyc --silent node test.js | tap -c -",
|
|
"posttest": "nyc report"
|
|
},
|
|
"keywords": [
|
|
"fs",
|
|
"module",
|
|
"reading",
|
|
"retry",
|
|
"retries",
|
|
"queue",
|
|
"error",
|
|
"errors",
|
|
"handling",
|
|
"EMFILE",
|
|
"EAGAIN",
|
|
"EINVAL",
|
|
"EPERM",
|
|
"EACCESS"
|
|
],
|
|
"license": "ISC",
|
|
"devDependencies": {
|
|
"import-fresh": "^2.0.0",
|
|
"mkdirp": "^0.5.0",
|
|
"rimraf": "^2.2.8",
|
|
"tap": "^16.3.4"
|
|
},
|
|
"files": [
|
|
"fs.js",
|
|
"graceful-fs.js",
|
|
"legacy-streams.js",
|
|
"polyfills.js",
|
|
"clone.js"
|
|
],
|
|
"tap": {
|
|
"reporter": "classic"
|
|
}
|
|
}
|