Commit 65a6f237 authored by hujun's avatar hujun

收款列表修改

parent 864fe494
......@@ -81,11 +81,11 @@ class Collection extends Basic
}
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'])) {
$where['a.role'] = $this->params['type'];
$where['a.type'] = $this->params['type'];
}
if (!empty($this->params['report_name'])) {
......@@ -130,6 +130,11 @@ class Collection extends Basic
}
}
/**
* 收款记录-实付金额
*
* @return \think\Response
*/
public function addRealMoney(){
$params = $this->params;
/*$params = array(
......@@ -140,7 +145,7 @@ class Collection extends Basic
if(!isset($params["collection_id"]) || $params["collection_id"] <= 0){
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","请求参数错误");
}
$where_["id"] = $params["collection_id"];
......@@ -158,7 +163,7 @@ class Collection extends Basic
if($id > 0 ){
return $this->response("200","编辑成功");
}else{
return $this->response("101","编辑失败");
return $this->response("101","无记录修改或修改失败");
}
}
......
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