vault backup: 2023-11-08 13:25:35
This commit is contained in:
parent
46a7e8cd86
commit
2e66c4e002
3
api.ts
3
api.ts
@ -57,10 +57,9 @@ router.get('/dseg_price/:billcode/:shipcode/:stlc/:dseg/:qty', async (ctx) => {
|
|||||||
const shipcode = ctx.params.shipcode;
|
const shipcode = ctx.params.shipcode;
|
||||||
const qty = ctx.params.qty;
|
const qty = ctx.params.qty;
|
||||||
|
|
||||||
console.log(dseg);
|
//console.log(dseg);
|
||||||
//console.log(customer)
|
//console.log(customer)
|
||||||
const result = await client.queryObject({args: [billcode, shipcode, stlc, dseg, qty], text: query_dseg} );
|
const result = await client.queryObject({args: [billcode, shipcode, stlc, dseg, qty], text: query_dseg} );
|
||||||
console.log(result);
|
|
||||||
const procd = apply_guidance(result.rows[0]["doc"])
|
const procd = apply_guidance(result.rows[0]["doc"])
|
||||||
ctx.response.body = procd;
|
ctx.response.body = procd;
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user