job created
This commit is contained in:
@@ -208,7 +208,7 @@ long WrenchJobManagerList( CVars in, CVars &out){
|
||||
res = pgsql_query("SELECT id FROM members_jobs WHERE member_id = %lu AND status=1 ORDER BY id DESC", in["member_id"].Long());
|
||||
out["total_record"] = pgsql_num_rows(res);
|
||||
|
||||
res = pgsql_query("SELECT j.id AS job_id, j.*,c.code AS currency_code, c.description AS currency_description "
|
||||
res = pgsql_query("SELECT j.id AS job_id, j.*,c.code AS currency_code, c.description AS currency_description,j.created AS job_create_date "
|
||||
" FROM members_jobs j "
|
||||
" LEFT JOIN currency c ON c.country=j.country "
|
||||
" WHERE j.member_id = %lu AND j.status=1 "
|
||||
@@ -264,6 +264,11 @@ long WrenchJobManagerList( CVars in, CVars &out){
|
||||
|
||||
snprintf(vname, sizeof (vname), "job_uid_%05d", i);
|
||||
out[vname] = rec["uid"];
|
||||
|
||||
snprintf(vname, sizeof (vname), "created_%05d", i);
|
||||
out[vname] = rec["job_create_date"];
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
ret = PHP_API_OK;
|
||||
|
||||
Reference in New Issue
Block a user