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
d373bd84
Commit
d373bd84
authored
Jun 28, 2018
by
hujun
Browse files
Options
Browse Files
Download
Plain Diff
Merge remote-tracking branch 'origin/wx0604' into wx0604
parents
05b69bf3
a6915805
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
4 deletions
+8
-4
OrderLogService.php
application/api_broker/service/OrderLogService.php
+8
-4
No files found.
application/api_broker/service/OrderLogService.php
View file @
d373bd84
...
...
@@ -814,9 +814,10 @@ class OrderLogService
$item
=
$params
[
0
];
$agent_id
=
$params
[
0
][
"agent_id"
];
$cent_commission
[
"id"
]
=
$item
[
"id"
];
$cent_commission
[
"agent_id"
]
=
$item
[
"agent_id"
];
$cent_commission
[
"role"
]
=
$item
[
"role
"
];
$cent_commission
[
"scale"
]
=
$item
[
"scale
"
];
$cent_commission
[
"role"
]
=
!
empty
(
$item
[
"role"
])
?
$item
[
"role"
]
:
$item
[
"roles
"
];
$cent_commission
[
"scale"
]
=
!
empty
(
$item
[
"scale"
])
?
$item
[
"scale"
]
:
$item
[
"scales
"
];
$cent_commission
[
"name"
]
=
$item
[
"name"
];
$cent_commission
[
"phone"
]
=
$item
[
"phone"
];
$cent_commission
[
"should_commission"
]
=
$item
[
"should_commission"
];
...
...
@@ -833,7 +834,10 @@ class OrderLogService
$arr
[
"cash"
]
=
$value
[
"cash"
];
$arr
[
"practical_fee"
]
=
$value
[
"practical_fee"
];
$arr
[
"service_charge"
]
=
$value
[
"service_charge"
];
$cent_commission
[
"info"
][
$key
]
=
$arr
;
if
(
!
empty
(
$value
[
"real_fee"
])
&&
!
empty
(
$value
[
"create_time"
])){
//过滤掉空的
$cent_commission
[
"info"
][
$key
]
=
$arr
;
}
$key
++
;
unset
(
$params
[
$j
]);
...
...
@@ -879,7 +883,7 @@ class OrderLogService
//分佣提成 o_partial_commission
$field_commission
=
"a.
agent_id
,b.role,c.name,c.phone,b.scale,b.should_commission,b.confirm_date,b.create_time,b.real_fee,b.charity_fund,
$field_commission
=
"a.
id,a.agent_id,a.role as roles,a.scale as scales
,b.role,c.name,c.phone,b.scale,b.should_commission,b.confirm_date,b.create_time,b.real_fee,b.charity_fund,
b.cash,b.practical_fee,b.service_charge"
;
$cent_commission_arr
=
$bargainModel
->
selectBargainCommission
(
$field_commission
,
[
"bargain_id"
=>
$bargain_id
]);
...
...
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