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
8957bc54
Commit
8957bc54
authored
Sep 19, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
3c6e3aad
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
Performance.php
application/index/controller/Performance.php
+1
-1
PerformanceService.php
application/index/service/PerformanceService.php
+15
-1
No files found.
application/index/controller/Performance.php
View file @
8957bc54
...
...
@@ -116,7 +116,7 @@ class Performance extends Basic
$end_day
=
!
empty
(
$params
[
"end_day"
])
?
$params
[
"end_day"
]
:
date
(
"Y-m-d"
,
time
());
$start_day
=
!
empty
(
$params
[
"start_day"
])
?
$params
[
"start_day"
]
:
date
(
"Y-m-01"
,
time
());
$father_id
=
!
empty
(
$params
[
"father_id"
])
?
$params
[
"father_id"
]
:
''
;
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
);
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
);
if
(
count
(
$list
)
>
0
)
{
$result
[
"list"
]
=
$list
[
'list'
];
$result
[
"total"
]
=
$list
[
'total'
];
...
...
application/index/service/PerformanceService.php
View file @
8957bc54
...
...
@@ -53,9 +53,10 @@ class PerformanceService
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
totalAgent
(
$type
,
$yesterday
,
$end_day
,
$pageNo
,
$pageSize
,
$father_id
)
public
function
totalAgent
(
$type
,
$yesterday
,
$end_day
,
$pageNo
,
$pageSize
,
$father_id
,
$params
)
{
$where_
=
[];
if
(
$father_id
){
if
(
$type
==
1
){
$where_
[
'store_id'
]
=
$father_id
;
...
...
@@ -64,6 +65,19 @@ class PerformanceService
}
}
//区域搜索条件
if
(
!
empty
(
$params
[
'district_id'
]))
{
$where_
[
'district_id'
]
=
$params
[
'district_id'
];
}
//部门搜索条件
if
(
!
empty
(
$params
[
'store_id'
]))
{
$where_
[
'store_id'
]
=
$params
[
'store_id'
];
}
//经纪人搜索条件
if
(
!
empty
(
$params
[
'agent_id'
]))
{
$where_
[
'agent_id'
]
=
$params
[
'agent_id'
];
}
$where_
[
'total_time'
]
=
array
(
'between'
,
array
(
$end_day
,
$yesterday
)
);
/* 成交报告数 bargain_sum
...
...
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