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
c4e54513
Commit
c4e54513
authored
May 24, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
我的成交详情
parent
0dddb4ab
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
32 additions
and
25 deletions
+32
-25
OrderLogService.php
application/api_broker/service/OrderLogService.php
+31
-25
OTaxes.php
application/model/OTaxes.php
+1
-0
No files found.
application/api_broker/service/OrderLogService.php
View file @
c4e54513
...
...
@@ -836,39 +836,45 @@ class OrderLogService
$partialCommissionModel
=
new
OPartialCommission
();
$field
=
"a.agent_id,a.role,b.name,b.phone,a.scale,a.should_commission,a.create_time,a.real_fee,a.charity_fund,
a.cash,a.practical_fee"
;
a.cash,a.practical_fee
,a.service_charge
"
;
$commissionParams
[
"bargain_id"
]
=
$params
[
"bargain_id"
];
$cent_commission_arr
=
$partialCommissionModel
->
getCommissionListByBargainId
(
$field
,
$commissionParams
);
//dump($cent_commission_arr);exit;
$cent_commission
=
array
();
$cent_commission
_
=
$cent_commission
=
array
();
foreach
(
$cent_commission_arr
as
$k
=>
$v
)
{
$cent_commission
[
$v
[
'agent_id'
]][]
=
$v
;
}
/* $z = 0;
foreach ($cent_commission_ as $item) {
$cent_commission[$z]["agent_id"] = $item[0]["agent_id"];
$cent_commission[$z]["role"] = $item[0]["role"];
$cent_commission[$z]["name"] = $item[0]["name"];
$cent_commission[$z]["phone"] = $item[0]["phone"];
$cent_commission[$z]["should_commission"] = $item[0]["should_commission"];
$key = 0;
foreach ($item as $i => $j) {
$cent_commission[$z]["info"][$key]["real_fee"] = $j["real_fee"];
$cent_commission[$z]["info"][$key]["create_time"] = $j["create_time"];
$cent_commission[$z]["info"][$key]["charity_fund"] = $j["charity_fund"];
$cent_commission[$z]["info"][$key]["cash"] = $j["cash"];
$cent_commission[$z]["info"][$key]["practical_fee"] = $j["practical_fee"];
$key++;
}
$z++;
}*/
$cent_commission_
[
$v
[
'agent_id'
]][]
=
$v
;
}
$z
=
0
;
foreach
(
$cent_commission_
as
$item
)
{
$cent_commission
[
$z
][
"agent_id"
]
=
$item
[
0
][
"agent_id"
];
$cent_commission
[
$z
][
"role"
]
=
$item
[
0
][
"role"
];
$cent_commission
[
$z
][
"scale"
]
=
$item
[
0
][
"scale"
];
$cent_commission
[
$z
][
"name"
]
=
$item
[
0
][
"name"
];
$cent_commission
[
$z
][
"phone"
]
=
$item
[
0
][
"phone"
];
$cent_commission
[
$z
][
"should_commission"
]
=
$item
[
0
][
"should_commission"
];
$key
=
0
;
foreach
(
$item
as
$i
=>
$j
)
{
$cent_commission
[
$z
][
"info"
][
$key
][
"real_fee"
]
=
$j
[
"real_fee"
];
$cent_commission
[
$z
][
"info"
][
$key
][
"create_time"
]
=
$j
[
"create_time"
];
$cent_commission
[
$z
][
"info"
][
$key
][
"charity_fund"
]
=
$j
[
"charity_fund"
];
$cent_commission
[
$z
][
"info"
][
$key
][
"cash"
]
=
$j
[
"cash"
];
$cent_commission
[
$z
][
"info"
][
$key
][
"practical_fee"
]
=
$j
[
"practical_fee"
];
$cent_commission
[
$z
][
"info"
][
$key
][
"service_charge"
]
=
$j
[
"service_charge"
];
$key
++
;
}
$z
++
;
}
$result
[
"cent_commission"
]
=
$cent_commission
;
//税费
$taxesModel
=
new
OTaxes
();
$taxesModel
->
getBargainTaxes
(
$params
[
"bargain_id"
]);
$taxes
=
[];
$fieldTaxes
=
"bargain_id,fee,total_fee,father_id,operation_date,agent_id,agent_name,scale"
;
$taxes
=
$taxesModel
->
getBargainTaxes
(
$params
[
"bargain_id"
],
$fieldTaxes
);
foreach
(
$taxes
as
$items
){
$taxes
[
$items
[
"operation_date"
]][]
=
$items
;
}
$result
[
"taxes"
]
=
$taxes
;
return
$result
;
...
...
application/model/OTaxes.php
View file @
c4e54513
...
...
@@ -25,6 +25,7 @@ class OTaxes extends BaseModel
public
function
getBargainTaxes
(
int
$bargain_id
,
$field
=
'id as fee_id,fee,operation_date'
)
{
return
$this
->
field
(
$field
)
->
where
(
'bargain_id'
,
$bargain_id
)
->
where
(
'is_del'
,
0
)
->
select
();
}
...
...
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