Job count path
This commit is contained in:
@@ -55,6 +55,32 @@ var jobs = {
|
||||
}
|
||||
});
|
||||
},
|
||||
getmarketInterestCount: function (req, res, next) {
|
||||
logger.info("------ ********** getmarketInterestCount() ********** ---->");
|
||||
//logger.info(req.query);
|
||||
|
||||
// var data = {
|
||||
// "member_uid": req.query.member_uid,
|
||||
// "job_uid": req.query.job_uid,
|
||||
// "sessionid": req.query.sessionid
|
||||
// };
|
||||
// logger.info(data);
|
||||
let Qstring ="";
|
||||
Qstring = "SELECT j.uid AS job_uid,count(i.id) AS interview_count FROM members_jobs_offer o LEFT JOIN members_jobs j ON j.id=o.job_id LEFT JOIN members_offer_interest i ON i.offer_id=o.id WHERE o.expire > now() GROUP BY j.uid ";
|
||||
logger.info(Qstring);
|
||||
db.query(Qstring, function (err, result) {
|
||||
try {
|
||||
if (err) throw err;
|
||||
let resultItem ={
|
||||
"result": result.rows,
|
||||
"total_record": result.rowCount
|
||||
}
|
||||
next(null, resultItem); // pass control to the next handler
|
||||
} catch (e) {
|
||||
next(e.message, null); // pass control to the next handler
|
||||
}
|
||||
});
|
||||
},
|
||||
getmarketjobsFiles: function (req, res, next) {
|
||||
|
||||
logger.info("------ ********** ********** ---->");
|
||||
|
||||
Reference in New Issue
Block a user