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
e60a3fd3
Commit
e60a3fd3
authored
Jan 07, 2019
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
实收统计3
parent
813259b0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
3 deletions
+4
-3
Finance.php
application/index/controller/Finance.php
+3
-3
OTaxes.php
application/model/OTaxes.php
+1
-0
No files found.
application/index/controller/Finance.php
View file @
e60a3fd3
...
...
@@ -1564,17 +1564,17 @@ class Finance extends Basic
/**部门id**/
if
(
!
empty
(
$this
->
params
[
'district_id'
]))
{
$where
[
'd.district_id'
]
=
$this
->
params
[
'district_id'
];
$
taxes_where
[
'c.district_id'
]
=
$
where
[
'd.district_id'
]
=
$this
->
params
[
'district_id'
];
}
/**门店名**/
if
(
!
empty
(
$this
->
params
[
'store_id'
]))
{
$where
[
'd.store_id'
]
=
$this
->
params
[
'store_id'
];
$
taxes_where
[
'c.store_id'
]
=
$
where
[
'd.store_id'
]
=
$this
->
params
[
'store_id'
];
}
/**经纪人手机号**/
if
(
!
empty
(
$this
->
params
[
'agent_id'
]))
{
$
where
[
'a
.agent_id'
]
=
$taxes_where
[
'a.agent_id'
]
=
$this
->
params
[
'agent_id'
];
$
taxes_where
[
'c
.agent_id'
]
=
$taxes_where
[
'a.agent_id'
]
=
$this
->
params
[
'agent_id'
];
}
$fields
=
'sum( a.practical_fee ) as practical_fee,sum( a.real_fee ) as real_fee,'
;
...
...
application/model/OTaxes.php
View file @
e60a3fd3
...
...
@@ -298,6 +298,7 @@ class OTaxes extends BaseModel
return
$this
->
field
(
$field
)
->
alias
(
'a'
)
->
join
(
'o_bargain b'
,
'a.bargain_id = b.id'
,
'left'
)
->
join
(
'a_agents c'
,
'b.agent_id = c.id'
,
'left'
)
->
where
(
$where
)
->
sum
(
$field
);
}
...
...
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