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
7bb99c2c
Commit
7bb99c2c
authored
Jun 28, 2017
by
html5-李恒逸
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
更改bug
parent
f1743476
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
8 deletions
+8
-8
distributionadmin.php
html/application/controllers/admin/distributionadmin.php
+1
-1
report.php
html/application/controllers/admin/report.php
+7
-7
No files found.
html/application/controllers/admin/distributionadmin.php
View file @
7bb99c2c
...
...
@@ -419,7 +419,7 @@ class Distributionadmin extends CI_Controller
$channelInfo
=
$query
->
result_array
();
//查找此销管 绑定 此分销商的所有项目,并且不允许修改
$buildings
=
$this
->
building_distributor
->
get_has_building
(
'R.
user_id ='
.
$uid
.
' and R.
distributor_id = '
.
$id
);
$buildings
=
$this
->
building_distributor
->
get_has_building
(
'R.distributor_id = '
.
$id
);
$this
->
data
[
'buildings'
]
=
$buildings
;
$this
->
data
[
'channelInfo'
]
=
$channelInfo
;
...
...
html/application/controllers/admin/report.php
View file @
7bb99c2c
...
...
@@ -66,7 +66,7 @@ class Report extends CI_Controller
* @version 2016-10-14
*/
public
function
index
(
$page_no
=
1
)
{
{
// $this->load->model('sales_model','sales');
// $this->load->helper('eas');
// $api=new easApi;
...
...
@@ -82,7 +82,7 @@ class Report extends CI_Controller
// }else{
// $checksalesnum=$checksalesID['user_id'];
// }
//
//
// };
// exit;
$get
=
$this
->
input
->
get
();
...
...
@@ -519,9 +519,9 @@ class Report extends CI_Controller
foreach
(
$customerId
as
$value
)
{
//获取接口返回值
$results
=
$api
->
newgetCustomerVisit
(
array
(
'customer_id'
=>
$value
[
'rongchuang_id'
]));
if
(
!
empty
(
$results
)){
if
(
!
empty
(
$results
)){
$entity_id
=
$this
->
customer_building
->
get_building_id
(
$value
[
'id'
]);
$customerBuilding
=
$this
->
customer_building
->
get
(
array
(
'id'
=>
$entity_id
[
'id'
]));
//获取返回的sale_id
$checksalesnum
=
array
();
...
...
@@ -534,7 +534,7 @@ class Report extends CI_Controller
if
(
!
(
$customer_sales_id
==
$checksalesnum
)){
$this
->
customer_sales
->
delete_sale_id
(
array
(
'customer_building_id'
=>
$customerBuilding
[
'id'
]));
foreach
(
$checksalesnum
as
$checksales
){
$customersales
[
'customer_building_id'
]
=
$customerBuilding
[
'id'
];
$customersales
[
'sale_id'
]
=
$checksales
[
'sale_id'
];
$customersales
[
'create_time'
]
=
time
();
...
...
@@ -562,7 +562,7 @@ class Report extends CI_Controller
if
(
$customerBuilding
[
'recommend_status'
]
<
2
){
$this
->
customer_building
->
update_customer_building
(
$value
[
'id'
],
array
(
'recommend_status'
=>
2
));
$customerBuilding
[
'recommend_status'
]
=
2
;
}
}
//记录客户跟进信息
if
(
$customerBuilding
)
{
$dataLog
[
'user_id'
]
=
$customerBuilding
[
'user_id'
];
...
...
@@ -1107,7 +1107,7 @@ class Report extends CI_Controller
if
(
!
empty
(
$manager_info
)
&&
$manager_info
[
'role_id'
]
==
'10'
)
{
$userInfo
=
$this
->
relate
->
get
(
array
(
'
user_id'
=>
$manager_id
,
'
distributor_id'
=>
$distributor_id
,
'building_id'
=>
$building_id
));
$userInfo
=
$this
->
relate
->
get
(
array
(
'distributor_id'
=>
$distributor_id
,
'building_id'
=>
$building_id
));
if
(
!
$userInfo
)
{
...
...
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