This commit is contained in:
wangwenchen 2023-06-29 16:01:02 +08:00
parent ed14051fe9
commit 1c454e7c26
3 changed files with 3 additions and 3 deletions

2
lib/types/Port.d.ts vendored
View File

@ -5,7 +5,7 @@ export type Exportation<ED extends EntityDict, T extends keyof ED, K extends str
id: string;
entity: T;
projection: ED[T]['Selection']['data'];
headers?: string[];
headers?: K[];
makeHeaders?: (dataList: Partial<ED[T]['Schema']>[]) => string[];
fn: (data: ED[T]['Schema'], context?: AsyncContext<ED>, properties?: Record<string, any>) => Promise<Partial<Record<string, string | number | boolean | null>>> | Partial<Record<string, string | number | boolean | null>>;
};

View File

@ -34,7 +34,7 @@ var ThousandCont = function (value) {
if (value1) {
result = value1 + result;
}
result = result + '.' + numArr[1];
result = numArr[1] ? result + '.' + numArr[1] : result;
return result;
};
exports.ThousandCont = ThousandCont;

View File

@ -34,7 +34,7 @@ const ThousandCont: (value: number) => string | undefined = (value) => {
if (value1) {
result = value1 + result;
}
result = result + '.' + numArr[1];
result = numArr[1] ? result + '.' + numArr[1] : result;
return result;
};