@@ -263,7 +279,7 @@ class newHouseList extends UGEN_List_Table
left join(select user_id as aus_id,house_id,user_type from a_house_user) ahu on th.id = ahu.house_id and ahu.user_type=1
left join(select id as consul_id,name as consul_name,subsidiaryId from tospur_consultant) tc on ahu.aus_id = tc.consul_id
left join(select status_name,status_type,status_id from tospur_status)ts on th.status = ts.status_id and ts.status_type=1
left join(select status_name as approvalName,status_type,status_id from tospur_status)tss on th.approval = tss.status_id and tss.status_type=1
left join(select status_name as approvalName,status_type as p_status_type,status_id as p_status_id from tospur_status)tss on th.approval = tss.p_status_id and tss.p_status_type=1
@@ -286,14 +305,14 @@ class rentHouseList extends UGEN_List_Table
left join(select id as consul_id,name as consul_name,subsidiaryId from tospur_consultant) tc on ahu.aus_id = tc.consul_id
left join(select value,literal from dic_buildproperty) db on if(th.buildproperty_id>5,5,th.buildproperty_id) = db.value
left join(select status_name,status_type,status_id from tospur_status)ts on th.status = ts.status_id and ts.status_type=2
left join(select status_name as approvalName,status_type,status_id from tospur_status)tss on th.approval = tss.status_id and tss.status_type=2
left join(select status_name as approvalName,status_type as p_status_type,status_id as p_status_id from tospur_status)tss on th.approval = tss.p_status_id and tss.p_status_type=2
@@ -290,7 +309,6 @@ class secHandHouseList extends UGEN_List_Table
{
global$wpdb;
$params=array();
$per_page=10;
$columns=$this->get_columns();
$hidden=array();
$sortable=$this->get_sortable_columns();
...
...
@@ -312,7 +330,7 @@ class secHandHouseList extends UGEN_List_Table
left join(select id as consul_id,name as consul_name,subsidiaryId from tospur_consultant) tc on ahu.aus_id = tc.consul_id
left join(select value ,literal from dic_buildproperty) db on if(th.buildproperty_id>5,5,th.buildproperty_id) = db.value
left join(select status_name,status_type,status_id from tospur_status)ts on th.status = ts.status_id and ts.status_type=2
left join(select status_name as approvalName,status_type,status_id from tospur_status)tss on th.approval = tss.status_id and tss.status_type=2
left join(select status_name as approvalName,status_type as p_status_type,status_id as p_status_id from tospur_status)tss on th.approval = tss.p_status_id and tss.p_status_type=2
where 1=1 and house_type=1 ";
if(!isset($_REQUEST["status"])){
...
...
@@ -320,7 +338,7 @@ class secHandHouseList extends UGEN_List_Table