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
ea42f172
Commit
ea42f172
authored
Jun 08, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
经纪人主页
parent
20cc58a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
4 deletions
+14
-4
Broker.php
application/api/controller/Broker.php
+2
-2
OBargainModel.php
application/model/OBargainModel.php
+12
-2
No files found.
application/api/controller/Broker.php
View file @
ea42f172
...
...
@@ -183,7 +183,7 @@ class Broker extends Basic{
//评价列表信息
$result
[
'evaluate'
]
=
$evaluate
->
getEvaluate
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$fields_evaluate
,
''
,
$params
[
'agent_id'
]);
//成交记录
$result
[
'journalAccounts'
]
=
$bargain
->
getBargainOrderList
(
$bargain_fields
,
[
'a.agent_id'
=>
$this
->
params
[
'agent_id'
]]);
$result
[
'journalAccounts'
]
=
$bargain
->
getBargainOrderList
(
$
pageNo
,
$pageSize
,
''
,
$
bargain_fields
,
[
'a.agent_id'
=>
$this
->
params
[
'agent_id'
]]);
$data
[
'data'
]
=
$result
;
break
;
case
1
:
...
...
@@ -193,7 +193,7 @@ class Broker extends Basic{
break
;
case
2
:
//成交记录
$result
[
'journalAccounts'
]
=
$bargain
->
getBargainOrderList
(
$bargain_fields
,
[
'a.agent_id'
=>
$this
->
params
[
'agent_id'
]]);
$result
[
'journalAccounts'
]
=
$bargain
->
getBargainOrderList
(
$
pageNo
,
$pageSize
,
''
,
$
bargain_fields
,
[
'a.agent_id'
=>
$this
->
params
[
'agent_id'
]]);
$data
[
'data'
]
=
$result
;
break
;
default
:
...
...
application/model/OBargainModel.php
View file @
ea42f172
...
...
@@ -478,26 +478,36 @@ class OBargainModel extends Model
/**
* 获取成交报告详情
*
* @param int $pageNo
* @param int $pageSize
* @param string $order_
* @param $field
* @param $params
* @return
array|false|\PDOStatement|string|Model
* @return
false|\PDOStatement|string|\think\Collection
* @throws \think\db\exception\DataNotFoundException
* @throws \think\db\exception\ModelNotFoundException
* @throws \think\exception\DbException
*/
public
function
getBargainOrderList
(
$field
,
$params
)
public
function
getBargainOrderList
(
$
pageNo
=
1
,
$pageSize
=
15
,
$order_
=
'a.id desc'
,
$
field
,
$params
)
{
$data
=
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'o_report b'
,
'a.report_id = b.id'
,
'left'
)
->
join
(
'o_order c'
,
'a.order_id = c.id'
,
'left'
)
->
join
(
'g_houses d'
,
'c.house_id = d.id'
,
'left'
)
->
where
(
$params
)
->
order
(
$order_
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
select
();
foreach
(
$data
as
$k
=>
$v
)
{
if
(
isset
(
$v
[
'singntime'
]))
{
$data
[
$k
][
'singntime'
]
=
date
(
'Y-m-d'
,
strtotime
(
$v
[
'singntime'
]));
}
if
(
empty
(
$v
[
'shangpu_tags'
]))
{
$data
[
$k
][
'shangpu_tags'
]
=
""
;
}
}
return
$data
;
...
...
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