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
dbc86312
Commit
dbc86312
authored
Aug 13, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实收明细导出
parent
bff1e606
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
OfficeFinance.php
application/index/controller/OfficeFinance.php
+1
-1
OfficeOPartialCommission.php
application/model/OfficeOPartialCommission.php
+5
-4
No files found.
application/index/controller/OfficeFinance.php
View file @
dbc86312
...
...
@@ -187,9 +187,9 @@ class OfficeFinance extends Basic
$excel_data
=
[];
foreach
(
$list
as
$k
=>
$v
)
{
$agent_data
=
$s_redis
->
getRedisCache
(
2
,
$v
[
'agent_id'
]);
$list
[
$k
][
'district_store'
]
=
$agent_data
[
'district_name'
];
$excel_data
[
$k
][
'bargain_id'
]
=
$v
[
'bargain_id'
];
$excel_data
[
$k
][
'operation_date'
]
=
$v
[
'operation_date'
];
$excel_data
[
$k
][
'district_store'
]
=
$agent_data
[
'district_name'
];
$excel_data
[
$k
][
'name'
]
=
$v
[
'name'
];
$excel_data
[
$k
][
'internal_address'
]
=
$v
[
'internal_address'
];
$excel_data
[
$k
][
'house_number'
]
=
$v
[
'house_number'
];
...
...
application/model/OfficeOPartialCommission.php
View file @
dbc86312
...
...
@@ -68,11 +68,12 @@ class OfficeOPartialCommission extends BaseModel
*/
public
function
totalMoney
(
$where
)
{
return
$this
->
alias
(
'a'
)
->
join
(
'o_bargain b'
,
'a.bargain_id = b.id'
,
'left'
)
->
join
(
'o_order c'
,
'b.order_id = c.id'
,
'left'
)
->
join
(
'g_houses d'
,
'c.house_id = d.id'
,
'left'
)
->
join
(
'office_o_bargain b'
,
'a.bargain_id = b.id'
,
'left'
)
->
join
(
'office_o_order c'
,
'b.order_id = c.id'
,
'left'
)
->
join
(
"office_g_room r"
,
"c.house_id = r.id"
,
"left"
)
->
join
(
"office_g_building s"
,
"r.building_id = s.id"
,
"left"
)
->
join
(
'a_agents e'
,
'b.agent_id = e.id'
,
'left'
)
->
join
(
'o_real_income f'
,
'a.real_income_id = f.id'
,
'left'
)
->
join
(
'o
ffice_o
_real_income f'
,
'a.real_income_id = f.id'
,
'left'
)
->
where
(
$where
)
->
sum
(
'a.practical_fee'
);
}
...
...
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