loanSplitUp:GWM
This commit is contained in:
parent
17dfe019b4
commit
40e2bb352a
@ -329,8 +329,29 @@ exports.ConsolidatedSummaryViewOfCreditFacilities =async (req, res) =>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
exports.consolidatedActiveClosedLoanSplitUp =async (req, res) =>
|
||||
{
|
||||
try
|
||||
{
|
||||
|
||||
|
||||
data = await OutputActiveAndClosedLoans.findAll({where:{grp_str:req.query.grp_str}})
|
||||
if(data.length != 0 )
|
||||
{
|
||||
|
||||
res.send({'status':200 , message:"Success." ,'data': data});
|
||||
}
|
||||
else{
|
||||
res.send({'status':400 , message:"Failed." ,'data': "No Data"});
|
||||
}
|
||||
|
||||
|
||||
} catch(err) {
|
||||
res.status(500).send({'status':404,
|
||||
message: err.message || "Some error occurred while inserting statements." ,'data': "No data"
|
||||
}); } //end of try catch
|
||||
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
@ -360,6 +360,27 @@ router.get("/sanctionAmountSplitUp", Cibilcontroller.SanctionAmountSplitUp);
|
||||
router.get("/consolidatedSanctionAmountSplitUp", Cibilcontroller.ConsolidatedSanctionAmountSplitUp);
|
||||
|
||||
|
||||
|
||||
/**
|
||||
* @swagger
|
||||
* /api/consolidatedActiveClosedLoanSplitUp:
|
||||
* get:
|
||||
* summary: landing Page Details
|
||||
* description: Get active & closed loans Data
|
||||
* parameters:
|
||||
* - in: query
|
||||
* name: grp_str
|
||||
* schema:
|
||||
* type: string
|
||||
* required: true
|
||||
* example: E7BBFB17-2938-4A41-AB63-5221BC04DE4F
|
||||
* responses:
|
||||
* 200:
|
||||
* description: success
|
||||
*/
|
||||
router.get("/consolidatedActiveClosedLoanSplitUp", Cibilcontroller.consolidatedActiveClosedLoanSplitUp);
|
||||
|
||||
|
||||
// routes started here
|
||||
app.use('/api', router);
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user