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
1617f180
Commit
1617f180
authored
Jan 26, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除楼盘的商铺列表显示
parent
7cb6ff83
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Houses.php
application/index/controller/Houses.php
+3
-2
No files found.
application/index/controller/Houses.php
View file @
1617f180
...
@@ -170,7 +170,7 @@ class Houses extends Basic
...
@@ -170,7 +170,7 @@ class Houses extends Basic
if
(
$params
[
'id'
]
!=
NULL
)
{
if
(
$params
[
'id'
]
!=
NULL
)
{
$where
[
'id'
]
=
$params
[
'id'
];
$where
[
'id'
]
=
$params
[
'id'
];
}
}
$where
[
'status'
]
=
[
'<>'
,
2
];
$where
[
'status'
]
=
[
'<>'
,
3
];
$data
[
'data'
][
'list'
]
=
$this
->
house
->
getHouseList
(
$pageNo
,
$pageSize
,
'id DESC'
,
$fields
,
$where
);
$data
[
'data'
][
'list'
]
=
$this
->
house
->
getHouseList
(
$pageNo
,
$pageSize
,
'id DESC'
,
$fields
,
$where
);
$data
[
'data'
][
'total'
]
=
$this
->
house
->
getTotal
(
$where
);
$data
[
'data'
][
'total'
]
=
$this
->
house
->
getTotal
(
$where
);
}
else
{
}
else
{
...
@@ -179,7 +179,7 @@ class Houses extends Basic
...
@@ -179,7 +179,7 @@ class Houses extends Basic
if
(
$params
[
'id'
]
!=
NULL
)
{
if
(
$params
[
'id'
]
!=
NULL
)
{
$where
[
'a.id'
]
=
$params
[
'id'
];
$where
[
'a.id'
]
=
$params
[
'id'
];
}
}
$where
[
'a.status'
]
=
[
'<>'
,
2
];
$where
[
'a.status'
]
=
[
'<>'
,
3
];
$where
[
'c.name'
]
=
[
'LIKE'
,
$params
[
'dish'
]
.
'%'
];
$where
[
'c.name'
]
=
[
'LIKE'
,
$params
[
'dish'
]
.
'%'
];
$where
[
'b.type'
]
=
[
'='
,
1
];
$where
[
'b.type'
]
=
[
'='
,
1
];
$data
[
'data'
][
'list'
]
=
$this
->
house
->
getHouseListDish
(
$pageNo
,
$pageSize
,
'a.id DESC'
,
$fields
,
$where
);
$data
[
'data'
][
'list'
]
=
$this
->
house
->
getHouseListDish
(
$pageNo
,
$pageSize
,
'a.id DESC'
,
$fields
,
$where
);
...
@@ -197,6 +197,7 @@ class Houses extends Basic
...
@@ -197,6 +197,7 @@ class Houses extends Basic
public
function
del
()
{
public
function
del
()
{
$data
[
'status'
]
=
200
;
$data
[
'status'
]
=
200
;
$data
[
'msg'
]
=
''
;
$data
[
'msg'
]
=
''
;
$data
[
'data'
]
=
''
;
$params
=
$this
->
request
->
param
();
$params
=
$this
->
request
->
param
();
if
(
$params
[
'id'
])
{
if
(
$params
[
'id'
])
{
$this
->
house
->
isUpdate
(
true
)
->
save
([
'status'
=>
3
],[
'id'
=>
$params
[
'id'
]]);
$this
->
house
->
isUpdate
(
true
)
->
save
([
'status'
=>
3
],[
'id'
=>
$params
[
'id'
]]);
...
...
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