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
a90376a4
Commit
a90376a4
authored
Jun 26, 2017
by
HTML5-侯张振
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新接口错误更改
parent
e040b331
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
4 deletions
+3
-4
report.php
html/application/controllers/admin/report.php
+3
-4
No files found.
html/application/controllers/admin/report.php
View file @
a90376a4
...
...
@@ -515,7 +515,6 @@ class Report extends CI_Controller
//获取接口返回值
$results
=
$api
->
newgetCustomerVisit
(
array
(
'customer_id'
=>
$value
[
'rongchuang_id'
]));
if
(
!
empty
(
$results
)){
$entity_id
=
$this
->
customer_building
->
get_building_id
(
$value
[
'id'
]);
$customerBuilding
=
$this
->
customer_building
->
get
(
array
(
'id'
=>
$entity_id
[
'id'
]));
...
...
@@ -527,7 +526,7 @@ class Report extends CI_Controller
if
(
count
(
$checksales
,
COUNT_NORMAL
)
>
1
){
$checksalesnum
[]
=
$checksalesID
[
'user_id'
];
}
else
{
$checksalesnum
=
$checksalesID
[
'user_id'
];
$checksalesnum
[]
=
$checksalesID
[
'user_id'
];
}
};
$customer_sales_id
=
$this
->
customer_building
->
get_sale_id
(
array
(
'customer_building_id'
=>
$customerBuilding
[
'id'
]));
...
...
@@ -535,8 +534,8 @@ class Report extends CI_Controller
$this
->
customer_sales
->
delete_sale_id
(
array
(
'customer_building_id'
=>
$customerBuilding
[
'id'
]));
foreach
(
$checksalesnum
as
$checksales
){
$customer_sales
[
'customer_building_id'
]
=
$customerBuilding
[
'id'
];
$customer_sales
[
'sale_id'
]
=
$checksales
[
'user_id'
]
;
$customer_sales
[
'create_time'
]
=
time
r
();
$customer_sales
[
'sale_id'
]
=
$checksales
;
$customer_sales
[
'create_time'
]
=
time
();
$this
->
customer_sales
->
add
(
$customer_sales
);
}
$datasales
[
'user_id'
]
=
$customerBuilding
[
'user_id'
];
...
...
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