Slaes JSON Test Purpose : ps
This commit is contained in:
parent
60a663af54
commit
f46a8a7099
@ -1258,7 +1258,7 @@ public function filterSalesPDList_post() {
|
||||
//CAMUNDA::startSalesPDInstance(1);
|
||||
}
|
||||
public function testSaleSection_get(){
|
||||
$data = $this->Sales_PD_Model->testmydata();
|
||||
$data = $this->Sales_PD_Model->testSaleSection($this->get('id'));
|
||||
$this->response($data,REST_Controller::HTTP_OK);
|
||||
}
|
||||
}
|
||||
|
||||
@ -80,8 +80,8 @@ class Sales_PD_Model extends SPARQ_Model {
|
||||
//echo $this->db->last_query();die();
|
||||
return $result;
|
||||
}
|
||||
public function testmydata(){
|
||||
$this->db->SELECT('*')->FROM("t_salespd_section_data")->WHERE('sales_pd_id',455)->WHERE('isactive',1)->WHERE('section_id',1);
|
||||
public function testSaleSection($id){
|
||||
$this->db->SELECT('*')->FROM("t_salespd_section_data")->WHERE('sales_pd_id',$id)->WHERE('isactive',1);
|
||||
$query = $this->db->get();
|
||||
return $query->result();
|
||||
// $sql = 'insert into sineedgeprod.t_salespd_section_data(sales_pd_id, section_id, status, section_data, createdby, isactive) select sales_pd_id, section_id, status, section_data, createdby, isactive from sineedgeprod.t_salespd_section_data WHERE sales_pd_id = 1768 and section_id = 1 and isactive = 1;';
|
||||
|
||||
Loading…
Reference in New Issue
Block a user