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
8966e061
Commit
8966e061
authored
Sep 21, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
43768ff9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
7 deletions
+5
-7
Shop.php
application/api_broker/controller/Shop.php
+5
-7
No files found.
application/api_broker/controller/Shop.php
View file @
8966e061
...
@@ -218,6 +218,7 @@ class Shop extends Basic
...
@@ -218,6 +218,7 @@ class Shop extends Basic
$p_store_name
=
empty
(
$params
[
'p_store_name'
])
?
""
:
$params
[
'p_store_name'
];
$p_store_name
=
empty
(
$params
[
'p_store_name'
])
?
""
:
$params
[
'p_store_name'
];
$p_agent_name
=
empty
(
$params
[
'p_agent_name'
])
?
""
:
$params
[
'p_agent_name'
];
$p_agent_name
=
empty
(
$params
[
'p_agent_name'
])
?
""
:
$params
[
'p_agent_name'
];
$houseIds
=
$this
->
returnHouseIdByPanParty
(
$p_district_name
,
$p_store_name
,
$p_agent_name
);
$houseIds
=
$this
->
returnHouseIdByPanParty
(
$p_district_name
,
$p_store_name
,
$p_agent_name
);
echo
$houseIds
;
if
(
empty
(
$houseIds
))
{
if
(
empty
(
$houseIds
))
{
return
$this
->
response
(
"200"
,
"此条件没有找到数据"
);
return
$this
->
response
(
"200"
,
"此条件没有找到数据"
);
}
}
...
@@ -280,10 +281,10 @@ class Shop extends Basic
...
@@ -280,10 +281,10 @@ class Shop extends Basic
$params
[
"c.district_name"
]
=
array
(
"like"
,
"%"
.
trim
(
$p_district_name
)
.
"%"
);
$params
[
"c.district_name"
]
=
array
(
"like"
,
"%"
.
trim
(
$p_district_name
)
.
"%"
);
}
}
if
(
$p_store_name
)
{
if
(
$p_store_name
)
{
$params
[
"b.store_name"
]
=
array
(
"like"
,
"%"
.
trim
(
$p_
district
_name
)
.
"%"
);
$params
[
"b.store_name"
]
=
array
(
"like"
,
"%"
.
trim
(
$p_
store
_name
)
.
"%"
);
}
}
if
(
$p_agent_name
)
{
if
(
$p_agent_name
)
{
$params
[
"a.name"
]
=
array
(
"like"
,
"%"
.
trim
(
$p_
distric
t_name
)
.
"%"
);
$params
[
"a.name"
]
=
array
(
"like"
,
"%"
.
trim
(
$p_
agen
t_name
)
.
"%"
);
}
}
$ids
=
""
;
$ids
=
""
;
if
(
empty
(
$params
))
{
if
(
empty
(
$params
))
{
...
@@ -305,11 +306,8 @@ class Shop extends Basic
...
@@ -305,11 +306,8 @@ class Shop extends Basic
$verifyService
=
new
VerifyService
();
$verifyService
=
new
VerifyService
();
$selectParams
=
array
(
"in"
,
$agentIds
);
$selectParams
=
array
(
"in"
,
$agentIds
);
$houseIds
=
$verifyService
->
getPanpartyByAgentId
(
$selectParams
);
$houseIds
=
$verifyService
->
getPanpartyByAgentId
(
$selectParams
);
if
(
count
(
$houseIds
)
>
0
)
{
if
(
$houseIds
)
{
foreach
(
$houseIds
as
$item
)
{
$ids
=
$houseIds
;
$ids
.=
$item
[
"house_id"
]
.
","
;
}
$ids
=
rtrim
(
$ids
,
","
);
}
}
return
$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