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
004084f7
Commit
004084f7
authored
Jun 11, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
dish
parent
c9d8d9f2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
3 deletions
+7
-3
OfficeCollectHouse.php
application/api_broker/controller/OfficeCollectHouse.php
+7
-3
No files found.
application/api_broker/controller/OfficeCollectHouse.php
View file @
004084f7
...
@@ -141,6 +141,7 @@ class OfficeCollectHouse extends Basic
...
@@ -141,6 +141,7 @@ class OfficeCollectHouse extends Basic
$isLook
=
$look_shop_service
->
isLooked
(
$params
[
"agents_id"
],
$val
[
"id"
]);
$isLook
=
$look_shop_service
->
isLooked
(
$params
[
"agents_id"
],
$val
[
"id"
]);
$res
[
$key
][
"is_look"
]
=
$isLook
;
$res
[
$key
][
"is_look"
]
=
$isLook
;
$res
[
$key
][
"price"
]
=
$val
[
"price"
]
*
0.01
;
$res
[
$key
][
"price"
]
=
$val
[
"price"
]
*
0.01
;
$res
[
$key
][
"price_total"
]
=
$val
[
"price_total"
]
*
0.01
;
//锁盘后,盘方、独家方、有权限的可以查看
//锁盘后,盘方、独家方、有权限的可以查看
$res
[
$key
][
"look_lock"
]
=
0
;
$res
[
$key
][
"look_lock"
]
=
0
;
...
@@ -150,17 +151,20 @@ class OfficeCollectHouse extends Basic
...
@@ -150,17 +151,20 @@ class OfficeCollectHouse extends Basic
}
}
}
}
$agent_where
[
'a.agent_id'
]
=
$this
->
agentId
;
//
$agent_where['a.agent_id'] = $this->agentId;
$agent_where
[
'a.type'
]
=
[
'in'
,
'2,3'
];
$agent_where
[
'a.type'
]
=
[
'in'
,
'2,3'
];
$agent_where
[
'a.house_id'
]
=
$val
[
'id'
];
$agent_where
[
'a.house_id'
]
=
$val
[
'id'
];
$agent_data
=
$m_agent
->
getAgentsByRoomId
(
'a.id,a.type,b.name,b.phone'
,
$agent_where
);
$agent_data
=
$m_agent
->
getAgentsByRoomId
(
'a.id,a.type,
a.agent_id,
b.name,b.phone'
,
$agent_where
);
$res
[
$key
][
"name"
]
=
''
;
$res
[
$key
][
"name"
]
=
''
;
if
(
$agent_data
)
{
if
(
$agent_data
)
{
$res
[
$key
][
"look_lock"
]
=
1
;
foreach
(
$agent_data
as
$vvv
)
{
foreach
(
$agent_data
as
$vvv
)
{
if
(
$vvv
[
'type'
]
==
2
)
{
if
(
$vvv
[
'type'
]
==
2
)
{
$res
[
$key
][
"name"
]
=
$vvv
[
'name'
]
.
'-'
.
$vvv
[
'phone'
];
$res
[
$key
][
"name"
]
=
$vvv
[
'name'
]
.
'-'
.
$vvv
[
'phone'
];
}
}
if
(
$vvv
[
'agent_id'
]
==
$this
->
agentId
)
{
$res
[
$key
][
"look_lock"
]
=
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