Commit fde3c330 by HTML5-侯张振

新接口修改

parent b6787164
......@@ -537,7 +537,7 @@ class Report extends CI_Controller
$customersales['customer_building_id'] = $customerBuilding['id'];
$customersales['sale_id'] = $checksales;
$customersales['create_time'] = time();
$this->customer_sales->add($customersales);
$this->customer_sales->add_sale_id($customersales);
}
$datasales['user_id'] = $customerBuilding['user_id'];
$datasales['customer_id'] = $customerBuilding['customer_id'];
......
......@@ -30,5 +30,8 @@ class Customer_sales_model extends MY_Model{
public function delete_sale_id($where){
$this->db->delete('tb_customer_sales',$where);
}
public function add_sale_id($where){
$this->db->add('tb_customer_sales',$where);
}
}
?>
\ No newline at end of file
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