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
de0391bc
Commit
de0391bc
authored
May 28, 2018
by
clone
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
total_fee
parent
2cb68df7
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
19 additions
and
0 deletions
+19
-0
Finance.php
application/index/controller/Finance.php
+1
-0
OTaxes.php
application/model/OTaxes.php
+18
-0
No files found.
application/index/controller/Finance.php
View file @
de0391bc
...
...
@@ -852,6 +852,7 @@ class Finance extends Basic
$m_fee
=
new
OTaxes
();
$data
[
'data'
][
'list'
]
=
$m_fee
->
getTaxesList
(
$pageNo
,
$pageSize
,
'a.id desc'
,
$fields
,
$where
);
$data
[
'data'
][
'total'
]
=
$m_fee
->
getTaxesListTotal
(
$where
);
$data
[
'data'
][
'total_fee'
]
=
$m_fee
->
getTaxesListTotalFee
(
$where
);
return
$this
->
response
(
$data
[
'code'
],
$data
[
'msg'
],
$data
[
'data'
]);
}
...
...
application/model/OTaxes.php
View file @
de0391bc
...
...
@@ -208,6 +208,23 @@ class OTaxes extends BaseModel
* @return int|string
*/
public
function
getTaxesListTotal
(
$params
)
{
$data
=
$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
(
'a_agents e'
,
'b.agent_id = e.id'
,
'left'
)
->
where
(
$params
)
->
count
();
return
$data
;
}
/**
* 税费承担明细表总和
*
* @param $params
* @return int|string
*/
public
function
getTaxesListTotalFee
(
$params
)
{
$data
=
$this
->
alias
(
'a'
)
->
join
(
'o_bargain b'
,
'a.bargain_id = b.id'
,
'left'
)
...
...
@@ -219,6 +236,7 @@ class OTaxes extends BaseModel
return
$data
;
}
/**
* 查询分佣或开票
*
...
...
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