Commit e1bc76cc authored by clone's avatar clone

新增实收

parent ef6672a9
......@@ -83,5 +83,27 @@ class Collection extends Basic
return view('getCollection');
}
}
public function addRealMoney(){
$params = $this->params;
/* $params = array(
"collection_id" => 1,
"real_money" => 123,
);*/
if(!isset($params["collection_id"]) || $params["collection_id"] <= 0){
return $this->response("101","请求参数错误");
}
if(!isset($params["collection_id"]) || $params["collection_id"] <= 0){
return $this->response("101","请求参数错误");
}
$where_["id"] = $params["collection_id"];
$where_["real_money"] = $params["real_money"];
$order = new OPayLogModel();
$id = $order->updatePayLog($params);
if($id > 0 ){
return $this->response("200","编辑成功");
}else{
return $this->response("101","编辑失败");
}
}
}
\ No newline at end of file
......@@ -227,6 +227,7 @@ Route::group('index', [
'agent_zhuan_aagent' => [ 'index/agent/agent_zhuan_aagent', [ 'method' => 'post|get' ] ],//经纪人
'shop_a_store' => [ 'index/agent/shop_a_store', [ 'method' => 'post|get' ] ],//经纪人
'getCollection' => [ 'index/Collection/getCollection', [ 'method' => 'post|get' ] ],//收款记录
'addRealMoney' => [ 'index/Collection/addRealMoney', [ 'method' => 'post' ] ],//新增实收
'visitShop' => [ 'index/Supervise/visitShop', [ 'method' => 'get' ] ],//门店拜访
'carryOut' => [ 'index/Supervise/carryOut', [ 'method' => 'get' ] ],//监督执行
'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