family_uid

This commit is contained in:
CHIEFSOFT\ameye
2023-07-05 21:52:05 -04:00
parent d4dd10af4c
commit 5debecc116
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -252,10 +252,11 @@ long WrenchReturnJobOffersList(CVars in, CVars &out) {
" jo.added::date,mj.title, jo.offer_code,jo.uid AS offer_uid,jo.expire, "
" 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,jo.job_description AS job_detail, "
" c.code AS currency_code, c.description AS currency_description,mj.country "
" c.code AS currency_code, c.description AS currency_description,mj.country,mf.uid AS family_uid "
" FROM members_jobs_offer jo "
" LEFT JOIN members_jobs mj ON mj.id = jo.job_id "
" LEFT JOIN currency c ON c.country=mj.country "
" LEFT JOIN members_family mf ON mf.family_member_id = jo.client_id "
" WHERE jo.expire > now() AND jo.status = 1 "
" AND jo.client_id = %lu LIMIT %lu ", in["member_id"].Long(), in["limit"].Long());
@@ -311,6 +312,9 @@ long WrenchReturnJobOffersList(CVars in, CVars &out) {
snprintf(vname, sizeof (vname), "offer_uid_%05d", i);
out[vname] = rec["offer_uid"];
snprintf(vname, sizeof (vname), "family_uid_%05d", i);
out[vname] = rec["family_uid"];
snprintf(vname, sizeof (vname), "expire_%05d", i);
out[vname] = rec["expire"];
+1
View File
@@ -450,6 +450,7 @@ class ResultFormatter extends Model
"delivery_date" => $out["delivery_date_${key}"],
"owner_status" => $out["owner_status_${key}"],
"offer_uid" => $out["offer_uid_${key}"],
"family_uid" => $out["family_uid_${key}"],
"job_uid" => $out["job_uid_${key}"],
"expire" => $out["expire_${key}"],
"sent" => $out["sent_${key}"],