Commit 046be59d authored by zhuwei's avatar zhuwei

addRealMoney

parent 5f542d22
...@@ -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"];
} }
......
...@@ -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' ] ], //回到一级审核
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment