Commit 465b2ff2 authored by hujun's avatar hujun

获取实收日期

parent 04939541
......@@ -1694,4 +1694,28 @@ class Finance extends Basic
$date = date('Y-m-d', strtotime($create_time));
$sum->updateTotalByAgentId($id, $store_id, $district_id, $date); //被修改的人
}
/**
* 获取实收日期
*
* @return \think\Response
*/
public function getRealIncome() {
if (empty($this->params['bargain_id'])) {
return $this->response(101, '参数错误');
}
$data = [];
try {
$code = 200;
$msg = '';
$m_real_income = new ORealIncome();
$data = $m_real_income->getBargainTaxes($this->params['bargain_id'], 'id,income_time,money');
} catch (\Exception $e) {
$code = 101;
$msg = $e->getMessage();
}
return $this->response($code, $msg, $data);
}
}
......@@ -265,6 +265,7 @@ Route::group('index', [
'getTaxesById' => [ 'index/Finance/getTaxesById', [ 'method' => 'POST|GET' ] ], //财务结单
'financeUpdateLog' => [ 'index/Finance/financeUpdateLog', [ 'method' => 'POST|GET' ] ], //财务结单
'getRealIncome' => [ 'index/Finance/getRealIncome', [ 'method' => 'GET' ] ], //获取实收日期
'noticeIndex' => [ 'index/notice/index', [ 'method' => 'GET' ] ], //公告列表
'getNoticeInfo' => [ 'index/notice/getNoticeInfo', [ 'method' => 'GET' ] ], //公告详情
'delNotice' => [ 'index/notice/delNotice', [ '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