Commit b75002dd by HTML5-侯张振

更改文件名

parent bc28e163
<?php
/**
*销售模型
*
* @package application/model
* @version 2017-6-26
* @author 侯张振
*
*/
class Customer_model extends MY_Model{
/**
* 使用到的表
*/
public $table = 'tb_customer _sales';
/**
* 构造器
*/
public function __construct()
{
parent::__construct();
//进行数据库连接
$this->db = $this->load->database('default', true);
}
public function update_customer_sales($customerbuildingId,$sale_id){
$this->db->where('customer_building_id', $customerbuildingId);
$this->db->update('tb_customer_sales',$sale_id);
}
public function delete_sale_id($where){
$this->db->delete('tb_customer_sales',$here);
}
?>
\ 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