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
36c3d883
Commit
36c3d883
authored
Jun 04, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
咨询案场
parent
ddcb4c3e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
40 additions
and
4 deletions
+40
-4
OfficeBroker.php
application/api/controller/OfficeBroker.php
+4
-4
OfficeService.php
application/index/service/OfficeService.php
+2
-0
AAgents.php
application/model/AAgents.php
+28
-0
route.php
application/route.php
+6
-0
No files found.
application/api/controller/OfficeBroker.php
View file @
36c3d883
...
...
@@ -20,7 +20,7 @@ use app\model\OPushMessageModel;
* @time :11:15:05
* Intro :
*/
class
Broker
extends
Basic
class
Office
Broker
extends
Basic
{
/**
...
...
@@ -64,13 +64,13 @@ class Broker extends Basic
}
if
(
!
empty
(
$reception_id
[
'reception_id'
]))
{
$report_agent
=
$agents
->
getUser
(
1
,
1
,
''
,
$fields
,
[
'a.id'
=>
$reception_id
[
'reception_id'
],
'a.status'
=>
0
,
'c.is_del'
=>
0
]);
$report_agent
=
$agents
->
getUser
Office
(
1
,
1
,
''
,
$fields
,
[
'a.id'
=>
$reception_id
[
'reception_id'
],
'a.status'
=>
0
,
'c.is_del'
=>
0
]);
}
$where
[
'c.house
s
_id'
]
=
$params
[
'house_id'
];
$where
[
'c.house_id'
]
=
$params
[
'house_id'
];
$where
[
'c.is_del'
]
=
0
;
$where
[
'a.status'
]
=
0
;
$list
=
$agents
->
getUser
(
$pageNo
,
$pageSize
,
'evaluate desc'
,
$fields
,
$where
);
$list
=
$agents
->
getUser
Office
(
$pageNo
,
$pageSize
,
'evaluate desc'
,
$fields
,
$where
);
$agent_id
=
[];
foreach
(
$list
as
$v
)
{
...
...
application/index/service/OfficeService.php
View file @
36c3d883
...
...
@@ -541,7 +541,9 @@ class OfficeService
foreach
(
$data
as
$k
=>
$v
)
{
$tmp
[
'id'
]
=
$v
[
'id'
];
$tmp
[
'price'
]
=
$this
->
service_room
->
MinField
(
$v
[
'id'
],
'price'
);
$tmp
[
'price'
]
=
empty
(
$tmp
[
'price'
])
?
0
:
$tmp
[
'price'
];
$tmp
[
'price_total'
]
=
$this
->
service_room
->
MinField
(
$v
[
'id'
],
'price_total'
);
$tmp
[
'price_total'
]
=
empty
(
$tmp
[
'price_total'
])
?
0
:
$tmp
[
'price_total'
];
$tmp
[
'shop_sign'
]
=
$this
->
getBuildingSign
(
$v
[
'id'
]);
$area
=
$this
->
service_room
->
MinField
(
$v
[
'id'
],
'area'
);
$tmp
[
'title'
]
=
$v
[
'disc'
]
.
' '
.
$v
[
'business_name'
]
.
' '
.
$v
[
'title'
]
.
' '
.
$area
.
'㎡'
;
...
...
application/model/AAgents.php
View file @
36c3d883
...
...
@@ -1045,6 +1045,34 @@ class AAgents extends BaseModel
->
select
();
}
/**
* 查询经纪人
*
* @param int $pageNo
* @param int $pageSize
* @param string $order_
* @param $field
* @param $params
* @param string $house_id
* @return false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getUserOffice
(
$pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'id desc'
,
$field
,
$params
,
$house_id
=
''
)
{
return
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'u_evaluate b'
,
'a.id = b.agents_id'
,
'left'
)
->
join
(
'office_g_room_to_agent c'
,
'a.id=c.agent_id'
,
'left'
)
->
where
(
'c.type'
,
1
)
->
where
(
$params
)
->
group
(
'a.id'
)
->
order
(
$order_
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
select
();
}
/**
* @param int $pageNo
* @param int $pageSize
...
...
application/route.php
View file @
36c3d883
...
...
@@ -994,4 +994,9 @@ Route::group('office_index', [
'houseAdd'
=>
[
'index/OfficeRoom/edit'
,
[
'method'
=>
'POST|GET'
]],
//楼盘字典新增和编辑
]);
Route
::
group
(
'office_api'
,
[
'getBroker'
=>
[
'api/OfficeBroker/index'
,
[
'method'
=>
'get'
]],
//获取当前商铺或街铺的经纪人评论信息列表
'getBrokerV2'
=>
[
'api/OfficeBroker/indexV2'
,
[
'method'
=>
'get'
]],
//获取当前商铺或街铺的经纪人评论信息列表
]);
//Route::miss('api/index/miss');//处理错误的url
\ No newline at end of file
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