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
ed4835c0
Commit
ed4835c0
authored
Jan 07, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实收统计
# Conflicts: # application/index/controller/Finance.php
parent
b306294c
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
+3
-4
Finance.php
application/index/controller/Finance.php
+2
-3
OPartialCommission.php
application/model/OPartialCommission.php
+1
-1
No files found.
application/index/controller/Finance.php
View file @
ed4835c0
...
...
@@ -1582,19 +1582,17 @@ class Finance extends Basic
$m_partial
=
new
OPartialCommission
();
$m_store
=
new
AStore
();
$m_agent
=
new
AAgents
();
$where
[
'c.is_del'
]
=
0
;
if
(
empty
(
$this
->
params
[
'excel'
])
&&
$this
->
params
[
'excel'
]
!=
1
)
{
$m_tax
=
new
OTaxes
();
$taxes_where
[
'a.father_id'
]
=
[
'>'
,
0
];
$taxes_where
[
'a.is_del'
]
=
0
;
// $taxes_where['b.status'] = ['IN', '10,11,13'];
$taxes_where
[
'a.operation_date'
]
=
[
'between'
,
[
$operation_start_data
,
$operation_end_data
]];
$data
[
'data'
][
'total_taxes'
]
=
$m_tax
->
sumBargainFee
(
'a.fee'
,
$taxes_where
);;
if
(
!
empty
(
$this
->
params
[
'confirm_date'
]))
{
$where
[
'a.confirm_date'
]
=
[
'<='
,
$this
->
params
[
'confirm_date'
]
.
' 23:59:59'
];
$where
[
'a.confirm_status'
]
=
1
;
}
$list
=
$m_partial
->
getCommissionTotalList
(
$pageNo
,
$pageSize
,
$fields
,
$where
,
$operation_start_data
,
$operation_end_data
,
$is_bargain
);
...
...
@@ -1618,6 +1616,7 @@ class Finance extends Basic
$where
[
1
]
=
[
'EXP'
,
"e.create_time BETWEEN '
{
$this
->
params
[
'bargain_start_date'
]
}
00:00:00' AND '
{
$this
->
params
[
'bargain_end_date'
]
}
23:59:59'"
];
}
$where
[
'e.status'
]
=
[
'IN'
,
'10,11,13'
];
unset
(
$where
[
'c.is_del'
]);
$data
[
'data'
][
'total_money'
]
=
$m_partial
->
getCommissionTotalInfo
(
'a.practical_fee'
,
$where
);
}
else
{
//导出Excel
...
...
application/model/OPartialCommission.php
View file @
ed4835c0
...
...
@@ -259,7 +259,7 @@ class OPartialCommission extends BaseModel
}
$taxes_where
[
'a.operation_date'
]
=
[
'between'
,
[
$operation_start_data
,
$operation_end_data
]];
$taxes_where
[
'
a
.agent_id'
]
=
$v
[
'agent_id'
];
$taxes_where
[
'
b
.agent_id'
]
=
$v
[
'agent_id'
];
$result
[
$k
][
'fee'
]
=
$m_tax
->
sumBargainFee
(
'a.fee'
,
$taxes_where
);
$result
[
$k
][
'agent_id'
]
=
$v
[
'agent_id'
];
$result
[
$k
][
'name'
]
=
$v
[
'name'
];
...
...
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