Commit b612cb97 authored by hujun's avatar hujun

判断

parent 0510132e
......@@ -3382,8 +3382,8 @@ class Finance extends Basic
}
$m_pay_adjustment = new OPayLogAdjustment();
$adjustment_num = $m_pay_adjustment->getAdjustmentList('id', ['pay_id'=>$this->params['pay_id']]);
if ($adjustment_num > 1) {
$adjustment_num = $m_pay_adjustment->getAdjustmentList('id', ['paylog_id'=>$this->params['pay_id']]);
if (count($adjustment_num) > 1) {
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