Job data
This commit is contained in:
@@ -249,7 +249,7 @@ long WrenchReturnJobOffersList(CVars in, CVars &out) {
|
||||
|
||||
|
||||
res = pgsql_query("SELECT mj.id AS job_id, jo.id AS contract_id, jo.added::date,mj.title, jo.offer_code,jo.uid AS offer_uid,jo.expire, "
|
||||
" mj.description AS description, jo.job_description,mj.price, mj.timeline_days "
|
||||
" jo.public_view, mj.uid AS job_uid, jo.added AS offer_added, mj.description AS description, jo.job_description,mj.price, mj.timeline_days "
|
||||
"FROM members_jobs_offer jo LEFT JOIN members_jobs mj ON mj.id = jo.job_id "
|
||||
"WHERE jo.expire > now() AND jo.status = 1 "
|
||||
"AND jo.client_id = %lu LIMIT %lu ", in["member_id"].Long(), in["limit"].Long());
|
||||
@@ -305,6 +305,15 @@ long WrenchReturnJobOffersList(CVars in, CVars &out) {
|
||||
|
||||
snprintf(vname, sizeof (vname), "expire_%05d", i);
|
||||
out[vname] = rec["expire"];
|
||||
|
||||
snprintf(vname, sizeof (vname), "public_view_%05d", i);
|
||||
out[vname] = rec["public_view"];
|
||||
|
||||
snprintf(vname, sizeof (vname), "job_uid_%05d", i);
|
||||
out[vname] = rec["job_uid"];
|
||||
|
||||
snprintf(vname, sizeof (vname), "offer_added_%05d", i);
|
||||
out[vname] = rec["offer_added"];
|
||||
}
|
||||
}
|
||||
ret = PHP_API_OK;
|
||||
|
||||
Reference in New Issue
Block a user