queru
This commit is contained in:
@@ -517,16 +517,20 @@ try {
|
||||
out["job_rejected"] = "0";
|
||||
out["job_pending"] = "0";
|
||||
out["job_last_date"] = "0000-00-00";
|
||||
|
||||
|
||||
REQ_STRING(in, "uid", 1, 95, "(.*)"); //uid
|
||||
REQ_STRING(in, "interest_uid", 1, 95, "(.*)"); //interest_uid
|
||||
REQ_STRING(in, "client_uid", 1, 95, "(.*)"); //client_uid
|
||||
|
||||
if (load_db_record(out, "SELECT id as client_id FROM members WHERE uid::text = '%s' ", in["client_uid"].c_str())) {
|
||||
|
||||
load_db_record(out, "SELECT count(id) AS job_pending FROM members_jobs_offer WHERE client_id = %lu AND expire > now()", out["client_id"].Long()); //pending jobs
|
||||
|
||||
|
||||
|
||||
//SELECT id as client_id FROM members WHERE uid::text = 'dfc9d601-780f-4d78-839f-422f0928f911';
|
||||
|
||||
}
|
||||
// SELECT id as client_id FROM members WHERE uid::text = 'dfc9d601-780f-4d78-839f-422f0928f911';
|
||||
// SELECT count(id), status FROM members_jobs_contract WHERE client_id = 2 GROUP BY status;
|
||||
ret = PHP_CREATED_OK;
|
||||
} catch (bad_parameter) {
|
||||
out["log_status"] = "Error WrenchJobsInterestStats";
|
||||
|
||||
Reference in New Issue
Block a user