family uid
This commit is contained in:
@@ -78,10 +78,11 @@ long WrenchJobManagerOffers( CVars in, CVars &out){
|
||||
|
||||
res = pgsql_query(" SELECT j.id AS job_id,jo.expire,jo.public_view, j.*,jo.uid AS offer_uid,jo.offer_code AS offer_code, "
|
||||
" (CASE WHEN jo.public_view > 0 THEN 'public' ELSE jo.email END) AS job_to, "
|
||||
" c.code AS currency_code, c.description AS currency_description,j.country "
|
||||
" c.code AS currency_code, c.description AS currency_description,j.country,mf.uid AS family_uid "
|
||||
" FROM members_jobs_offer jo "
|
||||
" LEFT JOIN members_jobs j ON j.id = jo.job_id "
|
||||
" LEFT JOIN currency c ON c.country=j.country "
|
||||
" LEFT JOIN members_family mf ON mf.family_member_id = jo.client_id "
|
||||
" WHERE jo.expire > now() AND jo.status = 1 AND jo.member_id = %lu AND jo.status=1 "
|
||||
" ORDER BY jo.id DESC LIMIT %lu OFFSET %lu", in["member_id"].Long(), limit, offset);
|
||||
|
||||
@@ -106,6 +107,9 @@ long WrenchJobManagerOffers( CVars in, CVars &out){
|
||||
snprintf(vname, sizeof (vname), "job_detail_%05d", i);
|
||||
out[vname] = rec["job_detail"];
|
||||
|
||||
snprintf(vname, sizeof (vname), "family_uid_%05d", i);
|
||||
out[vname] = rec["family_uid"];
|
||||
|
||||
snprintf(vname, sizeof (vname), "timeline_days_%05d", i);
|
||||
out[vname] = rec["timeline_days"];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user