Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
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
hujun
tl_estate
Commits
90bb6a44
Commit
90bb6a44
authored
Oct 30, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
业绩明细
parent
ca0fa546
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
PerformanceInfo.php
application/index/controller/PerformanceInfo.php
+11
-5
No files found.
application/index/controller/PerformanceInfo.php
View file @
90bb6a44
...
...
@@ -96,7 +96,7 @@ class PerformanceInfo extends Basic
$field
.=
'Obargain.scale_fee,'
;
$field
.=
'Obargain.order_id,'
;
$field
.=
'Obargain.role,'
;
$field
.=
'Obargain.price,'
;
$field
.=
'Obargain.price,'
;
//pricec成交价格
$field
.=
'Agent.name,'
;
$field
.=
'Agent.phone,'
;
$field
.=
'Store.store_name,'
;
...
...
@@ -176,9 +176,11 @@ class PerformanceInfo extends Basic
$field
=
'Obargain.create_time,'
;
$field
.=
'Obargain.id,'
;
$field
.=
'Obargain.father_id,'
;
$field
.=
'Obargain.trade_type,'
;
$field
.=
'Houses.internal_address,'
;
$field
.=
'Oorder.house_id,'
;
$field
.=
'Obargain.price,'
;
//pricec成交价格
$field
.=
'Agent.name,'
;
$field
.=
'Agent.phone,'
;
$field
.=
'Store.store_name,'
;
...
...
@@ -195,6 +197,10 @@ class PerformanceInfo extends Basic
$export
=
new
ExportExcelUntil
();
$e_data_new
=
[];
foreach
(
$return
as
$key
=>
$v
)
{
$e_data_old
[
'bargain_id'
]
=
$v
[
"father_id"
]
==
0
?
$v
[
"id"
]
:
$v
[
"father_id"
];
$e_data_old
[
'commission_id'
]
=
$v
[
"id"
]
;
$e_data_old
[
'create_time'
]
=
$v
[
'create_time'
];
//提交时间
if
(
$v
[
'trade_type'
]
==
10
){
...
...
@@ -209,9 +215,8 @@ class PerformanceInfo extends Basic
//商铺地址截取字符串前3位,后面做隐藏 --暂时不用,后期可直接解除注释
//$landmark = $v["landmark"] ? mb_substr($v["landmark"],0,3,'utf-8').'****' : '';
$e_data_old
[
'landmark'
]
=
$v
[
"internal_address"
];
//商铺地址
// $landmark = $v["internal_address"] ? mb_substr($v["internal_address"],0,3,'utf-8').'****' : '';
$e_data_old
[
'landmark'
]
=
$v
[
"internal_address"
]
?
mb_substr
(
$v
[
"internal_address"
],
0
,
3
,
'utf-8'
)
.
'****'
:
''
;
//商铺地址
$e_data_old
[
'house_id'
]
=
$v
[
'house_id'
];
//商铺编号
//$e_data_old['name_phone'] = $v['name'].'-'.$v['phone'];//分佣提成方
$e_data_old
[
'name_phone'
]
=
$v
[
'name'
];
//分佣提成方
...
...
@@ -220,10 +225,11 @@ class PerformanceInfo extends Basic
$e_data_old
[
'scale'
]
=
$v
[
'scale'
];
//分佣比例
$e_data_old
[
'scale_fee'
]
=
$v
[
'scale_fee'
];
//应收佣金
$e_data_old
[
'practical_fee'
]
=
$v
[
'practical_fee'
];
//实收佣金
$e_data_old
[
'price'
]
=
$v
[
'price'
];
//成交价
$e_data_new
[]
=
$e_data_old
;
}
$title
=
[
'
提交时间'
,
'成交类型'
,
'商铺地址'
,
'商铺编号'
,
'分佣提成方'
,
'所属部门门店'
,
'分佣比例'
,
'应收佣金'
,
'实收佣金'
];
$title
=
[
'
成交报告ID'
,
'分佣ID'
,
'提交时间'
,
'成交类型'
,
'商铺地址'
,
'商铺编号'
,
'分佣提成方'
,
'所属部门门店'
,
'分佣比例'
,
'应分佣金'
,
'实收佣金'
,
'成交价'
];
$export
->
exportTable
(
'业绩明细'
,
$e_data_new
,
count
(
$e_data_new
[
0
]),
'业绩明细表'
,
$title
);
return
''
;
}
...
...
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