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
b1f3bcee
Commit
b1f3bcee
authored
Feb 25, 2019
by
zw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
看铺数量
parent
a57deb7a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
LookShop.php
application/index/controller/LookShop.php
+3
-3
No files found.
application/index/controller/LookShop.php
View file @
b1f3bcee
...
@@ -43,7 +43,7 @@ class LookShop extends Basic
...
@@ -43,7 +43,7 @@ class LookShop extends Basic
$condition
=
[];
$condition
=
[];
if
(
!
empty
(
$params
[
"start_time"
])
&&
!
empty
(
$params
[
"end_time"
]))
{
if
(
!
empty
(
$params
[
"start_time"
])
&&
!
empty
(
$params
[
"end_time"
]))
{
$condition
[
"a.look_time"
]
=
array
(
"between"
,
array
(
$params
[
"start_time"
],
$params
[
"end_time"
]
)
);
$condition
[
"a.look_time"
]
=
array
(
"between"
,
array
(
$params
[
"start_time"
],
$params
[
"end_time"
]
.
" 23:59:59"
)
);
}
}
if
(
!
empty
(
$params
[
"house_id"
]))
{
if
(
!
empty
(
$params
[
"house_id"
]))
{
$condition
[
"a.house_id"
]
=
$params
[
"house_id"
];
$condition
[
"a.house_id"
]
=
$params
[
"house_id"
];
...
@@ -64,10 +64,10 @@ class LookShop extends Basic
...
@@ -64,10 +64,10 @@ class LookShop extends Basic
$field
=
"a.id,a.look_time,a.house_id,b.internal_title,a.agent_name,a.agent_phone"
;
$field
=
"a.id,a.look_time,a.house_id,b.internal_title,a.agent_name,a.agent_phone"
;
$result
=
$this
->
tLookShopModel
->
getList
(
$condition
,
$field
,
$pageNo
,
$pageSize
);
$result
=
$this
->
tLookShopModel
->
getList
(
$condition
,
$field
,
$pageNo
,
$pageSize
);
$total
=
$this
->
tLookShopModel
->
getListCount
(
$condition
,
$field
);
//
$total = $this->tLookShopModel->getListCount($condition, $field);
$list
[
"list"
]
=
$result
;
$list
[
"list"
]
=
$result
;
$list
[
"total"
]
=
$total
;
$list
[
"total"
]
=
0
;
return
$this
->
response
(
"200"
,
"success"
,
$list
);
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