forked from ttc/micro-service-api
-เขียนผิด
This commit is contained in:
@@ -31,15 +31,15 @@ export class budgetSearch {
|
|||||||
let id = decoded.id
|
let id = decoded.id
|
||||||
let username = decoded.name
|
let username = decoded.name
|
||||||
database = decoded.organization
|
database = decoded.organization
|
||||||
let columnParams = req.query.collumn
|
let columnParams = req.query.column
|
||||||
var column = ""
|
var column = ""
|
||||||
if(columnParams == 'edit'){
|
if(columnParams == 'edit'){
|
||||||
column = `bdgseq, bdgnam, bdgcod, bdgttl`
|
column = `bdgseq, bdgnam, bdgcod, bdgttl`
|
||||||
} else if(columnParams == 'result' || columnParams == undefined || columnParams == ''){
|
} else if(columnParams == 'result' || columnParams == undefined || columnParams == ''){
|
||||||
column = `bdgnam, bdgttl`
|
column = `bdgnam, bdgttl`
|
||||||
}
|
}
|
||||||
aryResult = await this.budgetSearchService.getBudgetSearch(database, id, column); // เช็คกับ db กลาง ส่ง jwttoken ออกมา
|
aryResult = await this.budgetSearchService.getBudgetSearch(database, id, column);
|
||||||
// this.generalService.devhint(1, 'budgetSearch.js', 'Login success');
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
idx = 1;
|
idx = 1;
|
||||||
} finally {
|
} finally {
|
||||||
|
|||||||
Reference in New Issue
Block a user