ttc-api: added transactionSearch* and projectSearch, more on reportController.
Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
26
exthernal-ttc-api/src/services/transactionSearchService.js
Normal file
26
exthernal-ttc-api/src/services/transactionSearchService.js
Normal file
@@ -0,0 +1,26 @@
|
||||
import { GeneralService } from '../share/generalservice.js'
|
||||
|
||||
export class TransactionSearchService {
|
||||
|
||||
constructor() {
|
||||
this.generalService = new GeneralService()
|
||||
}
|
||||
|
||||
async getTransactionSearch(database, column, condition) {
|
||||
const sql = `
|
||||
SELECT
|
||||
${column}
|
||||
FROM ${database}.bdgmst
|
||||
WHERE 1=1
|
||||
`
|
||||
const params = []
|
||||
const result = await this.generalService.executeQueryConditions(database, sql, condition);
|
||||
return result
|
||||
}
|
||||
}
|
||||
|
||||
// bdgseq,
|
||||
// bdgnam,
|
||||
// bdgcod,
|
||||
// bdgttl,
|
||||
// bdgedtdtm
|
||||
Reference in New Issue
Block a user