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
1133c385
Commit
1133c385
authored
May 23, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug
parent
6b9e9b61
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
20 additions
and
6 deletions
+20
-6
OrderLog.php
application/api_broker/controller/OrderLog.php
+1
-1
OrderLogService.php
application/api_broker/service/OrderLogService.php
+15
-3
OBargainModel.php
application/model/OBargainModel.php
+3
-2
OPartialCommission.php
application/model/OPartialCommission.php
+1
-0
No files found.
application/api_broker/controller/OrderLog.php
View file @
1133c385
...
@@ -616,7 +616,7 @@ class OrderLog extends Basic
...
@@ -616,7 +616,7 @@ class OrderLog extends Basic
if
(
!
isset
(
$params
[
"order_id"
]))
{
if
(
!
isset
(
$params
[
"order_id"
]))
{
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
$field
=
"id,order_id,account_statement"
;
$field
=
"id,order_id,account_statement
,house_number,is_open
"
;
$where_
[
"order_id"
]
=
$params
[
"order_id"
];
$where_
[
"order_id"
]
=
$params
[
"order_id"
];
$where_
[
"father_id"
]
=
0
;
$where_
[
"father_id"
]
=
0
;
$where_
[
"account_statement"
]
=
0
;
$where_
[
"account_statement"
]
=
0
;
...
...
application/api_broker/service/OrderLogService.php
View file @
1133c385
...
@@ -811,9 +811,21 @@ class OrderLogService
...
@@ -811,9 +811,21 @@ class OrderLogService
{
{
$bargainModel
=
new
OBargainModel
();
$bargainModel
=
new
OBargainModel
();
$filed
=
"a.id,a.trade_type,a.price,a.submit_agent_id,a.commission,a.role,
$bargain_info_filed
=
"a.id,a.house_number,a.is_open,a.trade_type,a.price,a.commission,c.id,c.internal_title,
a.agent_id,a.scale,a.scale_fee,a.status,b.name,b.phone"
;
c.internal_address,d.user_id,d.user_phone,d.user_name"
;
return
$bargainModel
->
selectBargainDetail
(
$filed
,
$params
);
/**
* ->join("o_order b" ,"a.order_id = b.id","left")
->join("g_houses c" ,"b.house_id = b.id","left")
->join("o_report d","a.report_id = d.id","left")
*/
$bargainInfo
=
$bargainModel
->
selectBargainDetail
(
$bargain_info_filed
,
$params
);
if
(
count
(
$bargainInfo
)
>
0
){
}
//分佣提成
}
}
...
...
application/model/OBargainModel.php
View file @
1133c385
...
@@ -213,13 +213,14 @@ class OBargainModel extends Model
...
@@ -213,13 +213,14 @@ class OBargainModel extends Model
$where_
=
$whereOr_
=
[];
$where_
=
$whereOr_
=
[];
if
(
isset
(
$params
[
"bargain_id"
]))
{
if
(
isset
(
$params
[
"bargain_id"
]))
{
$where_
[
"a.id"
]
=
$params
[
"bargain_id"
];
$where_
[
"a.id"
]
=
$params
[
"bargain_id"
];
$whereOr_
[
"a.father_id"
]
=
$params
[
"bargain_id"
];
}
}
$result
=
$this
->
db_
$result
=
$this
->
db_
->
field
(
$filed
)
->
field
(
$filed
)
->
alias
(
"a"
)
->
alias
(
"a"
)
->
join
(
"a_agents b"
,
"a.agent_id = b.id"
,
"left"
)
->
join
(
"o_order b"
,
"a.order_id = b.id"
,
"left"
)
->
join
(
"g_houses c"
,
"b.house_id = b.id"
,
"left"
)
->
join
(
"o_report d"
,
"a.report_id = d.id"
,
"left"
)
->
where
(
$where_
)
->
where
(
$where_
)
->
whereOr
(
$whereOr_
)
->
whereOr
(
$whereOr_
)
->
order
(
"a.id asc"
)
->
order
(
"a.id asc"
)
...
...
application/model/OPartialCommission.php
View file @
1133c385
...
@@ -11,6 +11,7 @@ namespace app\model;
...
@@ -11,6 +11,7 @@ namespace app\model;
class
OPartialCommission
extends
BaseModel
class
OPartialCommission
extends
BaseModel
{
{
protected
$table
=
"o_partial_commission"
;
/**
/**
* 成交报告分佣表
* 成交报告分佣表
*
*
...
...
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