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
046be59d
Commit
046be59d
authored
Jul 12, 2018
by
zhuwei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
addRealMoney
parent
5f542d22
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
6 additions
and
5 deletions
+6
-5
Collection.php
application/index/controller/Collection.php
+5
-4
route.php
application/route.php
+1
-1
No files found.
application/index/controller/Collection.php
View file @
046be59d
...
@@ -108,9 +108,10 @@ class Collection extends Basic
...
@@ -108,9 +108,10 @@ class Collection extends Basic
public
function
addRealMoney
(){
public
function
addRealMoney
(){
$params
=
$this
->
params
;
$params
=
$this
->
params
;
/*
$params = array(
/*$params = array(
"collection_id" => 1,
"collection_id" => 1,
"real_money" => 123,
"real_money" => 77,
"transaction_fee" => 100,
);*/
);*/
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"
,
"请求参数错误"
);
...
@@ -120,11 +121,11 @@ class Collection extends Basic
...
@@ -120,11 +121,11 @@ class Collection extends Basic
}
}
$where_
[
"id"
]
=
$params
[
"collection_id"
];
$where_
[
"id"
]
=
$params
[
"collection_id"
];
if
(
!
isset
(
$params
[
"real_money"
])
||
$params
[
"real_money"
]
<=
0
){
if
(
isset
(
$params
[
"real_money"
])
){
$where_
[
"real_money"
]
=
$params
[
"real_money"
];
$where_
[
"real_money"
]
=
$params
[
"real_money"
];
}
}
if
(
!
isset
(
$params
[
"transaction_fee"
])
||
$params
[
"transaction_fee"
]
<=
0
){
if
(
isset
(
$params
[
"transaction_fee"
])
){
$where_
[
"transaction_fee"
]
=
$params
[
"transaction_fee"
];
$where_
[
"transaction_fee"
]
=
$params
[
"transaction_fee"
];
}
}
...
...
application/route.php
View file @
046be59d
...
@@ -227,7 +227,7 @@ Route::group('index', [
...
@@ -227,7 +227,7 @@ Route::group('index', [
'getTallAgeList'
=>
[
'index/Finance/getTallAgeList'
,
[
'method'
=>
'GET'
]
],
//税费承担明细表
'getTallAgeList'
=>
[
'index/Finance/getTallAgeList'
,
[
'method'
=>
'GET'
]
],
//税费承担明细表
'getCommissionTotalList'
=>
[
'index/Finance/getCommissionTotalList'
,
[
'method'
=>
'GET'
]
],
//分佣提成汇总表
'getCommissionTotalList'
=>
[
'index/Finance/getCommissionTotalList'
,
[
'method'
=>
'GET'
]
],
//分佣提成汇总表
'getCollection'
=>
[
'index/Collection/getCollection'
,
[
'method'
=>
'post|get'
]
],
//收款记录
'getCollection'
=>
[
'index/Collection/getCollection'
,
[
'method'
=>
'post|get'
]
],
//收款记录
'addRealMoney'
=>
[
'index/Collection/addRealMoney'
,
[
'method'
=>
'post'
]
],
//新增实收
'addRealMoney'
=>
[
'index/Collection/addRealMoney'
,
[
'method'
=>
'post
|get
'
]
],
//新增实收
'visitShop'
=>
[
'index/Supervise/visitShop'
,
[
'method'
=>
'get'
]
],
//门店拜访
'visitShop'
=>
[
'index/Supervise/visitShop'
,
[
'method'
=>
'get'
]
],
//门店拜访
'carryOut'
=>
[
'index/Supervise/carryOut'
,
[
'method'
=>
'get'
]
],
//监督执行
'carryOut'
=>
[
'index/Supervise/carryOut'
,
[
'method'
=>
'get'
]
],
//监督执行
'toReportListOne'
=>
[
'index/Finance/toReportListOne'
,
[
'method'
=>
'POST'
]
],
//回到一级审核
'toReportListOne'
=>
[
'index/Finance/toReportListOne'
,
[
'method'
=>
'POST'
]
],
//回到一级审核
...
...
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