Interface & Budget: Extravaganza Problematic
Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user