accountingAdd*: initial (working maybe)
Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import { GeneralService } from '../share/generalservice.js'
|
||||
|
||||
export class AccountingAddService {
|
||||
|
||||
constructor() {
|
||||
this.generalService = new GeneralService()
|
||||
}
|
||||
|
||||
async getAccountingAdd(database, name) {
|
||||
const sql = `
|
||||
SELECT
|
||||
actseq,
|
||||
actnam
|
||||
FROM ${database}.actmst
|
||||
WHERE actnam = $1
|
||||
`
|
||||
const params = [name]
|
||||
const result = await this.generalService.executeQueryParam(database, sql, params);
|
||||
return result
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user