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
1f37bc8c
Commit
1f37bc8c
authored
Aug 23, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
where
parent
cf4fc3e3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
Houses.php
application/index/controller/Houses.php
+11
-12
No files found.
application/index/controller/Houses.php
View file @
1f37bc8c
...
@@ -285,6 +285,17 @@ class Houses extends Basic
...
@@ -285,6 +285,17 @@ class Houses extends Basic
$where
[
'id'
]
=
$this
->
params
[
'id'
];
$where
[
'id'
]
=
$this
->
params
[
'id'
];
}
else
{
}
else
{
$where
[
'status'
]
=
[
'<>'
,
3
];
$where
[
'status'
]
=
[
'<>'
,
3
];
if
(
empty
(
$this
->
params
[
'city'
]))
{
$where
[
'city'
]
=
$this
->
city
;
}
else
{
$service_broker
=
new
BrokerService
();
$check_data
=
$service_broker
->
checkSite
(
$this
->
userId
,
$this
->
params
[
'site_id'
]);
if
(
$check_data
)
{
$where
[
'city'
]
=
$this
->
params
[
'city'
];
}
else
{
$where
[
'city'
]
=
$this
->
city
;
}
}
}
}
//盘方ID
//盘方ID
if
(
$this
->
params
[
'dish_id'
]
!=
NULL
)
{
if
(
$this
->
params
[
'dish_id'
]
!=
NULL
)
{
...
@@ -401,18 +412,6 @@ class Houses extends Basic
...
@@ -401,18 +412,6 @@ class Houses extends Basic
}
}
}
}
if
(
empty
(
$this
->
params
[
'city'
]))
{
$where
[
'city'
]
=
$this
->
city
;
}
else
{
$service_broker
=
new
BrokerService
();
$check_data
=
$service_broker
->
checkSite
(
$this
->
userId
,
$this
->
params
[
'site_id'
]);
if
(
$check_data
)
{
$where
[
'city'
]
=
$this
->
params
[
'city'
];
}
else
{
$where
[
'city'
]
=
$this
->
city
;
}
}
$list
=
$this
->
house
->
getList
(
$pageNo
,
$pageSize
,
'id DESC'
,
$fields
,
$where
);
$list
=
$this
->
house
->
getList
(
$pageNo
,
$pageSize
,
'id DESC'
,
$fields
,
$where
);
$data
[
'total'
]
=
$this
->
house
->
getTotal
(
$where
);
$data
[
'total'
]
=
$this
->
house
->
getTotal
(
$where
);
...
...
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