-gennumber
This commit is contained in:
@@ -18,4 +18,18 @@ export class BudgetAddService {
|
|||||||
const result = await this.generalService.executeQueryParam(database, sql, params);
|
const result = await this.generalService.executeQueryParam(database, sql, params);
|
||||||
return result
|
return result
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async genNum(database) {
|
||||||
|
const sql = `
|
||||||
|
SELECT
|
||||||
|
MAX(bdgseq) as max_seq
|
||||||
|
FROM ${database}.bdgmst
|
||||||
|
`
|
||||||
|
const params = []
|
||||||
|
const aryResult = await this.generalService.executeQueryParam(database, sql, params);
|
||||||
|
|
||||||
|
const lastSeq = aryResult[0]?.max_seq || 0;
|
||||||
|
|
||||||
|
return lastSeq + 1;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user