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
69e169d4
Commit
69e169d4
authored
Jan 29, 2019
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预分业绩总计
parent
7aacec28
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
2 deletions
+10
-2
PerformanceInfo.php
application/index/controller/PerformanceInfo.php
+10
-2
No files found.
application/index/controller/PerformanceInfo.php
View file @
69e169d4
...
@@ -123,7 +123,8 @@ class PerformanceInfo extends Basic
...
@@ -123,7 +123,8 @@ class PerformanceInfo extends Basic
$return_total
=
$this
->
oBargainModel
->
performancelInfoTotal
(
$where
,
$field
);
$return_total
=
$this
->
oBargainModel
->
performancelInfoTotal
(
$where
,
$field
);
/*计算业绩总计 即应分佣金 根据分佣ID去重*/
/*计算业绩总计 即应分佣金 根据分佣ID去重*/
$field
=
'Obargain.scale_fee,Obargain.id,Obargain.father_id'
;
/*real_fee o_partial_commission数据表对应备注为'实分佣金字段' 作为 '预分业绩总计' */
$field
=
'Obargain.scale_fee,Obargain.id,Obargain.father_id,PartialCommission.real_fee'
;
$return_sum
=
$this
->
oBargainModel
->
performancelInfoScaleFee
(
$where
,
$field
);
$return_sum
=
$this
->
oBargainModel
->
performancelInfoScaleFee
(
$where
,
$field
);
foreach
(
$return_sum
as
$key1
=>
$val1
)
{
foreach
(
$return_sum
as
$key1
=>
$val1
)
{
//成交报告ID
//成交报告ID
...
@@ -133,12 +134,19 @@ class PerformanceInfo extends Basic
...
@@ -133,12 +134,19 @@ class PerformanceInfo extends Basic
}
}
$return_sum_unique
=
$this
->
arr_unset
(
$return_sum
,
'commission_id'
);
$return_sum_unique
=
$this
->
arr_unset
(
$return_sum
,
'commission_id'
);
$return_sum
=
0
;
$return_sum
=
0
;
$real_fee
=
0
;
foreach
(
$return_sum_unique
as
$key12
=>
$val2
)
{
foreach
(
$return_sum_unique
as
$key12
=>
$val2
)
{
$return_sum
+=
$val2
[
"scale_fee"
];
$return_sum
+=
$val2
[
"scale_fee"
];
$real_fee
+=
$val2
[
"real_fee"
];
}
}
/*计算业绩总计 即应分佣金 根据分佣ID去重*/
/*计算业绩总计 即应分佣金 根据分佣ID去重*/
return
$this
->
response
(
200
,
''
,
[
'scale_fee_sum'
=>
$return_sum
,
'data'
=>
$return
,
'total'
=>
$return_total
]);
$data
[
'data'
]
=
$return
;
$data
[
'total'
]
=
$return_total
;
$data
[
'scale_fee_sum'
]
=
$return_sum
;
$data
[
'real_fee'
]
=
$real_fee
;
return
$this
->
response
(
200
,
''
,
$data
);
}
else
{
}
else
{
return
view
(
'performanceInfo'
);
return
view
(
'performanceInfo'
);
}
}
...
...
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