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
ab03d315
Commit
ab03d315
authored
Aug 15, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
处理商铺列表空数据
parent
d92e6617
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
7 deletions
+19
-7
Houses.php
application/index/controller/Houses.php
+14
-3
Remark.php
application/index/controller/Remark.php
+3
-3
house_template_tpl.html
public/resource/template/house_template_tpl.html
+2
-1
No files found.
application/index/controller/Houses.php
View file @
ab03d315
...
@@ -250,8 +250,15 @@ class Houses extends Basic
...
@@ -250,8 +250,15 @@ class Houses extends Basic
if
(
!
empty
(
$agent_where
))
{
if
(
!
empty
(
$agent_where
))
{
$m_to_agent
=
new
GHousesToAgents
();
$m_to_agent
=
new
GHousesToAgents
();
$agent_arr
=
$m_to_agent
->
getAgentsHouseField
(
'houses_id'
,
$agent_where
);
$agent_arr
=
$m_to_agent
->
getAgentsHouseField
(
'houses_id'
,
$agent_where
);
$agent_str
=
implode
(
','
,
$agent_arr
);
$where
[]
=
[
'EXP'
,
"id in (
{
$agent_str
}
)"
];
if
(
empty
(
$agent_arr
))
{
$data
[
'data'
][
'list'
]
=
[];
$data
[
'data'
][
'total'
]
=
0
;
return
$this
->
response
(
200
,
''
,
$data
);
}
else
{
$agent_str
=
implode
(
','
,
$agent_arr
);
$where
[]
=
[
'EXP'
,
"id in (
{
$agent_str
}
)"
];
}
}
}
/*房东手机号搜索*/
/*房东手机号搜索*/
...
@@ -263,7 +270,11 @@ class Houses extends Basic
...
@@ -263,7 +270,11 @@ class Houses extends Basic
$house_ext_where
[
'landlord_phone'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'landlord_phone'
]
.
'%'
];
$house_ext_where
[
'landlord_phone'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'landlord_phone'
]
.
'%'
];
$landlord_arr
=
$m_house_ext
->
getList
(
1
,
1000
,
''
,
'house_id'
,
$house_ext_where
);
$landlord_arr
=
$m_house_ext
->
getList
(
1
,
1000
,
''
,
'house_id'
,
$house_ext_where
);
if
(
!
empty
(
$landlord_arr
))
{
if
(
empty
(
$landlord_arr
))
{
$data
[
'data'
][
'list'
]
=
[];
$data
[
'data'
][
'total'
]
=
0
;
return
$this
->
response
(
200
,
''
,
$data
);
}
else
{
foreach
(
$landlord_arr
as
$k
=>
$v
)
{
foreach
(
$landlord_arr
as
$k
=>
$v
)
{
$landlord_house_id
[]
=
$v
[
'house_id'
];
$landlord_house_id
[]
=
$v
[
'house_id'
];
}
}
...
...
application/index/controller/Remark.php
View file @
ab03d315
...
@@ -35,9 +35,9 @@ class Remark extends Basic
...
@@ -35,9 +35,9 @@ class Remark extends Basic
$data
[
'status'
]
=
200
;
$data
[
'status'
]
=
200
;
$data
[
'msg'
]
=
''
;
$data
[
'msg'
]
=
''
;
$
where_user
=
$agent_where
=
[];
$
agent_where
=
[];
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$u_phone_follow
=
new
UPhoneFollowPp
();
$u_phone_follow
=
new
UPhoneFollowPp
();
...
...
public/resource/template/house_template_tpl.html
View file @
ab03d315
...
@@ -101,7 +101,7 @@
...
@@ -101,7 +101,7 @@
[
%
}
%
]
[
%
}
%
]
[
%
}
else
{
%
]
[
%
}
else
{
%
]
<
tr
>
<
tr
>
<
td
colspan
=
"
8
"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
td
colspan
=
"
10
"
style
=
"text-align:center;"
>
暂无数据
<
/td
>
<
/tr
>
<
/tr
>
[
%
}
%
]
[
%
}
%
]
</script>
</script>
\ 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