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
66166503
Commit
66166503
authored
Aug 08, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
03edd457
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
9 deletions
+7
-9
Performance.php
application/api_broker/controller/Performance.php
+3
-4
PerformanceService.php
application/api_broker/service/PerformanceService.php
+4
-5
No files found.
application/api_broker/controller/Performance.php
View file @
66166503
...
...
@@ -47,12 +47,11 @@ class Performance extends Basic
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
//默认排序一周 2018-07-18改为本月
$end_day
=
!
empty
(
$params
[
"end_day"
])
?
$params
[
"end_day"
]
:
date
(
"Y-m-d"
,
strtotime
(
"+1 day"
));
$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
());
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"agent_id"
],
$params
[
"type"
],
$end_day
,
$start_day
);
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"agent_id"
],
$params
[
"type"
],
$start_day
,
$end_day
);
if
(
count
(
$list
)
>
0
)
{
$result
[
"list"
]
=
$list
;
$result
[
"start_time"
]
=
$start_day
;
...
...
@@ -71,7 +70,7 @@ class Performance extends Basic
{
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
/* $params = array(
/* $params = array(
"agent_id" => 9,
"start_time" => "2018-06-20",
"end_time" => "2018-06-20",
...
...
application/api_broker/service/PerformanceService.php
View file @
66166503
...
...
@@ -66,7 +66,7 @@ class PerformanceService
}
$where_
=
[];
$where_
[
'a.create_time'
]
=
array
(
'between'
,
array
(
$
end_day
,
$yesterday
)
);
$where_
[
'a.create_time'
]
=
array
(
'between'
,
array
(
$
yesterday
.
" 00:00:00"
,
$end_day
.
" 23:59:59"
)
);
$field
=
"b.id as agent_id,b.store_id,b.district_id,sum(a.scale_fee) as performance_total"
;
$order
=
"performance_total desc"
;
...
...
@@ -126,7 +126,6 @@ class PerformanceService
}
/**
* 个人业绩
* @param $agent_id
...
...
@@ -450,9 +449,9 @@ class PerformanceService
if
(
count
(
$list
)
>
0
)
{
foreach
(
$list
as
$key
=>
$item
)
{
if
(
$is_store
==
2
)
{
if
(
$is_store
==
2
)
{
$fields
=
"a.name,b.store_name"
;
}
else
{
}
else
{
$fields
=
"c.name,b.store_name"
;
}
...
...
@@ -512,7 +511,7 @@ class PerformanceService
//dump($payLogNum);
// 监督
$result
[
"supervision_num"
]
=
$this
->
superviseModel
->
getSuperviseListCount
(
$params
);
$result
[
"supervision_num"
]
=
$this
->
superviseModel
->
getSuperviseListCount
(
$params
);
return
$result
;
}
...
...
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