Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac-quanmin
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
HTML5-李恒逸
sunac-quanmin
Commits
b75002dd
Commit
b75002dd
authored
Jun 26, 2017
by
HTML5-侯张振
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改文件名
parent
bc28e163
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
34 additions
and
0 deletions
+34
-0
customer_sales_model.php
html/application/models/customer_sales_model.php
+34
-0
No files found.
html/application/models/customer_sales_model.php
0 → 100644
View file @
b75002dd
<?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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment