contract uid
This commit is contained in:
@@ -193,7 +193,9 @@ long MemberCouponList( CVars in, CVars &out ){
|
||||
out["total_record"] = "0";
|
||||
const PGresult *res;
|
||||
|
||||
res = pgsql_query("SELECT id AS coupon_id, ca.code, ca.amount, ca.added::date,ca.status FROM coupons_allocation ca WHERE ca.member_id = %lu AND %s ORDER BY ca.id DESC", in["member_id"].Long(),in["active_q"].c_str());
|
||||
res = pgsql_query(" SELECT id AS coupon_id, ca.code, ca.amount, ca.added::date,ca.status "
|
||||
" FROM coupons_allocation ca WHERE ca.member_id = %lu "
|
||||
" AND %s ORDER BY ca.id DESC", in["member_id"].Long(),in["active_q"].c_str());
|
||||
|
||||
if (res != NULL && pgsql_num_rows(res) > 0) {
|
||||
out["total_record"] = pgsql_num_rows(res);
|
||||
|
||||
Reference in New Issue
Block a user