This commit is contained in:
CHIEFSOFT\ameye
2023-05-06 19:37:48 -04:00
parent 019e7912e8
commit 501c807b73
3 changed files with 4 additions and 3 deletions
+4 -1
View File
@@ -77,7 +77,7 @@ long WrenchJobManagerOffers( CVars in, CVars &out){
res = pgsql_query("SELECT id FROM members_jobs_offer WHERE member_id = %lu AND status=1 AND expire > now() ", in["member_id"].Long());
out["total_record"] = pgsql_num_rows(res);
res = pgsql_query("SELECT j.id AS job_id,jo.expire,jo.public_view, j.*,jo.uid AS offer_uid,
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 "
" FROM members_jobs_offer jo LEFT JOIN members_jobs j ON j.id = jo.job_id "
" WHERE jo.expire > now() AND jo.status = 1 AND jo.member_id = %lu AND jo.status=1 "
@@ -127,6 +127,9 @@ long WrenchJobManagerOffers( CVars in, CVars &out){
snprintf(vname, sizeof (vname), "public_view_%05d", i);
out[vname] = rec["public_view"];
//
snprintf(vname, sizeof (vname), "offer_code_%05d", i);
out[vname] = rec["offer_code"];
}
}
-1
View File
@@ -223,7 +223,6 @@ class ResultFormatter extends Model
"expire" => $out["expire_${key}"],
"sent" => $out["sent_${key}"],
"offer_code" => $out["offer_code_${key}"],
"offer_uid" => $out["offer_uid_${key}"],
"job_to" => $out["job_to_${key}"],
"public_view" => $out["public_view_${key}"],
"whishlisted"=> false,
-1
View File
@@ -174,7 +174,6 @@ function processOutJson($in, $out) {
"expire" => $out["expire_${key}"],
"sent" => $out["sent_${key}"],
"offer_code" => $out["offer_code_${key}"],
"offer_uid" => $out["offer_uid_${key}"],
"job_to" => $out["job_to_${key}"],
"public_view" => $out["public_view_${key}"],
"whishlisted"=> false,