interest_uid_

This commit is contained in:
CHIEFSOFT\ameye
2023-06-23 13:26:32 -04:00
parent 47a78a5024
commit 62ccc87733
2 changed files with 6 additions and 1 deletions
+5 -1
View File
@@ -270,7 +270,7 @@ long WrenchJobsOfferInterestList(CVars in, CVars &out) {
const PGresult *res = pgsql_query("SELECT mm.id AS client_id, mm.uid AS client_uid, "
" mm.firstname AS client_name, m.offer_code, m.uid AS offer_uid, "
" mo.member_id, mm.added::date AS client_added, to_char(mo.added, 'Dy Mon dd, yyyy HH:MI AM') AS sent, "
" j.title,j.description,m.job_id,to_char( m.expire, 'Dy Mon dd, yyyy HH:MI AM') AS expire,j.price AS job_price "
" j.title,j.description,m.job_id,to_char( m.expire, 'Dy Mon dd, yyyy HH:MI AM') AS expire,j.price AS job_price,mo.uid AS interest_uid "
" FROM members_offer_interest mo "
" LEFT JOIN members_jobs_offer m ON m.id = mo.offer_id "
" LEFT JOIN members_jobs j ON j.id=m.job_id "
@@ -288,6 +288,10 @@ long WrenchJobsOfferInterestList(CVars in, CVars &out) {
CVars rec;
map_to_cvars(f, rec);
snprintf(vname, sizeof (vname), "interest_uid_%05d", i);
out[vname] = rec["interest_uid"];
snprintf(vname, sizeof (vname), "client_id_%05d", i);
out[vname] = rec["client_id"];