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
064fa40d
Commit
064fa40d
authored
Apr 11, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
70e249b7
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
13 deletions
+16
-13
Performance.php
application/api_broker/controller/Performance.php
+13
-13
PerformanceService.php
application/api_broker/service/PerformanceService.php
+3
-0
No files found.
application/api_broker/controller/Performance.php
View file @
064fa40d
...
@@ -37,12 +37,12 @@ class Performance extends Basic
...
@@ -37,12 +37,12 @@ class Performance extends Basic
{
{
header
(
'Access-Control-Allow-Origin:*'
);
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
$params
=
$this
->
params
;
/*
$params = array(
$params
=
array
(
"agent_id" => 1001
5
,
"agent_id"
=>
1001
3
,
"type" =>
2
, //1表示个人业绩排行 2门店 3区域
"type"
=>
1
,
//1表示个人业绩排行 2门店 3区域
"end_day"
=>
""
,
"end_day"
=>
""
,
"start_day"
=>
""
"start_day"
=>
""
);
*/
);
if
(
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"type"
]))
{
if
(
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"type"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
...
@@ -69,13 +69,13 @@ class Performance extends Basic
...
@@ -69,13 +69,13 @@ class Performance extends Basic
{
{
header
(
'Access-Control-Allow-Origin:*'
);
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
$params
=
$this
->
params
;
/*
$params = array(
$params
=
array
(
"agent_id" => 1,
"agent_id"
=>
1
0013
,
"start_time" => "2018-0
3-23
",
"start_time"
=>
"2018-0
4-11
"
,
"end_time" => "2018-0
3-23
",
"end_time"
=>
"2018-0
4-11
"
,
"is_case"
=>
2
,
//1经纪人 2案场
"is_case"
=>
2
,
//1经纪人 2案场
"house_id"
=>
0
"house_id"
=>
0
);
*/
);
if
(
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"start_time"
])
||
!
isset
(
$params
[
"end_time"
]
)
||
!
isset
(
$params
[
"is_case"
]
))
{
if
(
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"start_time"
])
||
!
isset
(
$params
[
"end_time"
]
)
||
!
isset
(
$params
[
"is_case"
]
))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
...
@@ -123,14 +123,14 @@ class Performance extends Basic
...
@@ -123,14 +123,14 @@ class Performance extends Basic
{
{
header
(
'Access-Control-Allow-Origin:*'
);
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
$params
=
$this
->
params
;
/*
$params = array(
$params
=
array
(
"agent_id" => 1,
"agent_id"
=>
1
0013
,
"start_time"
=>
"2018-03-13"
,
"start_time"
=>
"2018-03-13"
,
"end_time" => "2018-0
3-26
",
"end_time"
=>
"2018-0
4-10
"
,
"is_case"
=>
2
,
//1经纪人 2案场
"is_case"
=>
2
,
//1经纪人 2案场
"house_id"
=>
0
,
"house_id"
=>
0
,
"type"
=>
1
// 1带看 2进场 3收款 4成交报告
"type"
=>
1
// 1带看 2进场 3收款 4成交报告
);
*/
);
if
(
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"start_time"
])
||
!
isset
(
$params
[
"end_time"
])
||
!
isset
(
$params
[
"type"
]))
{
if
(
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"start_time"
])
||
!
isset
(
$params
[
"end_time"
])
||
!
isset
(
$params
[
"type"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
...
...
application/api_broker/service/PerformanceService.php
View file @
064fa40d
...
@@ -230,6 +230,9 @@ class PerformanceService
...
@@ -230,6 +230,9 @@ class PerformanceService
$ids
.=
$item
[
"houses_id"
]
.
","
;
$ids
.=
$item
[
"houses_id"
]
.
","
;
}
}
$ids
=
rtrim
(
$ids
,
","
);
$ids
=
rtrim
(
$ids
,
","
);
if
(
!
$ids
){
//代表没有案场
return
null
;
}
$params
[
"house_ids"
]
=
$ids
;
$params
[
"house_ids"
]
=
$ids
;
}
}
$condition
[
'create_time'
]
=
array
(
'between'
,
array
(
$start_time
.
" 00:00:00"
,
$end_time
.
" 23:59:59"
)
);
$condition
[
'create_time'
]
=
array
(
'between'
,
array
(
$start_time
.
" 00:00:00"
,
$end_time
.
" 23:59:59"
)
);
...
...
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