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
20ad7b19
Commit
20ad7b19
authored
Apr 08, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
搜索经纪人
parent
e0bd2dde
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
15 deletions
+50
-15
OrderLog.php
application/api_broker/controller/OrderLog.php
+50
-15
No files found.
application/api_broker/controller/OrderLog.php
View file @
20ad7b19
...
@@ -287,11 +287,11 @@ class OrderLog extends Basic
...
@@ -287,11 +287,11 @@ class OrderLog extends Basic
public
function
searchOrder
()
public
function
searchOrder
()
{
{
$params
=
$this
->
params
;
$params
=
$this
->
params
;
$params
=
array
(
/*
$params = array(
"type"
=>
4
,
//0.客户电话 1.客户姓名 2.报备人电话 3.报备人姓名 4.商铺名称 5.商铺地址
"type"
=> 4, //0.客户电话 1.客户姓名 2.报备人电话 3.报备人姓名 4.商铺名称 5.商铺地址
"agent_id"
=>
8735
,
"agent_id" =>
8735,
"search_keyword"
=>
"郑州"
"search_keyword" => "郑州"
);
);*/
if
(
!
isset
(
$params
[
"type"
])
||
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"search_keyword"
]))
{
if
(
!
isset
(
$params
[
"type"
])
||
!
isset
(
$params
[
"agent_id"
])
||
!
isset
(
$params
[
"search_keyword"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
...
@@ -373,22 +373,57 @@ class OrderLog extends Basic
...
@@ -373,22 +373,57 @@ class OrderLog extends Basic
/**
/**
* @return \think\Response
* @return \think\Response
*/
*/
/* public function searchAgents()
{
$params = $this->params;
$params = array(
"submit_agent_id" => 1,
"keyword" => "17717536291",
"page_no" => 1,
"page_size" => 15
);
if (!isset($params["submit_agent_id"]) || !isset($params["keyword"])) {
return $this->response("101", "请求参数错误");
}
try {
$result = $this->service_->getBargainList($params);
if (count($result) > 0) {
return $this->response("200", "request success", $result);
} else {
return $this->response("200", "request null");
}
} catch (Exception $e) {
return $this->response("101", "request error,msg:" . $e);
}
}*/
/**
* 搜索经纪人
* @return \think\Response
*/
public
function
searchAgents
()
public
function
searchAgents
()
{
{
$params
=
$this
->
params
;
$params
=
$this
->
params
;
/* $params = array(
/* $params = array(
"submit_agent_id" => 1,
"keyword" => "17", //姓名或者手机号
"keyword" => "157",
"page_no" => 1,
"page_no" => 1,
"page_size" => 15
"page_size" => 15
);*/
);*/
$where_
=
[];
if
(
!
isset
(
$params
[
"keyword"
]))
{
if
(
!
isset
(
$params
[
"submit_agent_id"
])
||
!
isset
(
$params
[
"keyword"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
else
{
$where_
[
"phone|name"
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
"keyword"
])
.
"%"
);
}
}
$pageNo
=
empty
(
$params
[
"page_no"
])
?
1
:
$params
[
"page_no"
];
$pageSize
=
empty
(
$params
[
"page_size"
])
?
15
:
$params
[
"page_size"
];
$agentModel
=
new
AAgents
();
$field
=
"id,phone,name"
;
try
{
try
{
$result
=
$
this
->
service_
->
getBargainList
(
$params
);
$result
=
$
agentModel
->
getList
(
$pageNo
,
$pageSize
,
"id desc"
,
$field
,
""
,
$where_
);
if
(
count
(
$result
)
>
0
)
{
if
(
count
(
$result
)
>
0
)
{
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
return
$this
->
response
(
"200"
,
"request success"
,
$result
);
}
else
{
}
else
{
...
...
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