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
c3fe7cb8
Commit
c3fe7cb8
authored
Aug 28, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug,代码优化
parent
a6e4648f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
21 deletions
+14
-21
Performance.php
application/index/controller/Performance.php
+14
-14
PerformanceInfo.php
application/index/controller/PerformanceInfo.php
+0
-7
PerformanceService.php
application/index/service/PerformanceService.php
+0
-0
No files found.
application/index/controller/Performance.php
View file @
c3fe7cb8
...
@@ -63,11 +63,11 @@ class Performance extends Basic
...
@@ -63,11 +63,11 @@ class Performance extends Basic
{
{
header
(
'Access-Control-Allow-Origin:*'
);
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
$params
=
$this
->
params
;
//
$params = array(
/*
$params = array(
//
"type" => 3, //1表示个人业绩排行 2门店 3区域
"type" => 3, //1表示个人业绩排行 2门店 3区域
////
"end_day" => "",
"end_day" => "",
////
"start_day" =>"",
"start_day" =>"",
// );
);*/
$params
[
"type"
]
=
3
;
$params
[
"type"
]
=
3
;
...
@@ -104,10 +104,10 @@ class Performance extends Basic
...
@@ -104,10 +104,10 @@ class Performance extends Basic
{
{
header
(
'Access-Control-Allow-Origin:*'
);
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
$params
=
$this
->
params
;
//
$params = array(
/*
$params = array(
//
"start_day" => '2018-08-08',
"start_day" => '2018-08-08',
//
"end_day" => '2018-08-08',
"end_day" => '2018-08-08',
// );
);*/
$params
[
"type"
]
=
2
;
$params
[
"type"
]
=
2
;
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
...
@@ -139,11 +139,11 @@ class Performance extends Basic
...
@@ -139,11 +139,11 @@ class Performance extends Basic
{
{
header
(
'Access-Control-Allow-Origin:*'
);
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
$params
=
$this
->
params
;
//
$params = array(
/*
$params = array(
// "type"
=> 1, //1表示个人业绩排行 2门店 3区域
"type"
=> 1, //1表示个人业绩排行 2门店 3区域
// // "end_day"
=> "",
"end_day"
=> "",
// // "start_day" =>
"",
"start_day" =>
"",
// );
);*/
$params
[
"type"
]
=
1
;
$params
[
"type"
]
=
1
;
...
...
application/index/controller/PerformanceInfo.php
View file @
c3fe7cb8
...
@@ -157,8 +157,6 @@ class PerformanceInfo extends Basic
...
@@ -157,8 +157,6 @@ class PerformanceInfo extends Basic
$where
[
'Agent.phone'
]
=
[
'like'
,
'%'
.
$this
->
params
[
'phone'
]
.
'%'
];
$where
[
'Agent.phone'
]
=
[
'like'
,
'%'
.
$this
->
params
[
'phone'
]
.
'%'
];
}
}
$field
=
'Obargain.create_time,'
;
$field
=
'Obargain.create_time,'
;
$field
.=
'Obargain.trade_type,'
;
$field
.=
'Obargain.trade_type,'
;
$field
.=
'Houses.landmark,'
;
$field
.=
'Houses.landmark,'
;
...
@@ -178,7 +176,6 @@ class PerformanceInfo extends Basic
...
@@ -178,7 +176,6 @@ class PerformanceInfo extends Basic
$export
=
new
ExportExcelUntil
();
$export
=
new
ExportExcelUntil
();
foreach
(
$return
as
$key
=>
$v
)
{
foreach
(
$return
as
$key
=>
$v
)
{
$e_data_old
[
'create_time'
]
=
$v
[
'create_time'
];
//提交时间
$e_data_old
[
'create_time'
]
=
$v
[
'create_time'
];
//提交时间
...
@@ -191,7 +188,6 @@ class PerformanceInfo extends Basic
...
@@ -191,7 +188,6 @@ class PerformanceInfo extends Basic
}
else
{
}
else
{
$e_data_old
[
'trade_type'
]
=
"好处费"
;
$e_data_old
[
'trade_type'
]
=
"好处费"
;
}
}
$e_data_old
[
'landmark'
]
=
$v
[
'landmark'
];
//商铺地址
$e_data_old
[
'landmark'
]
=
$v
[
'landmark'
];
//商铺地址
$e_data_old
[
'house_id'
]
=
$v
[
'house_id'
];
//商铺编号
$e_data_old
[
'house_id'
]
=
$v
[
'house_id'
];
//商铺编号
$e_data_old
[
'name_phone'
]
=
$v
[
'name'
]
.
'-'
.
$v
[
'phone'
];
//分佣提成方
$e_data_old
[
'name_phone'
]
=
$v
[
'name'
]
.
'-'
.
$v
[
'phone'
];
//分佣提成方
...
@@ -202,10 +198,7 @@ class PerformanceInfo extends Basic
...
@@ -202,10 +198,7 @@ class PerformanceInfo extends Basic
$e_data_new
[]
=
$e_data_old
;
$e_data_new
[]
=
$e_data_old
;
}
}
$title
=
[
'提交时间'
,
'成交类型'
,
'商铺地址'
,
'商铺编号'
,
'分佣提成方'
,
'所属部门门店'
,
'分佣比例'
,
'应收佣金'
,
'实收佣金'
];
$title
=
[
'提交时间'
,
'成交类型'
,
'商铺地址'
,
'商铺编号'
,
'分佣提成方'
,
'所属部门门店'
,
'分佣比例'
,
'应收佣金'
,
'实收佣金'
];
$export
->
exportTable
(
'业绩明细'
,
$e_data_new
,
10
,
'业绩明细表'
,
$title
);
$export
->
exportTable
(
'业绩明细'
,
$e_data_new
,
10
,
'业绩明细表'
,
$title
);
return
''
;
return
''
;
}
}
...
...
application/index/service/PerformanceService.php
View file @
c3fe7cb8
This diff is collapsed.
Click to expand it.
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