Commit f96187d2 by HTML5-侯张振

新接口更改

parent fde3c330
...@@ -31,7 +31,12 @@ class Customer_sales_model extends MY_Model{ ...@@ -31,7 +31,12 @@ class Customer_sales_model extends MY_Model{
$this->db->delete('tb_customer_sales',$where); $this->db->delete('tb_customer_sales',$where);
} }
public function add_sale_id($where){ public function add_sale_id($where){
$this->db->add('tb_customer_sales',$where); $sql="insert into tb_customer_sales (customer_building_id,sale_id,create_time) values (".$where['customer_building_id'].",".$where['sale_id'].",".$where['create_time'].")";
if($this->db->query($sql)){
return true;
}else {
return false;
}
} }
} }
?> ?>
\ 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