suseendhiran
This commit is contained in:
parent
30e05d13eb
commit
79714c36c3
@ -96,10 +96,16 @@ exports.PullCreditPdPhotographsData = async (req, res) =>
|
||||
// insert photograph data here
|
||||
|
||||
await Photograph.create({pd_id: PdId , ref_no :req.body.pdid , img_name :req.body.img_name , img : img_name})
|
||||
.then((successData)=>{logMsg.info("Photograph insert success ,PdId= "+PdId);})
|
||||
.catch((err)=>{ logMsg.info("Photograph insert failed ,PdId= "+PdId+" ERROR : "+err);});
|
||||
.then((successData)=>{
|
||||
logMsg.info("Photograph insert success ,PdId= "+PdId);
|
||||
res.send({'status':200,'message':"success",'data': "no data"}); //,"+base64_data+"
|
||||
})
|
||||
.catch((err)=>{
|
||||
logMsg.info("Photograph insert failed ,PdId= "+PdId+" ERROR : "+err);
|
||||
res.send({'status':404,message: err.message || "Some error occurred while retrieving data." ,'data': "No data" });
|
||||
});
|
||||
// responce to FE
|
||||
res.send({'status':200,'message':"success",'data': "no data"}); //,"+base64_data+"
|
||||
|
||||
|
||||
|
||||
|
||||
@ -247,3 +253,61 @@ exports.GetCreditPdData = async (req, res) =>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
// exports.GetCreditPdData__1 = async (req, res) =>
|
||||
// {
|
||||
// try
|
||||
// {
|
||||
// // // applicantDetails = await Credit_PdHelper.MainApplicantDetails(req.query.losid);
|
||||
// // // MainApplicantDetails = JSON.parse(applicantDetails);
|
||||
// // // if(MainApplicantDetails.status == 200)
|
||||
// // // {
|
||||
// CreditGeneralInformation.findAll({ where : { pd_id :432,is_active : 1},
|
||||
// include : [
|
||||
// {model: CreditAddressDetail },
|
||||
// {model: CreditFuturePlans },
|
||||
// {model : CreditBorrowerAndGuarantorDetails },
|
||||
// {model: CreditBusinessAndPersonalBankingDetails }, {model: BusinessAsset },
|
||||
// {model: CreditFinancialInformation }, {model: CreditKeyShareholder },
|
||||
// {model: CreditKeyProductBusinessContribution }, {model: EmployeeStrength },
|
||||
// {model: ClientDetail }, {model: StockDetail },
|
||||
// {model: CreditExistingLoanObligation },
|
||||
// {model: FamilyMemberInvolvedInBusiness },
|
||||
// {model : CreditManager },
|
||||
// {model: Photograph },
|
||||
// {model: CreditFinalRemarks }, {model: CreditLoanDetail },
|
||||
// {model: CreditGeneralBusinessInformation },
|
||||
// {model: SupplierDetail }
|
||||
// ]
|
||||
// })
|
||||
// .then((data)=>{
|
||||
// if (data.length > 0)
|
||||
// {
|
||||
// res.send({'status':200,'message':"success",'data':data});
|
||||
// }
|
||||
// else
|
||||
// {
|
||||
// res.send({'status':404,'message':"failed",'data':"No data"});
|
||||
// }
|
||||
// })
|
||||
|
||||
// // // }
|
||||
// // // else
|
||||
// // // {
|
||||
// // // res.send({'status':404,'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"
|
||||
// });
|
||||
// }
|
||||
|
||||
// };
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
@ -188,6 +188,9 @@ router.get('/imageView',CreditPdController.imageView);
|
||||
*/
|
||||
router.get('/GetCreditPdData',CreditPdController.GetCreditPdData)
|
||||
|
||||
|
||||
// router.get('/GetCreditPdData__1',CreditPdController.GetCreditPdData__1)
|
||||
|
||||
|
||||
|
||||
// DownloadPdReport
|
||||
|
||||
Loading…
Reference in New Issue
Block a user