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
fde3c330
Commit
fde3c330
authored
Jun 26, 2017
by
HTML5-侯张振
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新接口修改
parent
b6787164
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
1 deletions
+5
-1
report.php
html/application/controllers/admin/report.php
+1
-1
customer_sales_model.php
html/application/models/customer_sales_model.php
+4
-0
No files found.
html/application/controllers/admin/report.php
View file @
fde3c330
...
@@ -537,7 +537,7 @@ class Report extends CI_Controller
...
@@ -537,7 +537,7 @@ class Report extends CI_Controller
$customersales
[
'customer_building_id'
]
=
$customerBuilding
[
'id'
];
$customersales
[
'customer_building_id'
]
=
$customerBuilding
[
'id'
];
$customersales
[
'sale_id'
]
=
$checksales
;
$customersales
[
'sale_id'
]
=
$checksales
;
$customersales
[
'create_time'
]
=
time
();
$customersales
[
'create_time'
]
=
time
();
$this
->
customer_sales
->
add
(
$customersales
);
$this
->
customer_sales
->
add
_sale_id
(
$customersales
);
}
}
$datasales
[
'user_id'
]
=
$customerBuilding
[
'user_id'
];
$datasales
[
'user_id'
]
=
$customerBuilding
[
'user_id'
];
$datasales
[
'customer_id'
]
=
$customerBuilding
[
'customer_id'
];
$datasales
[
'customer_id'
]
=
$customerBuilding
[
'customer_id'
];
...
...
html/application/models/customer_sales_model.php
View file @
fde3c330
...
@@ -30,5 +30,8 @@ class Customer_sales_model extends MY_Model{
...
@@ -30,5 +30,8 @@ class Customer_sales_model extends MY_Model{
public
function
delete_sale_id
(
$where
){
public
function
delete_sale_id
(
$where
){
$this
->
db
->
delete
(
'tb_customer_sales'
,
$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
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