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
a0248945
Commit
a0248945
authored
Dec 17, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
判断
parent
d30aa4bb
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 deletions
+18
-8
Finance.php
application/index/controller/Finance.php
+15
-5
OPayLogAdjustment.php
application/model/OPayLogAdjustment.php
+3
-3
No files found.
application/index/controller/Finance.php
View file @
a0248945
...
@@ -2887,7 +2887,7 @@ class Finance extends Basic
...
@@ -2887,7 +2887,7 @@ class Finance extends Basic
*/
*/
public
function
adjustment
()
{
public
function
adjustment
()
{
if
(
!
$this
->
request
->
isAjax
())
{
if
(
!
$this
->
request
->
isAjax
())
{
//
return view("adjustment");
return
view
(
"adjustment"
);
}
}
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
$pageNo
=
empty
(
$this
->
params
[
'pageNo'
])
?
1
:
$this
->
params
[
'pageNo'
];
...
@@ -2943,9 +2943,9 @@ class Finance extends Basic
...
@@ -2943,9 +2943,9 @@ class Finance extends Basic
}
}
//商铺地址
//商铺地址
if
(
!
empty
(
$this
->
params
[
'
internal_
address'
]))
{
if
(
!
empty
(
$this
->
params
[
'address'
]))
{
$m_house
=
new
GHouses
();
$m_house
=
new
GHouses
();
$id
=
$m_house
->
getList
(
1
,
20
,
'id desc'
,
'id'
,[
'internal_address'
=>
[
'like'
,
'%'
.
$this
->
params
[
'
internal_
address'
]
.
'%'
]]);
$id
=
$m_house
->
getList
(
1
,
20
,
'id desc'
,
'id'
,[
'internal_address'
=>
[
'like'
,
'%'
.
$this
->
params
[
'address'
]
.
'%'
]]);
// $where['d.internal_address'] = ['like', '%' . $this->params['internal_address'] . '%'];
// $where['d.internal_address'] = ['like', '%' . $this->params['internal_address'] . '%'];
foreach
(
$id
as
$v
)
{
foreach
(
$id
as
$v
)
{
...
@@ -2977,8 +2977,14 @@ class Finance extends Basic
...
@@ -2977,8 +2977,14 @@ class Finance extends Basic
}
}
//提交人姓名
//提交人姓名
if
(
!
empty
(
$this
->
params
[
'agent_name'
]))
{
if
(
!
empty
(
$this
->
params
[
'name'
]))
{
$where
[
'a.agent_name'
]
=
[
'like'
,
'%'
.
$this
->
params
[
'agent_name'
]
.
'%'
];
$where
[
'a.name'
]
=
[
'like'
,
'%'
.
$this
->
params
[
'name'
]
.
'%'
];
$is_show
=
1
;
}
//提交人手机号
if
(
!
empty
(
$this
->
params
[
'phone'
]))
{
$where
[
'a.phone'
]
=
[
'like'
,
'%'
.
$this
->
params
[
'phone'
]
.
'%'
];
$is_show
=
1
;
$is_show
=
1
;
}
}
...
@@ -3008,6 +3014,10 @@ class Finance extends Basic
...
@@ -3008,6 +3014,10 @@ class Finance extends Basic
$where
[
'a.id'
]
=
$this
->
params
[
'id'
];
$where
[
'a.id'
]
=
$this
->
params
[
'id'
];
}
}
if
(
!
empty
(
$this
->
params
[
'march_id'
]))
{
$where
[
'c.id'
]
=
$this
->
params
[
'march_id'
];
}
$field
=
'a.create_time,a.id,c.id as march_id,a.paylog_id,a.money,b.income_time,a.type,a.new_paylog_id,a.operation_id,b.order_id'
;
$field
=
'a.create_time,a.id,c.id as march_id,a.paylog_id,a.money,b.income_time,a.type,a.new_paylog_id,a.operation_id,b.order_id'
;
$list
=
$m_paylog
->
getAdjustmentListLimit
(
$pageNo
,
$pageSize
,
$order_
=
'a.id desc'
,
$field
,
$where
);
$list
=
$m_paylog
->
getAdjustmentListLimit
(
$pageNo
,
$pageSize
,
$order_
=
'a.id desc'
,
$field
,
$where
);
...
...
application/model/OPayLogAdjustment.php
View file @
a0248945
...
@@ -116,7 +116,7 @@ class OPayLogAdjustment extends BaseModel{
...
@@ -116,7 +116,7 @@ class OPayLogAdjustment extends BaseModel{
->
alias
(
"a"
)
->
alias
(
"a"
)
->
join
(
"o_paylog b"
,
"a.paylog_id = b.id"
,
"left"
)
->
join
(
"o_paylog b"
,
"a.paylog_id = b.id"
,
"left"
)
->
join
(
"o_march_in c"
,
"b.order_id = c.id"
,
"left"
)
->
join
(
"o_march_in c"
,
"b.order_id = c.id"
,
"left"
)
->
join
(
"a_agents d"
,
"
b.agent
_id = d.id"
,
"left"
)
->
join
(
"a_agents d"
,
"
a.operation
_id = d.id"
,
"left"
)
->
join
(
"o_order e"
,
"b.order_id = e.id"
)
->
join
(
"o_order e"
,
"b.order_id = e.id"
)
->
limit
(
$pageSize
)
->
limit
(
$pageSize
)
->
page
(
$pageNo
)
->
page
(
$pageNo
)
...
@@ -133,7 +133,7 @@ class OPayLogAdjustment extends BaseModel{
...
@@ -133,7 +133,7 @@ class OPayLogAdjustment extends BaseModel{
return
$this
->
db_
->
alias
(
'a'
)
return
$this
->
db_
->
alias
(
'a'
)
->
join
(
"o_paylog b"
,
"a.paylog_id = b.id"
,
"left"
)
->
join
(
"o_paylog b"
,
"a.paylog_id = b.id"
,
"left"
)
->
join
(
"o_march_in c"
,
"b.order_id = c.id"
,
"left"
)
->
join
(
"o_march_in c"
,
"b.order_id = c.id"
,
"left"
)
->
join
(
"a_agents d"
,
"
b.agent
_id = d.id"
,
"left"
)
->
join
(
"a_agents d"
,
"
a.operation
_id = d.id"
,
"left"
)
->
join
(
"o_order e"
,
"b.order_id = e.id"
)
->
join
(
"o_order e"
,
"b.order_id = e.id"
)
->
where
(
$params
)
->
where
(
$params
)
->
count
(
'a.id'
);
->
count
(
'a.id'
);
...
@@ -149,7 +149,7 @@ class OPayLogAdjustment extends BaseModel{
...
@@ -149,7 +149,7 @@ class OPayLogAdjustment extends BaseModel{
return
$this
->
db_
->
alias
(
'a'
)
return
$this
->
db_
->
alias
(
'a'
)
->
join
(
"o_paylog b"
,
"a.paylog_id = b.id"
,
"left"
)
->
join
(
"o_paylog b"
,
"a.paylog_id = b.id"
,
"left"
)
->
join
(
"o_march_in c"
,
"b.order_id = c.id"
,
"left"
)
->
join
(
"o_march_in c"
,
"b.order_id = c.id"
,
"left"
)
->
join
(
"a_agents d"
,
"
b.agent
_id = d.id"
,
"left"
)
->
join
(
"a_agents d"
,
"
a.operation
_id = d.id"
,
"left"
)
->
join
(
"o_order e"
,
"b.order_id = e.id"
)
->
join
(
"o_order e"
,
"b.order_id = e.id"
)
->
where
(
$params
)
->
where
(
$params
)
->
sum
(
'a.money'
);
->
sum
(
'a.money'
);
...
...
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