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