budgetAdd: problematic req.headers & placeholder projectSearch*

Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
2025-11-17 13:59:51 +07:00
parent 9499509dba
commit c6aff996d6
7 changed files with 179 additions and 21 deletions

View File

@@ -0,0 +1,21 @@
import { GeneralService } from '../share/generalservice.js'
export class BudgetAddService {
constructor() {
this.generalService = new GeneralService()
}
async getBudgetAdd(database, id) {
const sql = `
SELECT
bdgseq,
bdgttl
FROM ${database}.bdgmst
WHERE bdgseq = $1
`
const params = [id]
const result = await this.generalService.executeQueryParam(database, sql, params);
return result
}
}