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
8a998c34
Commit
8a998c34
authored
Aug 26, 2019
by
zhuwei
Committed by
hujun
Aug 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
ba95df31
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
13 additions
and
20 deletions
+13
-20
OfficePerformance.php
application/index/controller/OfficePerformance.php
+1
-1
Performance.php
application/index/controller/Performance.php
+3
-9
OfficePerformanceService.php
application/index/service/OfficePerformanceService.php
+6
-7
PerformanceService.php
application/index/service/PerformanceService.php
+3
-3
No files found.
application/index/controller/OfficePerformance.php
View file @
8a998c34
...
@@ -53,7 +53,7 @@ class OfficePerformance extends Basic
...
@@ -53,7 +53,7 @@ class OfficePerformance extends Basic
//判断是否是导出EXCEL
//判断是否是导出EXCEL
$is_excel
=
!
empty
(
$params
[
"is_excel"
])
?
$params
[
"is_excel"
]
:
''
;
$is_excel
=
!
empty
(
$params
[
"is_excel"
])
?
$params
[
"is_excel"
]
:
''
;
if
(
$is_excel
==
1
){
if
(
$is_excel
==
1
){
$
list
=
$
this
->
service_
->
totalAgentExcel
(
$params
[
"type"
],
$end_day
,
$start_day
,
$father_id
,
$params
);
$this
->
service_
->
totalAgentExcel
(
$params
[
"type"
],
$end_day
,
$start_day
,
$father_id
,
$params
);
}
}
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
);
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
);
//dump($list);
//dump($list);
...
...
application/index/controller/Performance.php
View file @
8a998c34
...
@@ -55,10 +55,9 @@ class Performance extends Basic
...
@@ -55,10 +55,9 @@ class Performance extends Basic
//判断是否是导出EXCEL
//判断是否是导出EXCEL
$is_excel
=
!
empty
(
$params
[
"is_excel"
])
?
$params
[
"is_excel"
]
:
''
;
$is_excel
=
!
empty
(
$params
[
"is_excel"
])
?
$params
[
"is_excel"
]
:
''
;
if
(
$is_excel
==
1
){
if
(
$is_excel
==
1
){
$
list
=
$
this
->
service_
->
totalAgentExcel
(
$params
[
"type"
],
$end_day
,
$start_day
,
$father_id
,
$params
);
$this
->
service_
->
totalAgentExcel
(
$params
[
"type"
],
$end_day
,
$start_day
,
$father_id
,
$params
);
}
}
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
);
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
);
//dump($list);
if
(
count
(
$list
)
>
0
)
{
if
(
count
(
$list
)
>
0
)
{
$result
[
"list"
]
=
$list
[
'list'
];
$result
[
"list"
]
=
$list
[
'list'
];
$result
[
"total"
]
=
$list
[
'total'
];
$result
[
"total"
]
=
$list
[
'total'
];
...
@@ -73,8 +72,6 @@ class Performance extends Basic
...
@@ -73,8 +72,6 @@ class Performance extends Basic
}
}
// 门店排行 Store
/**
/**
* 门店排行
* 门店排行
...
@@ -101,7 +98,7 @@ class Performance extends Basic
...
@@ -101,7 +98,7 @@ class Performance extends Basic
//判断是否是导出EXCEL
//判断是否是导出EXCEL
$is_excel
=
!
empty
(
$params
[
"is_excel"
])
?
$params
[
"is_excel"
]
:
''
;
$is_excel
=
!
empty
(
$params
[
"is_excel"
])
?
$params
[
"is_excel"
]
:
''
;
if
(
$is_excel
==
1
){
if
(
$is_excel
==
1
){
$
list
=
$
this
->
service_
->
totalAgentExcel
(
$params
[
"type"
],
$end_day
,
$start_day
,
$father_id
,
$params
);
$this
->
service_
->
totalAgentExcel
(
$params
[
"type"
],
$end_day
,
$start_day
,
$father_id
,
$params
);
}
}
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
);
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
);
if
(
count
(
$list
)
>
0
)
{
if
(
count
(
$list
)
>
0
)
{
...
@@ -119,8 +116,6 @@ class Performance extends Basic
...
@@ -119,8 +116,6 @@ class Performance extends Basic
}
}
// 个人业绩排行 Individual
/**
/**
* 个人业绩排行
* 个人业绩排行
...
@@ -150,10 +145,9 @@ class Performance extends Basic
...
@@ -150,10 +145,9 @@ class Performance extends Basic
//判断是否是导出EXCEL
//判断是否是导出EXCEL
$is_excel
=
!
empty
(
$params
[
"is_excel"
])
?
$params
[
"is_excel"
]
:
''
;
$is_excel
=
!
empty
(
$params
[
"is_excel"
])
?
$params
[
"is_excel"
]
:
''
;
if
(
$is_excel
==
1
){
if
(
$is_excel
==
1
){
$
list
=
$
this
->
service_
->
totalAgentExcel
(
$params
[
"type"
],
$end_day
,
$start_day
,
$father_id
,
$params
);
$this
->
service_
->
totalAgentExcel
(
$params
[
"type"
],
$end_day
,
$start_day
,
$father_id
,
$params
);
}
}
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
);
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
);
//dump($list);
if
(
count
(
$list
)
>
0
)
{
if
(
count
(
$list
)
>
0
)
{
$result
[
"list"
]
=
$list
[
'list'
];
$result
[
"list"
]
=
$list
[
'list'
];
$result
[
"total"
]
=
$list
[
'total'
];
$result
[
"total"
]
=
$list
[
'total'
];
...
...
application/index/service/OfficePerformanceService.php
View file @
8a998c34
...
@@ -51,19 +51,19 @@ class OfficePerformanceService
...
@@ -51,19 +51,19 @@ class OfficePerformanceService
/**
/**
* @param $agent_id
* @param $type
* @param $type
* @param $yesterday
* @param $yesterday
* @param $end_day
* @param $end_day
* @param $pageNo
* @param $pageSize
* @param $father_id
* @param $params
* @return array
* @return array
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
*/
public
function
totalAgent
(
$type
,
$yesterday
,
$end_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
)
public
function
totalAgent
(
$type
,
$yesterday
,
$end_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
)
{
{
$order_
=
$params
[
'order'
];
$order_
=
$params
[
'order'
];
$where_
=
[]
;
$where_
[
"a.is_del"
]
=
0
;
if
(
$father_id
){
if
(
$father_id
){
if
(
$type
==
1
){
if
(
$type
==
1
){
$where_
[
'a.store_id'
]
=
$father_id
;
$where_
[
'a.store_id'
]
=
$father_id
;
...
@@ -308,8 +308,7 @@ class OfficePerformanceService
...
@@ -308,8 +308,7 @@ class OfficePerformanceService
*/
*/
public
function
totalAgentExcel
(
$type
,
$yesterday
,
$end_day
,
$father_id
,
$params
)
public
function
totalAgentExcel
(
$type
,
$yesterday
,
$end_day
,
$father_id
,
$params
)
{
{
$where_
[
"a.is_del"
]
=
0
;
$where_
=
[];
$e_data_new
=
[];
$e_data_new
=
[];
if
(
$father_id
){
if
(
$father_id
){
if
(
$type
==
1
){
if
(
$type
==
1
){
...
...
application/index/service/PerformanceService.php
View file @
8a998c34
...
@@ -64,7 +64,8 @@ class PerformanceService
...
@@ -64,7 +64,8 @@ class PerformanceService
public
function
totalAgent
(
$type
,
$yesterday
,
$end_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
)
public
function
totalAgent
(
$type
,
$yesterday
,
$end_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
)
{
{
$order_
=
$params
[
'order'
];
$order_
=
$params
[
'order'
];
$where_
=
[];
$where_
[
"a.is_del"
]
=
0
;
if
(
$father_id
){
if
(
$father_id
){
if
(
$type
==
1
){
if
(
$type
==
1
){
$where_
[
'a.store_id'
]
=
$father_id
;
$where_
[
'a.store_id'
]
=
$father_id
;
...
@@ -329,8 +330,7 @@ class PerformanceService
...
@@ -329,8 +330,7 @@ class PerformanceService
*/
*/
public
function
totalAgentExcel
(
$type
,
$yesterday
,
$end_day
,
$father_id
,
$params
)
public
function
totalAgentExcel
(
$type
,
$yesterday
,
$end_day
,
$father_id
,
$params
)
{
{
$where_
[
"a.is_del"
]
=
0
;
$where_
=
[];
$e_data_new
=
[];
$e_data_new
=
[];
if
(
$father_id
){
if
(
$father_id
){
if
(
$type
==
1
){
if
(
$type
==
1
){
...
...
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