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
ec0a2596
Commit
ec0a2596
authored
Jun 05, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
order
parent
218e7da4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletion
+8
-1
OfficeService.php
application/index/service/OfficeService.php
+8
-1
No files found.
application/index/service/OfficeService.php
View file @
ec0a2596
...
@@ -459,6 +459,8 @@ class OfficeService
...
@@ -459,6 +459,8 @@ class OfficeService
$page_no
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$page_no
=
empty
(
$params
[
'pageNo'
])
?
1
:
$params
[
'pageNo'
];
$page_size
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$page_size
=
empty
(
$params
[
'pageSize'
])
?
15
:
$params
[
'pageSize'
];
$where
=
[];
$where
=
[];
$order
=
'a.id desc'
;
if
(
isset
(
$params
[
'city'
]))
{
if
(
isset
(
$params
[
'city'
]))
{
$where
[
'a.city'
]
=
$params
[
'city'
];
//市
$where
[
'a.city'
]
=
$params
[
'city'
];
//市
}
}
...
@@ -528,9 +530,14 @@ class OfficeService
...
@@ -528,9 +530,14 @@ class OfficeService
$where
[
'b.shop_sign'
]
=
[
'like'
,
'%'
.
$params
[
'shop_sign'
]
.
'%'
];
//商铺标签
$where
[
'b.shop_sign'
]
=
[
'like'
,
'%'
.
$params
[
'shop_sign'
]
.
'%'
];
//商铺标签
}
}
if
(
isset
(
$params
[
'is_carefully_chosen'
]))
{
$where
[
'b.is_carefully_chosen'
]
=
$params
[
'shop_sign'
];
//精选商铺--0否1是
$order
=
'b.home_page_sort desc'
;
}
$field
=
'a.id,a.disc,title,address,c.name as business_name'
;
$field
=
'a.id,a.disc,title,address,c.name as business_name'
;
try
{
try
{
$data
=
$this
->
m_office
->
getBuildingRoom
(
$page_no
,
$page_size
,
''
,
$field
,
$where
);
$data
=
$this
->
m_office
->
getBuildingRoom
(
$page_no
,
$page_size
,
$order
,
$field
,
$where
);
}
catch
(
\Exception
$e
)
{
}
catch
(
\Exception
$e
)
{
$result
[
'status'
]
=
'fail'
;
$result
[
'status'
]
=
'fail'
;
$result
[
'msg'
]
=
$e
->
getMessage
();
$result
[
'msg'
]
=
$e
->
getMessage
();
...
...
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