问题: - 导入成功条数显示为负数 - 原因:成功数量计算使用 validRecords.size() - failures.size() - 但没有使用实际的数据库操作返回值 修复: - saveBatchWithUpsert 和 saveBatch 方法现在返回 int - 累加实际的数据库影响行数 - 使用 actualSuccessCount 变量跟踪真实成功数量 影响范围: - CcdiIntermediaryPersonImportServiceImpl - CcdiIntermediaryEntityImportServiceImpl
25 lines
586 B
TypeScript
25 lines
586 B
TypeScript
import { PluginFunc, ConfigType } from 'dayjs'
|
|
|
|
declare interface RelativeTimeThreshold {
|
|
l: string
|
|
r?: number
|
|
d?: string
|
|
}
|
|
|
|
declare interface RelativeTimeOptions {
|
|
rounding?: (num: number) => number
|
|
thresholds?: RelativeTimeThreshold[]
|
|
}
|
|
|
|
declare const plugin: PluginFunc<RelativeTimeOptions>
|
|
export = plugin
|
|
|
|
declare module 'dayjs' {
|
|
interface Dayjs {
|
|
fromNow(withoutSuffix?: boolean): string
|
|
from(compared: ConfigType, withoutSuffix?: boolean): string
|
|
toNow(withoutSuffix?: boolean): string
|
|
to(compared: ConfigType, withoutSuffix?: boolean): string
|
|
}
|
|
}
|