Commit 5dd9c64a authored by hujun's avatar hujun

删除收款开业审核

parent 191d283d
......@@ -5138,4 +5138,36 @@ class Finance extends Basic
$file_name = '收款开业审核-'.$status_string;
$export->exportTable($file_name, $excel_data, 11, '开业审核-'.$status_string, $title);
}
/**
* 删除收款开业审核
*
* @return \think\Response
* User HuJun
* Date 19-5-16 下午4:42
*/
public function delPayCheck()
{
$msg = '删除失败';
$code = 101;
if (empty($this->params['open_id'])) {
return $this->response($code, '参数错误');
}
$m_pay_open = new OPayOpen();
$where['is_del'] = 0;
$where['id'] = $this->params['open_id'];
$id = $m_pay_open->getFieldOneValue('id', $where);
if (empty($id)) {
return $this->response(101, '没有该数据');
}
$num = $m_pay_open->editData(['is_del'=>1], $id);
if ($num) {
$code = 200;
$msg = '删除成功';
}
return $this->response($code, $msg);
}
}
......@@ -297,6 +297,7 @@ Route::group('index', [
'payCheckListNo/:check_status' => ['index/Finance/payCheckList', ['method' => 'GET'], ['check_status' => 2]],//收款开业审核-未审核
'payCheckListAll' => ['index/Finance/payCheckList', ['method' => 'GET']],//收款开业审核-全部
'payCheckListDisc/:check_status' => ['index/Finance/payCheckList', ['method' => 'GET'], ['check_status' => 4]],//收款开业审核-总监
'delPayCheck' => ['index/Finance/delPayCheck', ['method' => 'POST']],//删除收款开业审核
'performanceInfo' => ['index/PerformanceInfo/performanceInfo', ['method' => 'post|get']],//业绩明细
'getPerformanceInfoExcel' => ['index/PerformanceInfo/getPerformanceInfoExcel', ['method' => 'post|get']],//业绩明细
......
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