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
d67a8687
Commit
d67a8687
authored
Jan 29, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
返回是否独家字段
parent
60fc7091
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
GHouses.php
application/model/GHouses.php
+2
-1
No files found.
application/model/GHouses.php
View file @
d67a8687
...
...
@@ -303,7 +303,7 @@ class GHouses extends BaseModel
* @throws \think\exception\DbException
*/
public
function
getExclusive
(
$data
,
$houses_id
)
{
$result
=
$this
->
field
(
'id'
)
->
where
(
'id'
,
$houses_id
)
->
where
(
'status'
,
'<>'
,
3
)
->
find
();
$result
=
$this
->
field
(
'id
,is_exclusive_type
'
)
->
where
(
'id'
,
$houses_id
)
->
where
(
'status'
,
'<>'
,
3
)
->
find
();
if
(
$result
->
id
)
{
$house_ext
=
$this
->
table
(
'g_houses_ext'
)
->
where
(
'house_id'
,
$houses_id
)
->
field
(
'agent_start_time,agent_end_time'
)
->
find
();
$agents
=
$this
->
table
(
'g_houses_to_agents'
)
->
field
(
'b.id,b.name,b.phone'
)
->
alias
(
'a'
)
...
...
@@ -320,6 +320,7 @@ class GHouses extends BaseModel
$return
[
'agent_start_time'
]
=
$house_ext
[
'agent_start_time'
];
$return
[
'agent_end_time'
]
=
$house_ext
[
'agent_end_time'
];
$return
[
'exclusive_img'
]
=
$img
;
$return
[
'is_exclusive_type'
]
=
$result
->
is_exclusive_type
;
}
else
{
$return
=
false
;
}
...
...
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