jobs micro
This commit is contained in:
@@ -60,6 +60,29 @@ var jobs = {
|
||||
next(e.message, null); // pass control to the next handler
|
||||
}
|
||||
});
|
||||
},
|
||||
getmarketjobsFiles: function (req, res, next) {
|
||||
var data = {
|
||||
"uid": req.query.uid,
|
||||
"member_uid": req.query.member_uid,
|
||||
"job_uid": req.query.job_uid,
|
||||
"sessionid": req.query.sessionid,
|
||||
"page": req.query.page
|
||||
};
|
||||
let Qstring ="";
|
||||
Qstring = "SELECT id,uid,job_uid,originalname,FROM from members_jobs_files WHERE job_uid= '"+ data.job_uid +"'";
|
||||
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
|
||||
}
|
||||
});
|
||||
}
|
||||
};
|
||||
module.exports = jobs;
|
||||
|
||||
Reference in New Issue
Block a user