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
19c90a28
Commit
19c90a28
authored
Jun 15, 2017
by
HTML5-侯张振
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改 经纪人报表,列表里没有渠道,但是导出的excel表格有渠道
parent
e678db22
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
kpiadmin.php
html/application/controllers/admin/kpiadmin.php
+4
-5
No files found.
html/application/controllers/admin/kpiadmin.php
View file @
19c90a28
...
...
@@ -277,19 +277,19 @@ class Kpiadmin extends CI_Controller
//分销商查看自己的经纪人
$uid
=
$this
->
session
->
userdata
(
'u_id'
);
$distributor
=
$this
->
distributor
->
get
(
array
(
'manager_id'
=>
$uid
));
if
(
$distributor
&&
$distributor
[
'uniqid_id'
])
{
$where
.=
' U.uniqid_id ='
.
$distributor
[
'uniqid_id'
];
}
$where
=
trim
(
$where
,
' and '
);
$count
=
$this
->
customer
->
get_agents_page_count
(
$where
);
//获取所有的客户
$this
->
data
[
'agents'
]
=
array
();
if
(
$count
>
0
){
$agents
=
$this
->
customer
->
get_agents_page
(
$where
,
$page_no
,
self
::
PAGE_SIZE
);
if
(
$agents
)
{
foreach
(
$agents
as
$key
=>
$agent
)
{
...
...
@@ -586,13 +586,12 @@ class Kpiadmin extends CI_Controller
$temp
[
'user_mobile'
]
=
$item
[
'user_mobile'
];
$temp
[
'building_title'
]
=
iconv
(
'utf-8'
,
'gbk'
,
$item
[
'building_title'
]);
$temp
[
'customers'
]
=
$item
[
'customers'
];
$temp
[
'channel'
]
=
iconv
(
'utf-8'
,
'gbk'
,
$item
[
'channel_name'
]);
array_push
(
$data
,
$temp
);
}
}
//导出
$titles
=
'经纪人,联系电话,推荐项目名称,客户数
,渠道
'
;
$titles
=
'经纪人,联系电话,推荐项目名称,客户数'
;
$titles
=
iconv
(
'utf-8'
,
'gbk'
,
$titles
);
$file
=
iconv
(
'utf-8'
,
'gbk'
,
'经纪人数据列表.xls'
);
$this
->
export
->
export_excel
(
$file
,
$titles
,
$data
);
...
...
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