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
f96187d2
Commit
f96187d2
authored
Jun 26, 2017
by
HTML5-侯张振
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新接口更改
parent
fde3c330
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletions
+7
-1
customer_sales_model.php
html/application/models/customer_sales_model.php
+7
-1
No files found.
html/application/models/customer_sales_model.php
View file @
f96187d2
...
@@ -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
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