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
c81bd06e
Commit
c81bd06e
authored
Jun 03, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收藏列表
parent
cdee7693
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
OfficeCollectHouse.php
application/api_broker/controller/OfficeCollectHouse.php
+6
-6
OfficeACollectHouse.php
application/model/OfficeACollectHouse.php
+3
-3
No files found.
application/api_broker/controller/OfficeCollectHouse.php
View file @
c81bd06e
...
...
@@ -109,16 +109,16 @@ class OfficeCollectHouse extends Basic
$field
=
'CollectUser.id as collect_user_id,'
;
$field
.=
'Houses.id,'
;
$field
.=
'
Houses
.title,'
;
$field
.=
'
Houses
.business_district_id,'
;
$field
.=
'
building
.title,'
;
$field
.=
'
building
.business_district_id,'
;
$field
.=
'Houses.status,'
;
$field
.=
'Houses.area,'
;
$field
.=
'Houses.shop_sign,'
;
$field
.=
'Houses.price,'
;
$field
.=
'Houses.is_lock,'
;
$field
.=
'Houses.is_vip,'
;
$field
.=
'Houses.is_exclusive_type
,
'
;
$field
.=
'Houses
.disc'
;
//
$field .= 'Houses.is_lock,';
//
$field .= 'Houses.is_vip,';
$field
.=
'Houses.is_exclusive_type'
;
// $field .= 'building
.disc';
$get_params
[
'agents_id'
]
=
$params
[
"agents_id"
];
$get_params
[
'CollectUser.status'
]
=
1
;
...
...
application/model/OfficeACollectHouse.php
View file @
c81bd06e
...
...
@@ -58,6 +58,7 @@ class OfficeACollectHouse extends Model
->
field
(
$field
)
->
alias
(
'CollectUser'
)
->
join
(
'office_g_room Houses'
,
'CollectUser.house_id = Houses.id'
,
'right'
)
->
join
(
'office_g_building building'
,
'Houses.building_id = building.id'
,
'right'
)
->
where
(
$params
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
...
...
@@ -74,14 +75,13 @@ class OfficeACollectHouse extends Model
*/
public
function
getCollectListTotal
(
$field
,
$params
)
{
$order
=
"CollectUser.create_time desc"
;
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
alias
(
'CollectUser'
)
->
join
(
'g_houses Houses'
,
'CollectUser.house_id = Houses.id'
,
'left'
)
->
join
(
'office_g_room Houses'
,
'CollectUser.house_id = Houses.id'
,
'left'
)
->
join
(
'office_g_building building'
,
'Houses.building_id = building.id'
,
'right'
)
->
where
(
$params
)
->
count
();
//dump($this->getLastSql());
return
$result
;
}
...
...
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