ttc-api: added transactionSearch* and projectSearch, more on reportController.

Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
2025-11-19 18:25:57 +07:00
parent f1339b22db
commit e456af98d4
5 changed files with 107 additions and 18 deletions

View 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