Commit 53696c78 authored by hujun's avatar hujun

1

parent afb73a5f
...@@ -3414,7 +3414,7 @@ class Finance extends Basic ...@@ -3414,7 +3414,7 @@ class Finance extends Basic
]; ];
$pay_log_id = $m_pay_adjustment->getAdjustmentList('paylog_id', $where); $pay_log_id = $m_pay_adjustment->getAdjustmentList('paylog_id', $where);
if (count($pay_log_id)) { if (count($pay_log_id) > 1) {
return $this->response($code, '存在调整,不能删除'); return $this->response($code, '存在调整,不能删除');
} }
...@@ -3611,7 +3611,7 @@ class Finance extends Basic ...@@ -3611,7 +3611,7 @@ class Finance extends Basic
$m_pay_adjustment = new OPayLogAdjustment(); $m_pay_adjustment = new OPayLogAdjustment();
$adjustment_num = $m_pay_adjustment->getAdjustmentList('id', ['paylog_id'=>$this->params['pay_id']]); $adjustment_num = $m_pay_adjustment->getAdjustmentList('id', ['paylog_id'=>$this->params['pay_id']]);
if (count($adjustment_num)) { if (count($adjustment_num) > 1) {
return $this->response($code, '存在调整,不能删除'); return $this->response($code, '存在调整,不能删除');
} }
......
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