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
65a6f237
Commit
65a6f237
authored
Aug 08, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
收款列表修改
parent
864fe494
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
Collection.php
application/index/controller/Collection.php
+9
-4
No files found.
application/index/controller/Collection.php
View file @
65a6f237
...
@@ -81,11 +81,11 @@ class Collection extends Basic
...
@@ -81,11 +81,11 @@ class Collection extends Basic
}
}
if
(
!
empty
(
$this
->
params
[
'pay_type'
]))
{
if
(
!
empty
(
$this
->
params
[
'pay_type'
]))
{
$where
[
'a.
trade
_type'
]
=
$this
->
params
[
'pay_type'
];
$where
[
'a.
pay
_type'
]
=
$this
->
params
[
'pay_type'
];
}
}
if
(
!
empty
(
$this
->
params
[
'type'
]))
{
if
(
!
empty
(
$this
->
params
[
'type'
]))
{
$where
[
'a.
rol
e'
]
=
$this
->
params
[
'type'
];
$where
[
'a.
typ
e'
]
=
$this
->
params
[
'type'
];
}
}
if
(
!
empty
(
$this
->
params
[
'report_name'
]))
{
if
(
!
empty
(
$this
->
params
[
'report_name'
]))
{
...
@@ -130,6 +130,11 @@ class Collection extends Basic
...
@@ -130,6 +130,11 @@ class Collection extends Basic
}
}
}
}
/**
* 收款记录-实付金额
*
* @return \think\Response
*/
public
function
addRealMoney
(){
public
function
addRealMoney
(){
$params
=
$this
->
params
;
$params
=
$this
->
params
;
/*$params = array(
/*$params = array(
...
@@ -140,7 +145,7 @@ class Collection extends Basic
...
@@ -140,7 +145,7 @@ class Collection extends Basic
if
(
!
isset
(
$params
[
"collection_id"
])
||
$params
[
"collection_id"
]
<=
0
){
if
(
!
isset
(
$params
[
"collection_id"
])
||
$params
[
"collection_id"
]
<=
0
){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
if
((
!
isset
(
$params
[
"real_money"
])
||
$params
[
"real_money"
]
<=
0
)
and
(
!
isset
(
$params
[
"transaction_fee"
])
||
$params
[
"transaction_fee"
]
<
=
0
)){
if
((
!
isset
(
$params
[
"real_money"
])
||
$params
[
"real_money"
]
<=
0
)
and
(
!
isset
(
$params
[
"transaction_fee"
])
||
$params
[
"transaction_fee"
]
<
0
)){
return
$this
->
response
(
"101"
,
"请求参数错误"
);
return
$this
->
response
(
"101"
,
"请求参数错误"
);
}
}
$where_
[
"id"
]
=
$params
[
"collection_id"
];
$where_
[
"id"
]
=
$params
[
"collection_id"
];
...
@@ -158,7 +163,7 @@ class Collection extends Basic
...
@@ -158,7 +163,7 @@ class Collection extends Basic
if
(
$id
>
0
){
if
(
$id
>
0
){
return
$this
->
response
(
"200"
,
"编辑成功"
);
return
$this
->
response
(
"200"
,
"编辑成功"
);
}
else
{
}
else
{
return
$this
->
response
(
"101"
,
"
编辑
失败"
);
return
$this
->
response
(
"101"
,
"
无记录修改或修改
失败"
);
}
}
}
}
...
...
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