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
d9506d69
Commit
d9506d69
authored
Aug 09, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
pc后台业绩修改
parent
acae14ae
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
15 deletions
+6
-15
Performance.php
application/index/controller/Performance.php
+5
-14
PerformanceService.php
application/index/service/PerformanceService.php
+0
-0
route.php
application/route.php
+1
-1
No files found.
application/index/controller/Performance.php
View file @
d9506d69
...
...
@@ -77,10 +77,8 @@ class Performance extends Basic
$end_day
=
!
empty
(
$params
[
"end_day"
])
?
$params
[
"end_day"
]
:
date
(
"Y-m-d"
,
time
());
$father_id
=
!
empty
(
$params
[
"father_id"
])
?
$params
[
"father_id"
]
:
''
;
//todo 业绩查询目前分三种情况
$search_time_type
=
$this
->
getSearchTimeType
(
$start_day
,
$end_day
);
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
,
$search_time_type
);
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
);
//dump($list);
if
(
count
(
$list
)
>
0
)
{
$result
[
"list"
]
=
$list
[
'list'
];
...
...
@@ -105,9 +103,8 @@ class Performance extends Basic
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
// $params = array(
// "type" => 2, //1表示个人业绩排行 2门店 3区域
// "father_id" => 4,
// // "start_day" =>"",
// "start_day" => '2018-08-08',
// "end_day" => '2018-08-08',
// );
$params
[
"type"
]
=
2
;
...
...
@@ -118,11 +115,8 @@ class Performance extends Basic
$start_day
=
!
empty
(
$params
[
"start_day"
])
?
$params
[
"start_day"
]
:
date
(
"Y-m-01"
,
time
());
$father_id
=
!
empty
(
$params
[
"father_id"
])
?
$params
[
"father_id"
]
:
''
;
//todo 业绩查询目前分三种情况
$search_time_type
=
$this
->
getSearchTimeType
(
$start_day
,
$end_day
);
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
,
$search_time_type
);
//dump($list);
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
);
if
(
count
(
$list
)
>
0
)
{
$result
[
"list"
]
=
$list
[
'list'
];
$result
[
"total"
]
=
$list
[
'total'
];
...
...
@@ -161,10 +155,7 @@ class Performance extends Basic
$start_day
=
!
empty
(
$params
[
"start_day"
])
?
$params
[
"start_day"
]
:
date
(
"Y-m-01"
,
time
());
$father_id
=
!
empty
(
$params
[
"father_id"
])
?
$params
[
"father_id"
]
:
''
;
//todo 业绩查询目前分三种情况
$search_time_type
=
$this
->
getSearchTimeType
(
$start_day
,
$end_day
);
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
,
$search_time_type
);
$list
=
$this
->
service_
->
totalAgent
(
$params
[
"type"
],
$end_day
,
$start_day
,
$pageNo
,
$pageSize
,
$father_id
);
//dump($list);
if
(
count
(
$list
)
>
0
)
{
$result
[
"list"
]
=
$list
[
'list'
];
...
...
application/index/service/PerformanceService.php
View file @
d9506d69
This diff is collapsed.
Click to expand it.
application/route.php
View file @
d9506d69
...
...
@@ -491,7 +491,7 @@ Route::group('broker', [
'agentPerformanceBySearch'
=>
[
'api_broker/Performance/agentPerformanceBySearch'
,
[
'method'
=>
'get'
]
],
'orderNoList'
=>
[
'api_broker/Performance/orderNoList'
,
[
'method'
=>
'get'
]
],
'storePerformanceBySearch'
=>
[
'api_broker/Performance/storePerformanceBySearch'
,
[
'method'
=>
'get'
]
],
'storeOrAgentSort'
=>
[
'api_broker/Performance/storeOrAgentSort'
,
[
'method'
=>
'get'
]
],
'storeOrAgentSort'
=>
[
'api_broker/Performance/storeOrAgentSort'
,
[
'method'
=>
'get
|post
'
]
],
'weekWorkImg'
=>
[
'api_broker/Statement/weekWorkImg'
,
[
'method'
=>
'post'
]
],
//生成周报和日报图片
'setReportContent'
=>
[
'api_broker/Statement/setReportContent'
,
[
'method'
=>
'get|post'
]
],
//保存日报周报四个字段
...
...
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