Interface & Budget: Extravaganza Problematic

Signed-off-by: supphakitd <67319010028@technictrang.ac.th>
This commit is contained in:
2025-11-17 14:22:22 +07:00
parent c6aff996d6
commit 33f8fce3e6
5 changed files with 14 additions and 11 deletions

View File

@@ -29,10 +29,11 @@ export class budgetAdd {
let token = req.body.request.token;
const decoded = verifyToken(token);
let id = decoded.bdgseq
let name = req.body.request.bdgnam;
let id = req.body.request.bdgseq;
database = decoded.organization
aryResult = await this.budgetAddService.getBudgetAdd(database, id); // เช็คกับ db กลาง ส่ง jwttoken ออกมา
aryResult = await this.budgetAddService.getBudgetAdd(database, id, name); // เช็คกับ db กลาง ส่ง jwttoken ออกมา
// this.generalService.devhint(1, 'budgetSearch.js', 'Login success');
} catch (error) {
idx = 1;
@@ -51,8 +52,10 @@ export class budgetAdd {
let arysave = {
methods: 'post',
bdgseq: req.body.request.bdgseq,
bdgnam: req.body.request.bdgnam,
bdgcod: req.body.request.bdgcod,
bdgttl: req.body.request.bdgttl
}
return this.Interface.saveInterface('bdgmst', req, arysave);
return this.Interface.saveInterface('bdgmst', arysave, req);
}
}