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
b5aa632f
Commit
b5aa632f
authored
Sep 06, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
独家方判断
parent
2b0431e5
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
17 deletions
+5
-17
GHouses.php
application/model/GHouses.php
+5
-17
No files found.
application/model/GHouses.php
View file @
b5aa632f
...
@@ -280,17 +280,6 @@ class GHouses extends BaseModel
...
@@ -280,17 +280,6 @@ class GHouses extends BaseModel
*/
*/
public
function
getHouseListDish
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
=
''
,
$params
=
''
,
$agents_id
=
''
)
public
function
getHouseListDish
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
=
''
,
$params
=
''
,
$agents_id
=
''
)
{
{
// $data = $this->field($field)->alias('a')
// ->join('g_houses_to_agents b', 'a.id=b.houses_id', 'left')
// ->join('a_agents c', 'b.agents_id=c.id', 'left')
// ->join('g_houses_ext d', 'a.id=d.house_id', 'left')
// ->where($params)
// ->order($order_)
// ->limit($pageSize)
// ->page($pageNo)
// ->group('a.id')
// ->select();
$data
=
$this
->
field
(
$field
)
$data
=
$this
->
field
(
$field
)
->
where
(
$params
)
->
where
(
$params
)
->
order
(
$order_
)
->
order
(
$order_
)
...
@@ -346,13 +335,12 @@ class GHouses extends BaseModel
...
@@ -346,13 +335,12 @@ class GHouses extends BaseModel
}
}
//独家方
//独家方
$exclusive_num
=
Db
::
table
(
'g_houses_to_agents'
)
->
alias
(
'a'
)
$exclusive_num
=
Db
::
table
(
'g_houses_to_agents'
)
->
where
(
'is_del'
,
0
)
->
field
(
'a.id'
)
->
where
(
'type'
,
3
)
->
join
(
'a_agents b'
,
'a.agents_id=b.id'
,
'left'
)
->
where
(
'agents_id'
,
$agents_id
)
->
where
(
'a.is_del'
,
0
)
->
where
(
'houses_id'
,
$v
[
'id'
])
->
where
(
'a.type'
,
3
)
->
where
(
'a.agents_id'
,
$agents_id
)
->
count
();
->
count
();
if
(
$exclusive_num
>
0
)
{
if
(
$exclusive_num
>
0
)
{
$result
[
$k
][
'auth_edit_exclusive'
]
=
1
;
$result
[
$k
][
'auth_edit_exclusive'
]
=
1
;
}
}
...
...
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