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
be279e2e
Commit
be279e2e
authored
Mar 25, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
92deba82
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
4 deletions
+20
-4
OrderLog.php
application/api_broker/controller/OrderLog.php
+2
-2
Performance.php
application/api_broker/controller/Performance.php
+10
-1
Report.php
application/api_broker/controller/Report.php
+2
-1
PerformanceService.php
application/api_broker/service/PerformanceService.php
+6
-0
No files found.
application/api_broker/controller/OrderLog.php
View file @
be279e2e
...
@@ -358,12 +358,12 @@ class OrderLog extends Basic
...
@@ -358,12 +358,12 @@ class OrderLog extends Basic
public
function
searchAgents
()
public
function
searchAgents
()
{
{
$params
=
$this
->
params
;
$params
=
$this
->
params
;
$params
=
array
(
/*
$params = array(
"submit_agent_id" => 1,
"submit_agent_id" => 1,
"keyword" => "157",
"keyword" => "157",
"page_no" => 1,
"page_no" => 1,
"page_size" => 15
"page_size" => 15
);
);
*/
if
(
!
isset
(
$params
[
"submit_agent_id"
])
||
!
isset
(
$params
[
"keyword"
]))
{
if
(
!
isset
(
$params
[
"submit_agent_id"
])
||
!
isset
(
$params
[
"keyword"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
...
...
application/api_broker/controller/Performance.php
View file @
be279e2e
...
@@ -92,7 +92,10 @@ class Performance extends Basic
...
@@ -92,7 +92,10 @@ class Performance extends Basic
}
}
/**
* 门店业绩
* @return \think\Response
*/
public
function
storePerformanceBySearch
()
public
function
storePerformanceBySearch
()
{
{
$params
=
$this
->
params
;
$params
=
$this
->
params
;
...
@@ -102,6 +105,12 @@ class Performance extends Basic
...
@@ -102,6 +105,12 @@ class Performance extends Basic
"end_time"
=>
"2018-03-23"
,
"end_time"
=>
"2018-03-23"
,
);
);
try
{
$result
=
$this
->
service_
->
storePerformance
(
$params
[
"agent_id"
],
$params
[
"start_time"
],
$params
[
"end_time"
]);
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
}
catch
(
Exception
$exception
)
{
return
$this
->
response
(
"101"
,
"request error,msg:"
.
$exception
);
}
}
}
/**
/**
...
...
application/api_broker/controller/Report.php
View file @
be279e2e
...
@@ -134,7 +134,7 @@ class Report extends Basic
...
@@ -134,7 +134,7 @@ class Report extends Basic
"explain" =>"1,2",//备注
"explain" =>"1,2",//备注
"explain_img" =>"1,2"//备注图
"explain_img" =>"1,2"//备注图
);*/
);*/
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
$params
=
$this
->
params
;
if
(
!
isset
(
$params
[
'report_id'
])
||
!
isset
(
$params
[
'agent_id'
])
||
!
isset
(
$params
[
'user_type'
])
||
if
(
!
isset
(
$params
[
'report_id'
])
||
!
isset
(
$params
[
'agent_id'
])
||
!
isset
(
$params
[
'user_type'
])
||
!
isset
(
$params
[
'industry_type'
])
||
!
isset
(
$params
[
'area_requirement'
])
||
!
isset
(
$params
[
'price_requirement'
]))
{
!
isset
(
$params
[
'industry_type'
])
||
!
isset
(
$params
[
'area_requirement'
])
||
!
isset
(
$params
[
'price_requirement'
]))
{
...
@@ -160,6 +160,7 @@ class Report extends Basic
...
@@ -160,6 +160,7 @@ class Report extends Basic
"report_id" => 1,// 报备id
"report_id" => 1,// 报备id
"agent_id" => 1,//非必填 经纪人id 没有就获取最新一条跟进记录
"agent_id" => 1,//非必填 经纪人id 没有就获取最新一条跟进记录
);*/
);*/
header
(
'Access-Control-Allow-Origin:*'
);
$params
=
$this
->
params
;
$params
=
$this
->
params
;
if
(
!
isset
(
$params
[
"report_id"
]))
{
if
(
!
isset
(
$params
[
"report_id"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
...
...
application/api_broker/service/PerformanceService.php
View file @
be279e2e
...
@@ -137,6 +137,7 @@ class PerformanceService
...
@@ -137,6 +137,7 @@ class PerformanceService
}
}
/**
/**
* 个人业绩
* @param $agent_id
* @param $agent_id
* @param $start_time
* @param $start_time
* @param $end_time
* @param $end_time
...
@@ -299,4 +300,8 @@ class PerformanceService
...
@@ -299,4 +300,8 @@ class PerformanceService
return
$result
;
return
$result
;
}
}
public
function
storePerformance
(
$agent_id
,
$start_time
,
$end_time
){
}
}
}
\ No newline at end of file
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