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
a2978f12
Commit
a2978f12
authored
Jul 20, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
38b051ec
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
OrderLogService.php
application/api_broker/service/OrderLogService.php
+4
-1
OBargainModel.php
application/model/OBargainModel.php
+2
-1
No files found.
application/api_broker/service/OrderLogService.php
View file @
a2978f12
...
...
@@ -1119,10 +1119,13 @@ class OrderLogService
$params
[
"ids"
]
=
$ids
;
$bargainModel
=
new
OBargainModel
();
$filed
=
"a.id,a.house_number,a.commission,a.agent_id,a.create_time,b.user_phone,b.user_name,b.user_id,c.id as order_id,
$filed
=
"a.id,a.
father_id,a.
house_number,a.commission,a.agent_id,a.create_time,b.user_phone,b.user_name,b.user_id,c.id as order_id,
d.id as house_id,d.internal_title,d.internal_address"
;
$result
=
$bargainModel
->
selectBargainList
(
$filed
,
$params
,
$pageNo
,
$pageSize
);
foreach
(
$result
as
$k
=>
$v
)
{
if
(
$v
[
"father_id"
]
>
0
){
$result
[
$k
][
"id"
]
=
$v
[
"father_id"
];
}
$result
[
$k
][
"create_time"
]
=
date
(
"Y-m-d"
,
strtotime
(
$v
[
"create_time"
]));
}
return
$result
;
...
...
application/model/OBargainModel.php
View file @
a2978f12
...
...
@@ -221,11 +221,12 @@ class OBargainModel extends Model
->
join
(
"o_order c"
,
"a.order_id = c.id"
,
"left"
)
->
join
(
"g_houses d"
,
"c.house_id = d.id"
,
"left"
)
->
where
(
$where_
)
->
group
(
"a.father_id"
)
->
order
(
"a.create_time desc"
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
select
();
//
echo $this->db_->getLastSql();
echo
$this
->
db_
->
getLastSql
();
return
$result
;
}
...
...
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