Commit 887cd8fb by Jansa Jose

changes in webservice

parent 469b808f
...@@ -71,7 +71,7 @@ public function getBookedService($postData = array(),$start = '',$per_page = '', ...@@ -71,7 +71,7 @@ public function getBookedService($postData = array(),$start = '',$per_page = '',
}else{ }else{
$stat = array('3'); $stat = array('3');
} }
$where = array('BUK.status'=>$status,'MCHBUK.mechanic_id'=>$postData['mechanic_id']); $where = array('MCHBUK.mechanic_id'=>$postData['mechanic_id']);
if(isset($postData['service_id']) && !empty($postData['service_id'])){ if(isset($postData['service_id']) && !empty($postData['service_id'])){
$where['BUK.booking_id'] = $postData['service_id']; $where['BUK.booking_id'] = $postData['service_id'];
} }
...@@ -96,6 +96,7 @@ public function getBookedService($postData = array(),$start = '',$per_page = '', ...@@ -96,6 +96,7 @@ public function getBookedService($postData = array(),$start = '',$per_page = '',
$this->db->limit($per_page,$start); $this->db->limit($per_page,$start);
} }
$bookData = $this->db->get(); $bookData = $this->db->get();
pr($this->db->last_query());
if(!empty($bookData) && $bookData->num_rows() > 0){ if(!empty($bookData) && $bookData->num_rows() > 0){
$bookData = $bookData->result_array(); $bookData = $bookData->result_array();
foreach ($bookData as $key => $value) { foreach ($bookData as $key => $value) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment