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
49a1417e
Commit
49a1417e
authored
Aug 09, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款记录条件修改
parent
db99e9d5
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
2 deletions
+6
-2
Collection.php
application/index/controller/Collection.php
+2
-2
OPayLogModel.php
application/model/OPayLogModel.php
+4
-0
No files found.
application/index/controller/Collection.php
View file @
49a1417e
...
...
@@ -69,11 +69,11 @@ class Collection extends Basic
}
if
(
!
empty
(
$this
->
params
[
'store_id'
]))
{
$where
[
'
f.
id'
]
=
$this
->
params
[
'store_id'
];
$where
[
'
e.store_
id'
]
=
$this
->
params
[
'store_id'
];
}
if
(
!
empty
(
$this
->
params
[
'district_id'
]))
{
$where
[
'
g.
id'
]
=
$this
->
params
[
'district_id'
];
$where
[
'
e.district_
id'
]
=
$this
->
params
[
'district_id'
];
}
if
(
!
empty
(
$this
->
params
[
'report_phone'
]))
{
...
...
application/model/OPayLogModel.php
View file @
49a1417e
...
...
@@ -312,6 +312,7 @@ class OPayLogModel extends Model
->
join
(
'g_houses d'
,
'b.house_id = d.id'
,
'left'
)
->
join
(
'a_agents e'
,
'a.agent_id=e.id'
,
'left'
)
->
join
(
'a_store f'
,
'e.store_id=f.id'
,
'left'
)
->
join
(
'a_district g'
,
'f.district_id=g.id'
,
'left'
)
->
where
(
$params
)
->
count
();
}
else
{
...
...
@@ -319,6 +320,9 @@ class OPayLogModel extends Model
->
join
(
"o_order b"
,
"a.order_id = b.id"
,
"left"
)
->
join
(
"o_report c"
,
"b.f_id = c.id"
,
"left"
)
->
join
(
'g_houses d'
,
'b.house_id = d.id'
,
'left'
)
->
join
(
'a_agents e'
,
'c.report_agent_id=e.id'
,
'left'
)
->
join
(
'a_store f'
,
'e.store_id=f.id'
,
'left'
)
->
join
(
'a_district g'
,
'f.district_id=g.id'
,
'left'
)
->
where
(
$params
)
->
count
();
}
...
...
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