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
cf7c659e
Commit
cf7c659e
authored
May 06, 2019
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
11
parent
c51bccbb
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
LookShop.php
application/index/controller/LookShop.php
+6
-2
No files found.
application/index/controller/LookShop.php
View file @
cf7c659e
...
...
@@ -82,6 +82,7 @@ class LookShop extends Basic
"end_time" => '2018-07-31',
"house_id" => 3084,
"house_name" => "",
"user_id" => 11,
"user_name" => "",
"user_phone" => "",
"page_no" => 1,
...
...
@@ -101,6 +102,9 @@ class LookShop extends Basic
if
(
!
empty
(
$params
[
"house_name"
]))
{
$condition
[
"b.internal_title"
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
"house_name"
])
.
"%"
);
}
if
(
!
empty
(
$params
[
"user_id"
]))
{
$condition
[
"c.id"
]
=
$params
[
"user_id"
];
}
if
(
!
empty
(
$params
[
"user_name"
]))
{
$condition
[
"c.user_name"
]
=
array
(
"like"
,
"%"
.
trim
(
$params
[
"user_name"
])
.
"%"
);
}
...
...
@@ -114,10 +118,10 @@ class LookShop extends Basic
$field
=
"a.id,a.create_time,a.house_id,b.internal_title,c.user_name,c.user_phone"
;
$tLookShopUser
=
new
TLookShopUser
();
$result
=
$tLookShopUser
->
getList
(
$condition
,
$field
,
$pageNo
,
$pageSize
);
//$total = $this->tLookShopModel
->getListCount($condition, $field);
$total
=
$tLookShopUser
->
getListCount
(
$condition
,
$field
);
$list
[
"list"
]
=
$result
;
$list
[
"total"
]
=
150
;
$list
[
"total"
]
=
$total
;
return
$this
->
response
(
"200"
,
"success"
,
$list
);
}
...
...
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