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
62f54848
Commit
62f54848
authored
Sep 19, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
盘方部门门店姓名搜索
parent
0f4d7ccb
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
40 additions
and
7 deletions
+40
-7
Shop.php
application/api_broker/controller/Shop.php
+40
-7
No files found.
application/api_broker/controller/Shop.php
View file @
62f54848
...
@@ -76,6 +76,12 @@ class Shop extends Basic
...
@@ -76,6 +76,12 @@ class Shop extends Basic
"start_time" => "2018-05-25",
"start_time" => "2018-05-25",
"end_time" => "2018-05-30",
"end_time" => "2018-05-30",
"landlord_phone" => "17621970093",
"landlord_phone" => "17621970093",
//新增于180919
"p_district_id" => 1,
"p_store_id" => 1,
"p_agent_name" => "张三",
"pageNo" => 1,
"pageNo" => 1,
"pageSize" => 15
"pageSize" => 15
);*/
);*/
...
@@ -199,16 +205,20 @@ class Shop extends Basic
...
@@ -199,16 +205,20 @@ class Shop extends Basic
}
}
$houseIds
=
""
;
$houseIds
=
""
;
if
(
isset
(
$params
[
'house_id'
]))
{
if
(
isset
(
$params
[
'house_id'
]))
{
$houseIds
=
$params
[
'house_id'
];
$houseIds
=
$params
[
'house_id'
];
}
else
{
}
elseif
(
isset
(
$params
[
'landlord_phone'
]))
{
if
(
isset
(
$params
[
'landlord_phone'
]))
{
$houseIds
=
$this
->
returnHouseId
(
$params
[
'landlord_phone'
]);
$houseIds
=
$this
->
returnHouseId
(
$params
[
'landlord_phone'
]);
if
(
empty
(
$houseIds
))
{
if
(
empty
(
$houseIds
))
{
return
$this
->
response
(
"200"
,
"此条件没有找到数据"
);
return
$this
->
response
(
"200"
,
"此条件没有找到数据"
);
}
}
}
}
elseif
(
isset
(
$params
[
'p_district_id'
])
&&
isset
(
$params
[
'p_store_id'
])
&&
isset
(
$params
[
'p_agent_name'
]))
{
$houseIds
=
$this
->
returnHouseIdByPanParty
(
$params
[
'p_district_id'
],
$params
[
'p_store_id'
],
$params
[
'p_agent_name'
]);
if
(
empty
(
$houseIds
))
{
return
$this
->
response
(
"200"
,
"此条件没有找到数据"
);
}
}
}
if
(
!
empty
(
$houseIds
))
{
if
(
!
empty
(
$houseIds
))
{
$conditions
[
'id'
]
=
array
(
"in"
,
$houseIds
);
$conditions
[
'id'
]
=
array
(
"in"
,
$houseIds
);
...
@@ -259,6 +269,29 @@ class Shop extends Basic
...
@@ -259,6 +269,29 @@ class Shop extends Basic
return
$ids
;
return
$ids
;
}
}
private
function
returnHouseIdByPanParty
(
$p_district_id
,
$p_store_id
,
$p_agent_name
)
{
$agentModel
=
new
AAgents
();
$params
[
"district_id"
]
=
$p_district_id
;
$params
[
"store_id"
]
=
$p_store_id
;
$params
[
"name"
]
=
array
(
"like"
,
"%"
.
trim
(
$p_agent_name
)
.
"%"
);
$agentArr
=
$agentModel
->
getAgentById
(
"id"
,
$params
);
$ids
=
""
;
if
(
count
(
$agentArr
)
<
1
)
{
return
$ids
;
}
$verifyService
=
new
VerifyService
();
$houseIds
=
$verifyService
->
getPanpartyByAgentId
(
$agentArr
[
0
][
"id"
]);
if
(
count
(
$houseIds
)
>
0
)
{
foreach
(
$houseIds
as
$item
)
{
$ids
.=
$item
[
"house_id"
]
.
","
;
}
$ids
=
rtrim
(
$ids
,
","
);
}
return
$ids
;
}
/**
/**
* 楼盘详情
* 楼盘详情
...
...
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