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
1a8ffd09
Commit
1a8ffd09
authored
Jun 03, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
查询收藏数据
parent
16442262
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
14 deletions
+11
-14
OfficeCollectHouse.php
application/api_broker/controller/OfficeCollectHouse.php
+9
-13
Basic.php
application/api_broker/extend/Basic.php
+1
-0
OfficeACollectHouse.php
application/model/OfficeACollectHouse.php
+1
-1
No files found.
application/api_broker/controller/OfficeCollectHouse.php
View file @
1a8ffd09
...
@@ -13,6 +13,8 @@ use app\api_broker\service\LookShopService;
...
@@ -13,6 +13,8 @@ use app\api_broker\service\LookShopService;
use
app\api_broker\service\VipService
;
use
app\api_broker\service\VipService
;
use
app\model\GHousesToAgents
;
use
app\model\GHousesToAgents
;
use
app\model\OfficeACollectHouse
;
use
app\model\OfficeACollectHouse
;
use
app\model\OfficeGRoom
;
use
app\model\OfficeGRoomToAgent
;
class
OfficeCollectHouse
extends
Basic
class
OfficeCollectHouse
extends
Basic
{
{
...
@@ -107,17 +109,12 @@ class OfficeCollectHouse extends Basic
...
@@ -107,17 +109,12 @@ class OfficeCollectHouse extends Basic
$field
=
'CollectUser.id as collect_user_id,'
;
$field
=
'CollectUser.id as collect_user_id,'
;
$field
.=
'Houses.id,'
;
$field
.=
'Houses.id,'
;
$field
.=
'Houses.
internal_title as
title,'
;
$field
.=
'Houses.title,'
;
$field
.=
'Houses.business_district_id,'
;
$field
.=
'Houses.business_district_id,'
;
$field
.=
'Houses.status,'
;
$field
.=
'Houses.status,'
;
$field
.=
'Houses.industry_type,'
;
$field
.=
'Houses.area,'
;
$field
.=
'Houses.shop_area_start,'
;
$field
.=
'Houses.shop_area_end,'
;
$field
.=
'Houses.shop_type,'
;
$field
.=
'Houses.shop_sign,'
;
$field
.=
'Houses.shop_sign,'
;
$field
.=
'Houses.residue_num,'
;
$field
.=
'Houses.price,'
;
$field
.=
'Houses.rent_type,'
;
$field
.=
'Houses.rent_price,'
;
$field
.=
'Houses.is_lock,'
;
$field
.=
'Houses.is_lock,'
;
$field
.=
'Houses.is_vip,'
;
$field
.=
'Houses.is_vip,'
;
$field
.=
'Houses.is_exclusive_type,'
;
$field
.=
'Houses.is_exclusive_type,'
;
...
@@ -132,8 +129,7 @@ class OfficeCollectHouse extends Basic
...
@@ -132,8 +129,7 @@ class OfficeCollectHouse extends Basic
foreach
(
$res
as
$key
=>
$val
)
{
foreach
(
$res
as
$key
=>
$val
)
{
$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
][
"rent_price"
]
=
$val
[
"rent_price"
]
*
0.01
;
$res
[
$key
][
"price"
]
=
$val
[
"price"
]
*
0.01
;
$res
[
$key
][
"rent_price"
]
=
$val
[
"rent_price"
]
*
0.01
;
//锁盘后,盘方、独家方、有权限的可以查看
//锁盘后,盘方、独家方、有权限的可以查看
$res
[
$key
][
"look_lock"
]
=
0
;
$res
[
$key
][
"look_lock"
]
=
0
;
...
@@ -143,10 +139,10 @@ class OfficeCollectHouse extends Basic
...
@@ -143,10 +139,10 @@ class OfficeCollectHouse extends Basic
$res
[
$key
][
"look_lock"
]
=
1
;
$res
[
$key
][
"look_lock"
]
=
1
;
}
}
$m_agent
=
new
GHousesToAgents
();
$m_agent
=
new
OfficeGRoomToAgent
();
$agent_where
[
'a.agent
s
_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
s
_id'
]
=
$val
[
'id'
];
$agent_where
[
'a.house_id'
]
=
$val
[
'id'
];
$agent_where
[
'a.is_del'
]
=
0
;
$agent_where
[
'a.is_del'
]
=
0
;
$agent_data
=
$m_agent
->
getAgentsHouseField
(
'a.id'
,
$agent_where
);
$agent_data
=
$m_agent
->
getAgentsHouseField
(
'a.id'
,
$agent_where
);
...
...
application/api_broker/extend/Basic.php
View file @
1a8ffd09
...
@@ -63,6 +63,7 @@ class Basic extends Controller
...
@@ -63,6 +63,7 @@ class Basic extends Controller
"broker/getCityInfoByMap"
,
"broker/getCityInfoByMap"
,
"broker/getShopListByMap"
,
"broker/getShopListByMap"
,
"broker/getUserLabels"
,
"broker/getUserLabels"
,
"office/filtrateConditionRoom"
,
);
);
/**
/**
...
...
application/model/OfficeACollectHouse.php
View file @
1a8ffd09
...
@@ -57,7 +57,7 @@ class OfficeACollectHouse extends Model
...
@@ -57,7 +57,7 @@ class OfficeACollectHouse extends Model
$result
=
Db
::
table
(
$this
->
table
)
$result
=
Db
::
table
(
$this
->
table
)
->
field
(
$field
)
->
field
(
$field
)
->
alias
(
'CollectUser'
)
->
alias
(
'CollectUser'
)
->
join
(
'
g_houses
Houses'
,
'CollectUser.house_id = Houses.id'
,
'right'
)
->
join
(
'
office_g_room
Houses'
,
'CollectUser.house_id = Houses.id'
,
'right'
)
->
where
(
$params
)
->
where
(
$params
)
->
limit
(
$pageSize
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
page
(
$pageNo
)
...
...
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