Commit cc653198 authored by hujun's avatar hujun

删除收款

parent 4f0362b5
...@@ -4532,6 +4532,7 @@ class Finance extends Basic ...@@ -4532,6 +4532,7 @@ class Finance extends Basic
$where['id'] = $this->params['refund_id']; $where['id'] = $this->params['refund_id'];
$where['status'] = ['<>', 2]; $where['status'] = ['<>', 2];
$m_refund = new ORefundModel(); $m_refund = new ORefundModel();
$m_refund_log = new ORefundLogModel();
$data = $m_refund->getFind('id', $where); $data = $m_refund->getFind('id', $where);
if (empty($data['id'])) { if (empty($data['id'])) {
...@@ -4541,6 +4542,7 @@ class Finance extends Basic ...@@ -4541,6 +4542,7 @@ class Finance extends Basic
$num = $m_refund->updateData(['is_del'=>1], ['id'=>$this->params['refund_id']]); $num = $m_refund->updateData(['is_del'=>1], ['id'=>$this->params['refund_id']]);
$msg = '删除失败'; $msg = '删除失败';
if ($num) { if ($num) {
$m_refund_log->updateData(['is_del'=>1], ['refund_id'=>$this->params['refund_id']]);
$code = 200; $code = 200;
$msg = '删除成功'; $msg = '删除成功';
} }
......
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