Backend Service

This commit is contained in:
2019-04-07 19:10:36 +00:00
parent f1a004d2d0
commit 53545a5ae7
5 changed files with 32 additions and 36 deletions
@@ -566,6 +566,7 @@ long getMemberPractice(CVars in, CVars &out) {
out["total_record"] = "0";
const PGresult *res = pgsql_query("SELECT p.id AS patient_id,p.status AS patient_status, pra.* FROM patients p LEFT JOIN practice pra ON pra.id=p.practice_id WHERE p.member_id = %lu", in["member_id"].Long());
if (res != NULL && pgsql_num_rows(res) > 0) {
out["total_record"] = pgsql_num_rows(res);