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
c597f1dd
Commit
c597f1dd
authored
Jul 16, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
商铺收搜
parent
de708211
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
21 deletions
+25
-21
Houses.php
application/index/controller/Houses.php
+21
-21
GHouses.php
application/model/GHouses.php
+4
-0
No files found.
application/index/controller/Houses.php
View file @
c597f1dd
...
...
@@ -111,6 +111,9 @@ class Houses extends Basic
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageSize
=
empty
(
$this
->
params
[
'pageSize'
])
?
15
:
$this
->
params
[
'pageSize'
];
$where
[
'a.status'
]
=
[
'<>'
,
3
];
$where
[
'b.is_del'
]
=
0
;
/*精选商铺--0是1否*/
if
(
$this
->
params
[
'is_carefully_chosen'
]
!=
-
1
)
{
$where
[
'is_carefully_chosen'
]
=
$this
->
params
[
'is_carefully_chosen'
];
...
...
@@ -195,30 +198,27 @@ class Houses extends Basic
$where
[
'industry_type'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'industry_type'
]
.
'%'
];
}
$fields
=
'a.id,a.shop_type,a.internal_title,a.rent_price,a.is_show,a.create_time,a.residue_num,a.rent_type'
;
//案场权限人搜索
if
(
empty
(
$this
->
params
[
'dish'
]))
{
/*楼盘编号*/
if
(
!
empty
(
$this
->
params
[
'id'
]))
{
$where
[
'id'
]
=
$this
->
params
[
'id'
];
}
$where
[
'status'
]
=
[
'<>'
,
3
];
$data
[
'data'
][
'list'
]
=
$this
->
house
->
getHouseList
(
$pageNo
,
$pageSize
,
'id DESC'
,
$fields
,
$where
,
$this
->
userId
);
$data
[
'data'
][
'total'
]
=
$this
->
house
->
getHouseListTotal
(
$where
);
}
else
{
//盘方人搜索
/*楼盘编号*/
if
(
$this
->
params
[
'id'
]
!=
NULL
)
{
$where
[
'a.id'
]
=
$this
->
params
[
'id'
];
}
$where
[
'a.status'
]
=
[
'<>'
,
3
];
$where
[
'c.name'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'dish'
]
.
'%'
];
$fields
=
'a.id,a.shop_type,a.internal_title,a.rent_price,a.is_show,a.create_time,a.residue_num,a.rent_type,
a.shop_area_start,a.shop_area_end,a.industry_type'
;
/*楼盘编号*/
if
(
$this
->
params
[
'id'
]
!=
NULL
)
{
$where
[
'a.id'
]
=
$this
->
params
[
'id'
];
}
if
(
$this
->
params
[
'dish_name'
]
!=
NULL
)
{
$where
[
'c.name'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'dish_name'
]
.
'%'
];
$where
[
'b.type'
]
=
[
'='
,
2
];
$where
[
'b.is_del'
]
=
0
;
$data
[
'data'
][
'list'
]
=
$this
->
house
->
getHouseListDish
(
$pageNo
,
$pageSize
,
'a.id DESC'
,
$fields
,
$where
,
$this
->
userId
);
$data
[
'data'
][
'total'
]
=
$this
->
house
->
getHouseListDishTotal
(
$where
);
}
if
(
$this
->
params
[
'dish_phone'
]
!=
NULL
)
{
$where
[
'c.phone'
]
=
[
'LIKE'
,
'%'
.
$this
->
params
[
'dish_phone'
]
.
'%'
];
$where
[
'b.type'
]
=
[
'='
,
2
];
}
$data
[
'data'
][
'list'
]
=
$this
->
house
->
getHouseListDish
(
$pageNo
,
$pageSize
,
'a.id DESC'
,
$fields
,
$where
,
$this
->
userId
);
$data
[
'data'
][
'total'
]
=
$this
->
house
->
getHouseListDishTotal
(
$where
);
$look_shop
=
new
LookShopService
();
foreach
(
$data
[
'data'
][
'list'
]
as
$k
=>
$v
)
{
...
...
application/model/GHouses.php
View file @
c597f1dd
...
...
@@ -270,8 +270,12 @@ class GHouses extends BaseModel
->
page
(
$pageNo
)
->
select
();
$house_id
=
array
();
$house_follow_up
=
new
GHousesFollowUp
();
foreach
(
$data
as
$k
=>
$v
)
{
$house_id
[
$k
]
=
$v
[
'id'
];
$v
->
create_time
=
date
(
'Y-m-d'
,
strtotime
(
$v
->
create_time
));
$data
[
$k
][
'last_follow_up'
]
=
$house_follow_up
->
where
(
'house_id'
,
$v
[
'id'
])
->
value
(
'create_time'
);
}
$result
=
array
();
...
...
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