Interface & Budget: Extravaganza Problematic

Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
2025-11-17 14:22:22 +07:00
parent c6aff996d6
commit 33f8fce3e6
5 changed files with 14 additions and 11 deletions

View File

@@ -6,15 +6,15 @@ export class BudgetAddService {
this.generalService = new GeneralService()
}
async getBudgetAdd(database, id) {
async getBudgetAdd(database, id, name) {
const sql = `
SELECT
bdgseq,
bdgttl
bdgnam
FROM ${database}.bdgmst
WHERE bdgseq = $1
WHERE bdgseq = $1 AND bdgnam = $2
`
const params = [id]
const params = [id, name]
const result = await this.generalService.executeQueryParam(database, sql, params);
return result
}